Skip to main content
Glama

Xrefs

xrefs
Idempotent

Retrieves analyzed cross-references to a code or data address, helping connect strings, globals, selectors, and functions during reverse engineering.

Instructions

Return analyzed references to a code or data address. Hopper may default to its current cursor; headless providers such as Ghidra require an explicit address. Kuna also accepts names in its own inventory, including data names; an unlisted name may still exist in the target. Use to connect strings, globals, selectors, and functions; bare addresses are untyped and indirect references may be incomplete. Page a retained result with inspect_analysis_view and native-observation; use native-context for source caveats. Use inspect_native_instruction at the target address for typed incoming references where supported.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "xrefs"
  }
}

Input Schema

NameRequiredDescriptionDefault
addressNo
documentNo

Output Schema

NameRequiredDescriptionDefault
subjectYes
providerYes
authorityYes
locationsYes
operationYes
confidenceYes
parametersYes
raw_resultYes
environmentYes
evidence_idYes
limitationsYes
evidence_linksYes
predicate_typeYes
analysis_profileYes
caller_input_pathNo
normalized_resultYes
caller_input_pathsNo
relationship_coverageYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.25.0

TDQS

A4.3/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: indirect references may be incomplete, bare addresses are untyped, and a name absent from Kuna's inventory may still exist in the target — all caveats that annotations do not convey. It does not explain why readOnlyHint is false (the 'retained result' wording hints at server-side retention) or what permissions or engine support are needed, so it stops short of full disclosure.

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?

Front-loads the purpose in the first sentence and every subsequent sentence carries a distinct constraint or routing hint. It is dense with provider jargon and the paging/alternative sentences pile up at the end, but there is no filler.

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

Completeness4/5

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

An output schema exists, so return values need not be described, and the description covers provider variability, completeness limitations, and follow-up tools. The notable remaining gap is the undocumented 'document' parameter, which an agent must guess at.

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 description coverage is 0%, so the description must carry the burden, and it partially does: it explains address semantics (optional under Hopper's cursor, mandatory for headless providers, and accepting names in Kuna's inventory including data names). The 'document' parameter is never mentioned, leaving one of two parameters completely undocumented in both schema and description.

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 ('Return analyzed references to a code or data address') and explicitly separates itself from inspect_native_instruction, which it names as the route for typed incoming references. An agent can distinguish this from siblings like inspect_analysis_view and native-context 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 concrete when-to-use targets (connect strings, globals, selectors, functions), provider-specific preconditions (Hopper defaults to cursor, Ghidra requires an explicit address), and names alternatives for adjacent needs (inspect_native_instruction for typed incoming refs, inspect_analysis_view and native-observation for paging, native-context for source caveats). Nothing essential is left to inference.

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