get_call_hierarchy
"What callers and callees surround this symbol?"
How to use it
get_call_hierarchy is exposed by the Symbolpeek MCP MCP server. Add the server to your MCP client (Claude Desktop, Cursor, Windsurf and others), and the get_call_hierarchy tool becomes available to the model automatically. See the full listing for setup details and every tool this server provides.
Install Symbolpeek MCP
claude mcp add --transport stdio --scope user symbolpeek -- "$HOME/.local/share/symbolpeek/symbolpeek"Other tools in Symbolpeek MCP (16)
"Are these files safe to delete?" — one path or a whole set; references within the set don't block
"Who calls this symbol (callers) / what does it call (callees)?"
"Which local symbols does this symbol depend on?"
"Which classes implement this interface or contract?"
"Where is this symbol referenced across the project?"
"Which operations does each language support?"
"What TypeScript compiler diagnostics affect this file or symbol?"
"What is the nested declaration structure of this file?"
"What is the inferred type or signature at this location?"
"Where is the definition behind this usage?"
"What are the top-level symbols in this file?"
"Show me the exact source for this symbol."
"Give me this symbol plus its minimal local context."
"Read several symbols at once (batch, cross-file, per-item ok)."
"Rename this symbol project-wide." Writes files directly — refused before any write if the new name collides with a declaration already in scope
"Where is this symbol defined across the workspace?"