Skip to main content
Glama

understand_symbol

Returns a symbol's source code, imports, callers, and sibling symbols in one call, replacing several separate lookups when you need full context around a function or class.

Instructions

Returns a symbol's source code, file imports, callers, and sibling symbols in one call. Replaces 3-5 separate lookups when you need full context around a function or class.

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": {
      "symbol_id": "<symbol_id>"
    },
    "name": "understand_symbol"
  }
}

Input Schema

NameRequiredDescriptionDefault
symbol_idYesSymbol identifier (from search_symbols or get_file_outline results)
include_callersNoInclude files that reference this symbol
include_importsNoInclude import statements from the symbol's file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A3.6/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden. It does well by enumerating returned components, which implies a read-only aggregation, but it never states that it is non-mutating, nor does it warn about the added cost of enabling callers or describe result size/latency when pulling callers and imports together.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two tight sentences, outcome stated first and the use-case rationale second, with no filler. Slightly more value could be extracted from the same length by naming the narrower sibling it displaces.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

No output schema exists, so describing the four returned payload pieces does real work and covers most of what an agent needs before calling. Remaining gaps are behavioral (cost of include_callers, read-only nature) rather than structural.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all three parameters including the defaults for include_callers and include_imports are already documented in the schema. The description adds nothing per-parameter, which is the expected baseline here but no extra value.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb and resource and enumerates exactly what comes back: source code, file imports, callers, and sibling symbols. It implicitly contrasts with narrower lookups ('replaces 3-5 separate lookups') but never names read_symbol or another sibling, so an agent must infer the distinction rather than being told directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

'Replaces 3-5 separate lookups when you need full context around a function or class' gives a clear triggering condition. It stops short of when NOT to use it (e.g., when only the raw body is wanted, favor read_symbol) and does not specify any alternatives explicitly.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.