Show a CoraDB query plan
explain_queryInspect the execution plan CoraDB chooses for one or more SELECT statements without running them, so you can review optimizer behavior before execution.
Instructions
The plan the CoraDB optimizer chooses for a SELECT (or for each SELECT of a script separated by ;), without running it.
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": {
"sql": "<sql>",
"database": "<database>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | One or more SELECT statements separated by ;. | |
| host | No | CoraDB broker host. Default: localhost. | |
| port | No | CoraDB broker port. Default: 33000. | |
| user | No | Database user. Default: dba. | |
| database | Yes | The database to open. | |
| password | No | Password of that user. Default: empty. |