Skip to main content
Glama
drvcvt
by drvcvt

write_bytes

Patch specific addresses in a binary by writing raw hex bytes or assembling assembly instructions to alter program behavior.

Instructions

Patch bytes at a specific address in the binary using hex bytes or assembly instructions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
addressYesHex address to write at (e.g. "0x08048000")
assemblyNoAssembly instruction to assemble and write (e.g. "nop" or "jmp 0x08048100")
hex_bytesNoHex bytes to write (e.g. "9090" for two NOPs)
binary_pathYesAbsolute path to the binary file

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

There are no annotations, so the description carries full responsibility for disclosing behavior. It reveals that the operation patches/persists bytes in a binary, but does not mention potential irreversibility, file corruption risk, or permissions needed. For a mutating, file-modifying tool this is a significant transparency gap.

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, efficient sentence that front-loads the core action, target, and accepted input modes. Every phrase earns its place, and there is no redundant or filler content.

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?

Given that this is a destructive write operation with no annotations and no output schema, the description is too thin. It omits the either/or relationship between assembly and hex_bytes, does not state whether the patch is written to disk, and gives no hint about return values or failure conditions, leaving important operational ambiguity.

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 each parameter is already documented. The description adds a small amount of relational meaning by stating that hex bytes or assembly instructions can be used, but it does not clarify whether both can be specified together or whether at least one is required. This keeps it at the baseline.

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 a specific verb ('Patch') and resource ('bytes at a specific address in the binary'), and indicates the two input modes. It is distinct enough from generic read/debug tools, though it does not explicitly name or contrast any sibling tool such as debug_write_memory.

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?

No guidance is given about when to use this tool versus alternatives like debug_write_memory or read_bytes. There is no mention of prerequisites, exclusions, or conditions that should trigger this tool over another, so the agent is left to infer usage from the name and short description.

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