Skip to main content
Glama

Follow xrefs across multiple hops

trace_data_flow
Read-only

Find all code paths touching a string, constant, or global by tracing cross-references from or to an address across multiple hops.

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_idNoOptional database instance id. If omitted, use the current target.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
edgesNo
errorNo
nodesNo
startNo
directionNo
depth_reachedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv20261008.0.1

TDQS

A4.7/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=true, but the description adds real behavioral context: the semantics of 'forward' vs 'backward', the per-node return contents (function name, instruction, code-vs-data), and the depth bound (default 5, max 20). It doesn't discuss auth, rate limits, or truncation on deep traversals, so it stops short of the top score.

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?

Tight, front-loaded sentences: purpose first, then direction semantics, then the use case, then the exclusion, then the depth constraint. No filler or repetition.

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?

With an output schema and read-only annotation already present, the description supplies exactly the missing pieces — traversal direction meaning, use-case framing, and the callgraph exclusion — leaving nothing an agent needs in order to invoke it correctly.

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, but the description adds interpretation beyond the raw schema — explaining what 'forward'/'backward' mean in terms of data-flow direction and surfacing the max_depth ceiling of 20 that the schema's description omits.

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 and resource ('follow cross-references from or to an address, automatically traversing multiple hops') and explicitly distinguishes itself from callgraph. An agent can tell what it does and how it differs from xrefs_to/callgraph without opening any 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 an explicit when-to-use ('when you find an interesting string, constant, or global and want to understand every code path that touches it') and an explicit when-not ('Do not use for call graph traversal — use callgraph for that'), naming the alternative sibling directly.

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