Connect a client
Prepare an import upload
Create a direct-upload target for a database import file. Complete the upload before starting the import.
Arguments
| Name | Type | Required | Limits |
|---|---|---|---|
filename | string | Yes | At least 1 character(s) |
sizeBytes | integer | Yes | Minimum 1 |
contentType | string | No | See schema |
projectId | string | Yes | At least 1 character(s) |
databaseId | string | Yes | At least 1 character(s) |
Full input schema
{
"type": "object",
"properties": {
"filename": {
"type": "string",
"minLength": 1
},
"sizeBytes": {
"type": "integer",
"minimum": 1
},
"contentType": {
"type": "string"
},
"projectId": {
"type": "string",
"minLength": 1
},
"databaseId": {
"type": "string",
"minLength": 1
}
},
"required": [
"projectId",
"databaseId",
"filename",
"sizeBytes"
],
"additionalProperties": false
}Example call
The params of a tools/call request. Replace the placeholder values with your own IDs.
{
"name": "createDatabaseImportUpload",
"arguments": {
"projectId": "REPLACE_WITH_PROJECT_ID",
"databaseId": "REPLACE_WITH_DATABASE_ID",
"filename": "source.zip",
"sizeBytes": 1048576
}
} Result
The same data as the API operation, wrapped as {"untrusted_data": true, "source": "createDatabaseImportUpload", "note": "...", "data": ...} so the model treats project content as data, not instructions.