explain_query
Runs EXPLAIN on a SELECT query using a specified DBeaver connection and database to reveal execution plans and help diagnose query performance.
Instructions
Runs EXPLAIN on a SELECT query using the specified DBeaver connection + database.
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>"
},
"name": "explain_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sql | Yes | ||
| database | No | Target database/schema name on that connection. | |
| connection | No | DBeaver connection name or host (e.g. 'localhost', 'staging-db'). Defaults to default_connection. |