Analyze Query
analyze_queryAnalyze query performance by retrieving the query profile for a given query ID or SQL, providing execution insights and analysis results.
Instructions
Analyze a query and get analyze result using query profile. Use set_session_db to set a per-session default database
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "analyze_query"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | No | database | |
| sql | No | Query SQL | |
| uuid | No | Query ID, a string composed of 32 hexadecimal digits formatted as 8-4-4-4-12 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |