get_call_graph
Trace code execution by retrieving a recursive call graph for any function, showing callers and callees up to a configurable depth. Supports method syntax and automatic disambiguation.
Instructions
Get the call graph for a function: what it calls and what calls it, recursively up to the specified depth.
Supports 'ClassName.method_name' syntax (e.g., 'SkillManager.initialize'). If multiple functions share the same name, returns a disambiguation list.
Use this to trace execution flow and understand how a function fits into the larger call chain. By default, Python builtins and common stdlib methods (len, append, strip, etc.) are filtered out for clarity. Set include_builtins=True to see everything.
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": {
"function_name": "<function_name>"
},
"name": "get_call_graph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| function_name | Yes | ||
| include_builtins | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||