Skip to main content
Glama

what_does_this_call

Returns all symbols a given function or method calls, including file path, signature, and line number, to reveal its dependencies.

Instructions

Returns all symbols that a given function or method calls. Each callee includes file path, signature, and line number. Shows what a function depends on.

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_does_this_call"
  }
}

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

B3.4/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, and it does disclose the return payload (file path, signature, line number), which is genuinely useful. However, it leaves key behavioral questions open: whether results are direct callees only or transitively expanded, and what happens when max_results (default 50) silently truncates a large call graph.

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?

Three short sentences, front-loaded with the core behavior and followed by the return shape, with no filler. The final sentence slightly restates the first ('depends on' vs 'calls') but earns a little conceptual framing in return.

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?

There is no output schema, so the description usefully enumerates the returned fields, and the two-parameter surface is simple. Still, for a graph-traversal tool the missing notes on traversal depth, truncation, and empty results leave an agent unable to predict the shape or completeness of a response.

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 symbol_id and max_results are already documented in the schema, including bounds and default. The description adds no syntax, format, or sourcing detail beyond restating that a symbol is supplied — the baseline 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 states a specific verb and resource — returns the symbols a given function or method calls — and adds the directional framing 'shows what a function depends on,' which lets an agent distinguish it from the reverse-direction siblings like what_calls_this or who_calls_this. It stops short of naming an alternative explicitly, so it is clear but not maximally differentiated.

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 through directionality: use this when you want outgoing dependencies rather than incoming callers. There is no explicit when-to-use statement, no exclusion of the caller-side siblings, and no guidance on when to prefer what_breaks_if_i_change for impact analysis.

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