Skip to main content
After finding symbols with search, trace their relationships to understand how code connects.

Get Calls

See what a function calls:
codanna mcp get_calls process_file
codanna mcp get_calls symbol_id:1883
Returns functions invoked by the target, each with [symbol_id:X] for follow-up.

Find Callers

See what calls a function:
codanna mcp find_callers parse_config
codanna mcp find_callers symbol_id:1883
Returns functions that invoke the target.

Find Implementations

See what types implement a trait:
codanna mcp find_symbol LanguageParser
codanna retrieve implementations LanguageParser
Returns all structs that implement the given trait, with their definitions and relationships.

Analyze Impact

Map the full impact radius of a symbol:
codanna mcp analyze_impact Parser
codanna mcp analyze_impact symbol_id:1883 max_depth:5
Returns a dependency graph showing:
RelationshipExample
CallsfunctionA() invokes functionB()
Uses as typeParameter, return type, or field
Renders/ComposesJSX <Component>, struct fields

Chaining with symbol_id

All relationship tools return [symbol_id:X] for each result. Use these IDs to chain queries without ambiguity:
# Find a symbol
codanna mcp semantic_search_with_context query:"config parser" limit:1
# Returns: parse_config [symbol_id:567]

# Trace its relationships
codanna mcp get_calls symbol_id:567
codanna mcp find_callers symbol_id:567
codanna mcp analyze_impact symbol_id:567

Language Filtering

Filter relationship results by language:
codanna mcp find_callers auth_handler lang:typescript
codanna mcp analyze_impact Parser lang:rust

Next Steps

Document Search

Search markdown alongside code.

Agentic Guidance

Chain relationship tools with hints.