Skip to main content
Glama

trace_data_flow

Trace cross-references across multiple hops from or to an address to map code or data paths touching a string, constant, or global. Choose forward or backward traversal with configurable depth.

Instructions

Follow cross-references from or to an address, automatically traversing multiple hops. Use 'forward' to see where data flows TO (xrefs-from), or 'backward' to see where data flows FROM (xrefs-to). At each node in the traversal, returns the function name, instruction, and whether it's code or data. Use this when you find an interesting string, constant, or global and want to understand every code path that touches it without manually chaining xrefs_to calls. Do not use for call graph traversal — use callgraph for that. max_depth controls how many hops to follow (default 5, max 20).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addrYesStarting address
directionNo'forward' (xrefs from) or 'backward' (xrefs to)forward
max_depthNoMaximum traversal depth
instance_idYes必须提供的 instance_id(或 client_id),用于将请求精确路由到特定的 IDA 实例。请先调用 instance_list 查看并选择合适的客户端 ID。

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A4.7/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden, and it does substantial work: it discloses automatic multi-hop traversal, the direction semantics, and the per-node return payload (function name, instruction, code-vs-data). It doesn't cover performance/limits on large traversals, keeping it short of a 5.

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?

Front-loaded with the core action, then direction semantics, then the triggering use case, then the exclusion, then the parameter note. Every sentence adds distinct information with no redundancy.

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

Completeness5/5

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

No output schema exists, yet the description describes what each traversal node returns (function name, instruction, code/data), which is exactly what an agent needs to decide whether to call it. For a 4-parameter read tool with no annotations, it is complete.

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 baseline is 3; the description adds intuitive meaning to 'direction' (forward = data flows TO, backward = flows FROM) beyond the terse schema phrasing, and supplies the max_depth cap (max 20) that the schema omits. Marginal but real added value.

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?

States a specific verb (follow/traverse) plus resource (cross-references from/to an address across multiple hops). It explicitly distinguishes itself from the sibling 'callgraph' and implicitly from chained 'xrefs_to' calls, so an agent can place it without opening the schema.

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

Usage Guidelines5/5

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

Gives a concrete triggering scenario ('when you find an interesting string, constant, or global') and an explicit exclusion with the escape hatch ('Do not use for call graph traversal — use callgraph for that'). Both when-to-use and when-not-to-use are covered.

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