db_query
Execute a single SQL statement synchronously against a specific SQL Console connection. Read-only or read-write permissions are enforced based on the caller's access profile.
Instructions
Run a SQL statement synchronously against a SQL Console connection.
The caller's access profile (server-side) gates read-only vs read-write; an INSERT through a read-only profile errors at the platform, not here.
Args: connection_id: The DB Console connection id. sql: A single SQL statement to execute.
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": {
"connection_id": "<connection_id>",
"sql": "<sql>"
},
"name": "db_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| connection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |