Stellarion
Tools

stellarion_get_detailed_symbol

Get complete symbol information — source code, callers, callees, and complexity — in one call

The all-in-one symbol inspector. Returns the full source code, call relationships (both callers and callees), complexity metrics, and metadata for a single symbol. Use this when you need to deeply understand a specific function or class.

When to Use

  • You found a symbol via search and want the full picture
  • You need source code, callers, callees, and complexity without making multiple calls
  • You are preparing to refactor a function and need all context at once
  • You want to assess a function's complexity score alongside its implementation

Parameters

ParameterTypeRequiredDefaultDescription
uristringyesFile path of the symbol
linenumberyesLine number where the symbol is defined

Examples

Inspect a function before refactoring

Natural language:

Show me everything about the parseConfig function in src/config/loader.ts

MCP call:

{
  "tool": "stellarion_get_detailed_symbol",
  "arguments": {
    "uri": "src/config/loader.ts",
    "line": 34
  }
}

Review a complex method

Natural language:

Get the full details for the method at line 120 of src/engine/query.rs

MCP call:

{
  "tool": "stellarion_get_detailed_symbol",
  "arguments": {
    "uri": "src/engine/query.rs",
    "line": 120
  }
}

Output Format

Returns a comprehensive symbol profile:

  • name — Symbol name
  • kind — Symbol type (function, class, method, etc.)
  • uri — File path
  • line — Line number
  • source — Full source code of the symbol
  • signature — Function signature (parameters and return type)
  • documentation — Doc comments associated with the symbol
  • complexity — Cognitive and cyclomatic complexity scores
  • callers — List of functions that call this symbol
  • callees — List of functions this symbol calls
  • metrics — Line count, parameter count, nesting depth

Tips

  • This is the most expensive single-symbol call. Use stellarion_symbol_search first to find the right symbol, then call this once on the one you care about.
  • If you only need callers or callees (not both), the dedicated stellarion_get_callers and stellarion_get_callees tools support transitive depth, which this tool does not.
  • The complexity scores use the same thresholds as the codebase health report: cognitive complexity above 15 is high, above 25 is critical.