Connect a client
Get a database
Read the metadata and status of a database in this project, and its size: size (256mb, 512mb, 1gb, 2gb, 4gb or 8gb), sizeName and memorySizeBytes, the most memory the database may use, and storageBytes, its storage. size and sizeName are null for a size off the steps (memorySizeBytes still says it), and all four are null when the size could not be read.
Arguments
| Name | Type | Required | Limits |
|---|---|---|---|
projectId | string | Yes | At least 1 character(s) |
databaseId | string | Yes | At least 1 character(s) |
Full input schema
{
"type": "object",
"properties": {
"projectId": {
"type": "string",
"minLength": 1
},
"databaseId": {
"type": "string",
"minLength": 1
}
},
"required": [
"projectId",
"databaseId"
],
"additionalProperties": false
}Example call
The params of a tools/call request. Replace the placeholder values with your own IDs.
{
"name": "getDatabase",
"arguments": {
"projectId": "REPLACE_WITH_PROJECT_ID",
"databaseId": "REPLACE_WITH_DATABASE_ID"
}
} Result
The same data as the API operation, wrapped as {"untrusted_data": true, "source": "getDatabase", "note": "...", "data": ...} so the model treats project content as data, not instructions.