Skip to main content
Glama

what_calls_this

Find every symbol that calls a given function or method, returning file path, signature, and line number for precise symbol-level dependency tracing.

Instructions

Returns all symbols that call a given function or method. Each caller includes file path, signature, and line number. Symbol-level precision, more granular than file-level who_depends_on_this.

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

Input Schema

NameRequiredDescriptionDefault
symbol_idYesSymbol identifier (from search_symbols or get_file_outline results)
max_resultsNoMaximum results to return

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.10.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the full disclosure burden and does state what each result contains (file path, signature, line number). It does not say whether the traversal is direct-only or transitive, nor anything about ordering or truncation behavior when max_results is hit.

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 with zero filler: purpose first, then return shape, then sibling differentiation. Every sentence earns its place and nothing is buried.

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 two-parameter read tool with a fully documented schema, the definition covers what it does and what comes back, which is what's needed given there is no output schema. The one meaningful omission is whether callers are direct only or transitive, which affects how the result is interpreted.

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 symbol_id's provenance (search_symbols, get_file_outline) and max_results' bounds and default all documented in the schema. The description adds no meaning beyond that, so the baseline 3 applies.

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

Purpose5/5

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

"Returns all symbols that call a given function or method" gives a specific verb (returns), resource (callers of a symbol), and direction of the call edge. It also explicitly contrasts itself with the file-level sibling who_depends_on_this, so an agent can pick it without opening either schema.

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?

The phrase "more granular than file-level who_depends_on_this" tells the agent when to prefer this tool over that alternative. It stops short of an explicit when-not clause (e.g. use who_depends_on_this for module-level or non-symbol dependencies) or of stating that only direct callers are returned.

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