Skip to main content
Glama

MemoryWrite

DestructiveIdempotent

Write hexadecimal data to a given memory address in x64dbg/x32dbg sessions; returns a verified write result for debugging, patching, and memory editing.

Instructions

Write memory using enhanced Script API

Parameters: addr: Memory address (in hex format, e.g. "0x1000") data: Hexadecimal string representing the data to write

Returns: Structured write/verification result from bridge v2 (legacy bridges may still return a status string).

Input Schema

NameRequiredDescriptionDefault
addrYes
dataYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.9

TDQS

B3.3/5.0
Behavior3/5

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

Annotations already declare the full safety profile (destructiveHint=true, idempotentHint=true, readOnlyHint=false, openWorldHint=true), so the bar is low. The description adds value by disclosing that the return shape varies by bridge version ('legacy bridges may still return a status string'), but it gives no warning about the destructive nature of overwriting memory or permission requirements.

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

Conciseness4/5

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

Front-loaded with the core action, then cleanly sectioned into Parameters and Returns. No sentence is wasted, though the vague 'enhanced Script API' phrase adds length without information.

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?

With no output schema, the Returns note is valuable, and both parameters are documented. But for a destructive mutation tool sitting in a large debugging sibling set, the absence of any 'when to use' or safety context leaves it only minimally complete.

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?

Schema description coverage is 0%, so the description carries the full burden and does so well: it formats 'addr' as hex with a concrete example ("0x1000") and defines 'data' as a hexadecimal string. Both parameters gain semantic meaning absent from the schema, though no length/alignment constraints are given.

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 and resource ('Write memory'), which cleanly distinguishes it from the clearly-paired ReadMemory sibling. However, 'using enhanced Script API' is an unexplained mechanism reference that doesn't help an agent understand the tool's role any better.

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 on when to use MemoryWrite versus alternatives like EvalBatch or SetBreakpointWithCapture, nor any prerequisites. The agent must infer usage entirely from the name and the sibling list.

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