Skip to main content
Glama

get_symbol_info

Retrieve detailed information about a specific code symbol, including its callers and callees, to understand usage and dependencies.

Instructions

Get detailed information about a specific symbol including its callers and callees

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

Input Schema

NameRequiredDescriptionDefault
nameYesSymbol name
projectNoProject namedefault

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.2/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses only that callers and callees are included; it says nothing about what other 'detailed information' means, response shape, depth or size limits on the caller/callee lists, or behavior when the symbol is not found.

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?

A single efficient sentence with the resource front-loaded and no wasted wording. It is arguably too terse rather than padded, so nothing is lost to verbosity.

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

Completeness3/5

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

For a two-parameter read tool with no output schema and no annotations, the description covers the core purpose but leaves the return structure underspecified. An agent knows what to ask for but not what it will get back or how large the call-graph lists may be.

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 coverage is 100%, with both 'name' and 'project' documented in the schema, so the baseline of 3 applies. The description adds no syntax guidance (e.g., fully-qualified vs bare symbol names) or explanation of the 'project' defaulting behavior.

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?

States a specific verb ('Get') and resource ('information about a specific symbol') plus the payload it returns ('callers and callees'), which is enough to separate it from pure lookup tools like search_symbols or get_code_snippet. It stops short of explicitly distinguishing itself from trace_calls, which likely covers overlapping call-graph territory.

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

Usage Guidelines3/5

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

Usage is only implied: fetch details for a symbol you already have a name for. There is no explicit when-to-use, when-not-to-use, or pointer to alternatives such as searching for the symbol first or using trace_calls for deeper traversal.

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