Skip to main content
Glama

aft_callgraph

Analyze read-only code call graphs to identify callers, call trees, change impact, and symbol or data traces across files.

Instructions

AFT call graph (read-only). Ops: callers, call_tree, impact, trace_to, trace_to_symbol, trace_data.

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": {
      "op": "<op>",
      "filePath": "<filePath>",
      "symbol": "<symbol>"
    },
    "name": "aft_callgraph"
  }
}

Input Schema

NameRequiredDescriptionDefault
opYes
depthNo
symbolYes
toFileNo
filePathYes
toSymbolNo
expressionNo
includeTestsNo
includeUnresolvedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden. It does add one genuinely useful fact — read-only — but says nothing about depth limits, includeTests/includeUnresolved semantics, result size, or that filePath and symbol are mandatory for every op.

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?

Two short sentences, front-loaded with the tool's identity and read-only status, with no filler. The terse op list is efficient in form, though it trades away explanation that the 9-param schema badly needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 9-parameter, 3-required tool with sparse enum-only schema coverage, no annotations, and no output schema, this description is far too thin. The agent cannot determine what each op returns or how the optional parameters alter behavior.

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

Parameters2/5

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

Schema description coverage is 0% across 9 parameters, so the description must compensate and does not. It merely restates the op enum values already present in the schema and gives zero meaning for depth, toFile, toSymbol, expression, includeTests, or includeUnresolved.

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

Purpose3/5

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

The description identifies the resource as an 'AFT call graph' and enumerates six operations, which separates it from siblings like aft_grep or aft_outline. However, bare op names such as 'impact' or 'trace_data' do not state what they actually return or compute, so the agent knows the domain but not the capability.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to choose this tool over the other aft_* tools, nor which of the six ops suits which question. The agent must infer op selection purely from names, with no exclusions or prerequisites stated.

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