Skip to main content
Glama

exact_references

Read-onlyIdempotent

Find callers and references for a TypeScript/JavaScript symbol, excluding unrelated same-named symbols via compiler bindings and showing per-file call totals.

Instructions

Find who calls or references a symbol. TS/JS compiler bindings exclude same-named unrelated symbols; results label calls/imports and give per-file call totals before limits. Check scope, ambiguity and warnings. Python is heuristic; imported SCIP freshness is unverified.

Input Schema

NameRequiredDescriptionDefault
fileNoDefinition file; omit to infer.
lineNo1-based symbol line. Omit to infer a declaration; when several match, the response warns about the chosen candidate. Pass file and line to disambiguate.
rootNoAbsolute project root. Required with linked worktrees; subagents must pass their own worktree root on every call.
limitNoShown occurrences; default 100.
formatNoDefault text.
symbol_nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.7/5.0
Behavior4/5

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

The description adds real behavioral context beyond the read-only annotations: Python results are heuristic, imported SCIP index freshness is unverified, and callers should inspect scope, ambiguity, and warnings. These accuracy caveats are exactly what an agent needs to interpret results; it stops short of describing failure modes or fallback behavior.

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?

Four efficient sentences with the core purpose front-loaded and no repetition. The phrasing is somewhat telegraphic ('Check scope, ambiguity and warnings'), which costs a little clarity but wastes no space.

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?

With six parameters and no output schema, the description does a good job covering accuracy expectations, result labeling, per-file totals, and warnings. It is nearly complete for calling the tool correctly, missing only explicit sibling routing and return-shape detail.

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 83%, so parameter documentation is already handled by the schema, which is the correct baseline of 3. The description adds only indirect meaning ('per-file call totals before limits' touches on the limit parameter) and no syntax or format details beyond structured fields.

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?

The opening sentence states a specific verb and resource: 'Find who calls or references a symbol.' The clause about TS/JS compiler bindings excluding same-named unrelated symbols implicitly distinguishes it from text-search siblings like grep/search, though none are named explicitly.

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 guidance is implied rather than explicit: 'Check scope, ambiguity and warnings' and the mention of Python being heuristic hint at when to trust results, but the description never states when to choose this over grep or search, nor any preconditions. Most disambiguation guidance lives in the schema, not the description.

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