analyze_run_by_id
Fetches a Databricks job run and returns Spark performance analysis covering anti-patterns, stage shuffle/skew/spill/GC metrics, query plans, and cluster sizing versus data volume.
Instructions
Fetch one Databricks job run (Spark UI or event logs plus cluster config) and return a complete analysis: anti-patterns, shuffle/skew/spill/GC numbers per stage, detailed query-plan analysis for bad stages, and cluster sizing versus data volume, CPU and memory.
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": {
"run_id": "<run_id>"
},
"name": "analyze_run_by_id"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | No | ||
| run_id | Yes | ||
| stage_plans | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||