Inspect or cancel a SQL statement
manage_sql_statementPoll a pending SQL statement for its status and results, or cancel it. Use after execute_sql returns 'pending' to retrieve finished results or stop execution.
Instructions
Poll a previously submitted SQL statement (status and, once finished, its results) or cancel it. Use after execute_sql returned status 'pending'.
Safety classification: get = READ_ONLY; cancel = EXECUTION.
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": {
"action": "<action>",
"statement_id": "<statement_id>"
},
"name": "manage_sql_statement"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | get: status and results; cancel: stop it. | |
| confirm | No | Set to true ONLY after the user has reviewed the plan returned by a previous call with status 'confirmation_required'. Required for destructive/security-sensitive actions. | |
| dry_run | No | If true, validate and return the planned change without executing it. | |
| max_rows | No | Maximum rows to return (capped by DBX_MCP_SQL_MAX_ROWS). | |
| row_format | No | 'arrays' (compact, aligned with columns) or 'objects' (one dict per row). | arrays |
| statement_id | Yes | Statement id returned by execute_sql. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| page | No | ||
| plan | No | ||
| tool | Yes | ||
| action | No | ||
| safety | No | ||
| status | No | success | |
| summary | Yes | ||
| warnings | No | ||
| next_steps | No | Suggested follow-up calls. | |
| request_id | No |