Get Dependencies
get_dependenciesTrace a function's callers and callees up to N levels deep to map its real dependency graph. Use it instead of grep-for-function-name when you need actual call chains, not text matches.
Instructions
Trace who calls a function and what it calls, up to N levels deep. Use this instead of grep-for-function-name when you need the actual call chain — returns the dependency graph, not text matches. Covers callers (upstream), callees (downstream), or both.
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": {
"entity_id": "<entity_id>"
},
"name": "get_dependencies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | How many levels deep to traverse (default: 2) | |
| project | No | Project name (required in multi-project mode). Use list_projects to see available projects. | |
| direction | No | Which direction to traverse (default: both) | |
| entity_id | Yes | Entity ID or name |