Skip to main content
Glama

ida_read_bytes

Read raw bytes from a specified IDA Pro address or symbol and return them as hex with printable ASCII, enabling memory inspection, patching checks, and signature analysis.

Instructions

Raw bytes at an address as hex plus printable ASCII.

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

Input Schema

NameRequiredDescriptionDefault
sizeNo
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?

No annotations are supplied, so the description carries the full burden. It does disclose the return representation (hex plus printable ASCII), which is genuinely useful behavior beyond the schema, but it says nothing about failure modes on unmapped addresses, whether reads cross segment boundaries, or whether the size cap truncates silently.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

One short fragment with no wasted words, but it is a noun phrase rather than a statement and omits the verb entirely. It is terse to the point of under-specification rather than efficiently complete.

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?

For a two-parameter read tool with no output schema, stating the return format covers the most important gap. Still missing are the size behavior (default 64, max 4096, truncation semantics) and address-resolution failure handling, which an agent needs before calling it.

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 well documented in the schema while 'size' carries just a type, default and maximum. The description contributes nothing about either parameter, so it does not compensate for the undocumented half, leaving the agent to guess what size means when omitted or clamped.

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 names a specific resource ('raw bytes at an address') and its output shape ('hex plus printable ASCII'), which is enough to separate it from ida_patch_bytes or ida_search_bytes. It lacks an explicit verb, since 'read' is carried only by the tool name, and it never names a sibling it differs from.

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 statement of when to use this versus the closely related patch/search bytes tools, and no preconditions such as needing a valid address or an open database. Usage is only inferable from the name.

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