Skip to main content
Glama

debug_write_memory

Write raw bytes to guest memory using a hex string value, enabling direct patching or inspection of target memory during bare-metal debugging.

Instructions

Write raw bytes (hex string, e.g. "90 90 cc") to guest memory.

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": {
      "name": "<name>",
      "address": "<address>",
      "hex_bytes": "<hex_bytes>"
    },
    "name": "debug_write_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
addressYes
hex_bytesYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.8/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and discloses very little: it does not say whether existing bytes are overwritten, whether memory must be writable or the target halted, what permissions or connection state are required, or what happens on an invalid address. The hex-string format note is the one genuinely useful behavioral detail.

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?

A single front-loaded sentence with an inline example and zero filler. Nothing could be removed without losing information.

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?

For a destructive memory-write tool with three undocumented parameters, no annotations, and a debug context that implies connection/session prerequisites, the definition is too thin. The output schema existing means return values need not be explained, but the write semantics and parameter meanings are not covered.

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 description coverage is 0%, so the description must compensate, and it only clarifies hex_bytes via an example. The 'name' parameter (presumably a session/process selector) and the 'address' parameter (format, e.g. hex vs decimal, absolute vs symbol) are left entirely undocumented in both schema and description.

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?

States a specific verb (write) and resource (raw bytes to guest memory), and the inline example "90 90 cc" makes the intent concrete. It does not distinguish itself from siblings such as debug_memory (likely the read counterpart) or debug_set_register, so an agent must infer the boundary from the name alone.

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?

The description gives no when-to-use guidance, no precondition such as an active/suspended debug session, and no exclusion against debug_set_register or other mutation tools. The only usage detail inferable is that bytes are supplied as a hex string.

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