Skip to main content
Glama

who_calls_this

Find which functions call a symbol or which symbols it calls using reference-graph data, returning file paths, signatures, and line numbers for each reference.

Instructions

Returns symbol-level references: callers (direction=to) or callees (direction=from). Based on the reference graph, not text matching. Each reference includes file path, signature, and line number.

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": "who_calls_this"
  }
}

Input Schema

NameRequiredDescriptionDefault
directionNoto=callers, from=calleesto
symbol_idYesSymbol identifier (from search_symbols or get_file_outline results)

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?

With no annotations, the description carries the full burden. It does valuable work by disclosing that results derive from a reference graph, not text matching, and by listing the fields each reference contains (path, signature, line number), partly compensating for the absent output schema. It says nothing about index freshness requirements, result limits, pagination, or behavior when the symbol is unknown or the repository is not indexed.

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

Conciseness5/5

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

Three short sentences, front-loaded with the core action and the mode mapping, followed by the key differentiator (graph-based, not text matching) and the return shape. Nothing is redundant and every sentence adds information.

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?

For a simple two-parameter read tool with no output schema, the description covers what the tool does, how the direction flag changes results, and what each returned reference includes. The remaining gaps, index freshness and result limits, are relatively minor for a lookup of this complexity.

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 both parameters are already documented, and the enum on direction is self-explanatory. The description restates the direction mapping in prose but adds no new meaning such as whether symbol_id must come from the current index or how ambiguous identifiers are resolved, so the baseline of 3 applies.

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 description uses a specific verb and resource ("Returns symbol-level references") and immediately defines the two modes, callers vs. callees, with the direction mapping. It is clear what the tool does, though it never names the closely related siblings (what_calls_this, what_does_this_call), so an agent must infer the distinction from the direction semantics alone.

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 implied through the direction parameter (to=callers, from=callees) and the note that results come from the reference graph rather than text matching, which implies it should be preferred over text search for call analysis. However, there is no explicit when-to-use/when-not-to-use statement and no named alternative, which matters given several sibling tools that appear to answer overlapping questions.

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