Skip to main content
Glama

ida_xrefs_to

Find every cross-reference to an address or symbol, revealing which code calls, reads, writes, or points at it. Use it to trace callers and data usage during reverse engineering.

Instructions

Every reference to an address (who calls, reads, writes or points at it).

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_xrefs_to"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden; it does disclose the reference taxonomy returned (callers, readers, writers, pointers), which is genuinely useful behavior beyond a name. However, it says nothing about result ordering, whether results are truncated at the limit parameter, or what happens with ambiguous names that match multiple functions.

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?

A single front-loaded sentence with zero filler, correctly leading with the resource being described. Its brevity is partly the source of the specification gaps, but as a sentence it earns its place.

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 tool with no annotations and no output schema, the definition should clarify return shape, ordering, and truncation behavior tied to the limit parameter; none of that is present. An agent can call it, but cannot predict what it receives or whether 200 results is a cap.

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 coverage is only 50%: target is documented in the schema, but the limit parameter has no descriptive text anywhere and the description does not compensate by explaining truncation or ordering behavior. The description adds no meaning about accepted address/name forms beyond what the schema's target description already provides.

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+resource ('every reference to an address') and enumerates the reference kinds (calls, reads, writes, pointers), so an agent knows exactly what it gets back. The 'to' direction is only implicitly distinguished from the sibling ida_xrefs_from, but the semantics of 'references to an address' are unambiguous.

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?

There is no explicit when-to-use guidance, no statement of prerequisites (e.g., a binary must be open via ida_open), and no routing to alternatives such as ida_xrefs_from for outbound references or ida_call_graph for broader call structure. The description only implies usage through its return-content phrasing.

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