Query Cloud database
projects_cloud_database_queryRun SQL on the project's Cloud Postgres database. Use this for SELECT and for schema changes such as CREATE TABLE. Results are capped by the database API.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project_id": "<project_id>",
"sql": "<sql>"
},
"name": "projects_cloud_database_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | SQL to run on the Cloud Postgres database. | |
| project_id | Yes | UUID of a Bunstation project owned by the authenticated user. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rows | Yes | ||
| fields | Yes | ||
| command | Yes | ||
| rowCount | Yes | ||
| truncated | Yes |