Skip to main content
Glama

edb_write_memory_bytes

Destructive

Write raw hex bytes to a specific memory address to patch multiple bytes at once, useful for inserting NOP sleds or shellcode during debugging.

Instructions

Write raw hex bytes to memory starting at an address. Useful for patching multiple bytes at once (e.g., NOP sled or shellcode).

Args: params (MemoryWriteBytesInput): Raw byte write - address (str): Target address (e.g., '0x400000') - hex_bytes (str): Hex bytes (e.g., '90 90 90' or '0x90 0x90 0x90')

Returns: str: Confirmation of byte count written

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already indicate destructiveHint=true, so the description confirms this with 'write raw hex bytes' and mentions the return value (confirmation of byte count). It adds value by specifying hex format examples, but does not detail potential risks like invalid addresses or memory protection violations, which would be helpful.

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 concise and well-structured: a clear one-sentence purpose, a usage hint, and an Args block with parameter explanations. It is front-loaded with the main action and uses minimal words, earning its place without redundancy.

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 relatively simple, and the description covers write operation and return type. However, it omits critical context such as the need for memory to be writable, potential crashes on invalid addresses, and interaction with process state (e.g., required paused state). This lack of completeness could lead to failed tool invocations.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema provides descriptions for 'address' and 'hex_bytes', giving example formats. The description reinforces these with similar examples (e.g., '0x400000', '90 90 90'). Since schema_description_coverage is reported as 0% (though the schema does contain descriptions), the description partially compensates but does not fully explain expected formats beyond basic examples.

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?

The description clearly states the tool writes raw hex bytes to memory starting at an address, and explicitly mentions use cases like patching NOP sleds or shellcode. This distinguishes it from sibling tools like edb_fill_memory (which fills with a pattern) and edb_write_memory (which may write other data types).

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 patching multiple bytes but does not provide explicit guidance on when to use this tool versus alternatives (e.g., edb_fill_memory for single-byte fills, edb_fill_memory for patterns). It also lacks prerequisites (e.g., memory must be writable) and exclusions, leaving the agent to infer context.

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/oakkaya/edb-debugger-mcp'

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