Skip to main content
Glama

get_xrefs

Find cross-references to or from a memory address to identify callers and callees in binary analysis.

Instructions

Get cross-references to or from an address (callers / callees).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesMemory address as hex string. ALWAYS use '0x' prefix. Examples: '0x401000', '0x7FFE0308', '0x00007FF7C0001234'. WARNING: without '0x' prefix, '401000' is treated as decimal 401000, not hex 0x401000.
directionNo'to' = who references this address; 'from' = what it references.to

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoStructured result data (varies by tool)
errorNo
detailsNoDetailed text breakdown
successYes
summaryYesOne-line human-readable result
suggested_next_toolsNoTools recommended to call next based on this result
Behavior2/5

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

No annotations are provided, so the description must disclose behavior. It only restates the purpose without mentioning read-only nature, output format, platform context, or potential side effects. The schema and output schema carry the burden of explaining parameters and returns, leaving the description thin on behavioral disclosure.

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?

The description is a single, front-loaded sentence with no redundancy. It efficiently communicates the core function and direction flexibility, appropriate for the tool's simplicity.

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?

The tool is simple, has full schema coverage, and includes an output schema, so the description does not need to explain return values. However, it lacks any mention of platform applicability or relationship to sibling xref tools, making selection slightly less informed in a context with many similar tools.

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 descriptions cover 100% of the parameters, including the address prefix warning and the direction enum semantics. The description adds only 'callers / callees', which paraphrases the schema's direction explanation and does not enrich parameter understanding.

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?

The description clearly states the tool gets cross-references to or from an address, with 'callers / callees' clarifying the direction concept. It covers both directions in one tool, distinguishing it from sibling tools like ida_xrefs_to and ida_xrefs_from, though it does not explicitly name those alternatives.

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 description implies usage for retrieving callers or callees, but it does not explicitly state when to prefer this tool over the direction-specific siblings or other xref utilities. The direction parameter in the schema provides context, but the description itself lacks explicit guidance or exclusions.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/DdUdle/ctxdebug'

If you have feedback or need assistance with the MCP directory API, please join our Discord server