Answers the question "who calls this function?" by traversing the call graph upward. Supports transitive callers — not just direct callers, but callers-of-callers up to a configurable depth.
Essential for understanding how widely a function is used before modifying or deprecating it.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
uri | string | yes | — | File path of the function to look up |
line | number | yes | — | Line number where the function is defined |
depth | number | no | 3 | How many levels of transitive callers to follow (1 = direct callers only) |
Natural language:
Who calls the
validateTokenfunction in src/auth/jwt.ts?
MCP call:
{
"tool": "stellarion_get_callers",
"arguments": {
"uri": "src/auth/jwt.ts",
"line": 42,
"depth": 1
}
}
Natural language:
Show me the full call chain leading to
dbQueryin src/db/connection.rs
MCP call:
{
"tool": "stellarion_get_callers",
"arguments": {
"uri": "src/db/connection.rs",
"line": 87,
"depth": 3
}
}
Natural language:
How many places call
formatCurrencyin src/utils/format.py?
MCP call:
{
"tool": "stellarion_get_callers",
"arguments": {
"uri": "src/utils/format.py",
"line": 15
}
}
Returns a tree of caller relationships:
At depth 1 you get a flat list. At depth 2+ you get a tree showing the full call chain from entry points down to the target.
depth: 1 to get a count of direct callers, then increase depth if you need the full picture.log or toString) can return very large trees. Use depth: 1 for these.stellarion_get_callees to understand both directions of a function's relationships.stellarion_symbol_search first if you don't know the exact file and line of the target function.