Explain Analyze Query
explain_analyze_queryAnalyze SQL query execution statistics in IBM watsonx.data to diagnose performance and troubleshoot failures using Presto or Prestissimo engines.
Instructions
Get detailed query analysis with execution statistics in watsonx.data.
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": {
"engine_id": "<engine_id>",
"statement": "<statement>"
},
"name": "explain_analyze_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| verbose | No | Include detailed statistics | |
| engine_id | Yes | Presto or Prestissimo engine identifier | |
| statement | Yes | SQL query to analyze. If query fails, consider using fully qualified table names (catalog.schema.table) | |
| engine_type | No | Engine type - "presto" or "prestissimo" (default: "presto") | presto |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||