Skip to main content
Glama
drvcvt
by drvcvt

read_bytes

Read raw bytes from a specific address in a binary to inspect data as a hex string or formatted hexdump.

Instructions

Read raw bytes from a specific address in the binary, returned as hex string or formatted hexdump.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoNumber of bytes to read
formatNoOutput format: "hex" for raw hex string, "hexdump" for formatted hexdumphex
addressYesHex address (e.g. "0x08048000")
binary_pathYesAbsolute path to the binary file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.3/5.0
Behavior3/5

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

The description states the core behavior: reading raw bytes and returning them in one of two formats. No annotations are present, so the description carries the full behavioral burden; it is not misleading, but it does not clarify address semantics, end-of-file behavior, or whether the binary must be prepared/analyzed first.

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 wasted words. It conveys the operation, target, and output format efficiently.

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 simple read tool with a fully documented schema, the description is mostly adequate. However, it lacks usage boundaries relative to debug memory reads and does not clarify whether 'address' means a virtual address, a file offset, or something else, which is important for correct invocation.

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 coverage is 100%, so the parameters are already well documented. The description adds little beyond restating the output format choice and that an address is used, which matches the schema's own descriptions.

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 uses a specific verb ('Read'), a clear resource ('binary'), and a specific target ('specific address'), and it names the return formats ('hex string or formatted hexdump'). It is clearly distinct from writing or searching, but it does not explicitly contrast with sibling debug memory reads.

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 guidance about when to use read_bytes versus debug_read_memory, disassemble_bytes, or search_bytes. The phrase 'in the binary' implies static file access, but with many related sibling tools, the description leaves the selection largely to inference.

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