Skip to main content
Glama

ida_call_graph

Generate a breadth-first call graph around an IDA Pro function to inspect callees, callers, or both, capped at 400 nodes for focused reverse-engineering analysis.

Instructions

Breadth-first call graph around a function, capped at 400 nodes. direction=down (callees), up (callers) or both.

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": {
      "target": "<target>"
    },
    "name": "ida_call_graph"
  }
}

Input Schema

NameRequiredDescriptionDefault
depthNo
targetYesAddress or name: '0x401000', 'sub_401000', a defined name, 'libUE4.so+0x1234', or a unique part of a function name.
directionNodown

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

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 load. It contributes genuine behavioral facts — BFS traversal order and a hard 400-node cap (i.e., results may be truncated) — but says nothing about what happens on ambiguous name matches, whether depth applies per direction, or what the result looks like.

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 operation and its cap, then the direction semantics. Compact and readable, though the 'direction=down (callees), up (callers) or both' phrasing is telegraphic rather than fully formed prose.

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?

No output schema and no annotations mean the description must cover behavior and return shape; it covers the cap and traversal but leaves the depth parameter and the structure of returned nodes/edges unspecified. Adequate to invoke, not complete enough to predict results.

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 only 33%: target is well documented in the schema, but depth and direction have no schema descriptions. The description repairs direction by defining down=callees, up=callers, both, adding real meaning beyond the bare enum; depth's semantics (levels of expansion, interaction with the 400-node cap) remain unexplained in both places.

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?

Names a specific operation and resource: a breadth-first call graph around a function. That is clearly distinct from decompile/disasm/function siblings, though it never explicitly contrasts itself with any of them.

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?

The phrasing implies the exploration use case (mapping callers/callees from a function), and the direction values hint at intent, but there is no explicit when-to-use, when-not-to-use, or pointer to an alternative tool for a different kind of relationship search.

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