Skip to main content
Glama

get_callees

Identify functions and methods called by a source function, with confidence tiers and source line locations, to map outgoing call relationships.

Instructions

Return functions and methods called by a source function with confidence tiers and source line sites.

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": "<symbol>"
    },
    "name": "get_callees"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileNoOptional repo-relative file path to disambiguate common short names.
limitNoMaximum callee edges to return (default 50).
symbolYesCaller symbol name, qualified_name, or 32-char UID hex.
include_likelyNoInclude Tier 7 LIKELY_CALLS candidates (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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 add real behavioral context (results are graded by confidence tiers, and call sites carry source lines), and the schema's include_likely reveals a Tier 7 candidate class. But it never states that this is a read-only query, whether results are truncated by default, or how tiers are ordered.

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?

One sentence, front-loaded with the verb and resource, and every clause (confidence tiers, source line sites) conveys something the agent could not infer from the name alone. No filler.

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 must stand in for return-shape documentation. It names the key fields returned (callee functions/methods, confidence tier, source line), which is enough to call the tool correctly, but leaves the tier taxonomy and ordering unexplained given the tool's analytic complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; this description goes slightly beyond by tying the output to 'confidence tiers' and 'source line sites', which explains why include_likely (Tier 7 candidates) exists and what limit bounds. It does not explain the qualified_name vs 32-char UID forms, but the schema already does.

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 and resource ('Return functions and methods called by a source function') and encodes call-graph direction, which implicitly separates it from get_callers. It stops short of naming or contrasting with any sibling, so an agent must infer the distinction.

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 by the description: use it to get downstream calls of a known symbol. There is no explicit when-to-use, when-not-to-use, or pointer to get_callers/get_impact for related questions, so guidance is only adequate.

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