Skip to main content
Glama

write_memory

Write hardware register values to PlayStation 2 memory at a specified address and byte width, performing ascending-access writes in the EE or IOP space.

Instructions

Writes values of width bytes (1, 2, 4, 8 or 16) starting at address, each with one access of exactly that width, in ascending order: the way to write a hardware register. space is "ee" or "iop".

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": {
      "address": "<address>",
      "values": "<values>"
    },
    "name": "write_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
spaceNoee
widthNo
valuesYes
addressYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does meaningful work: it discloses that each value is written with exactly one access of the given width in ascending order, which tells the agent this performs no read-modify-write and cannot be batched. It does not cover failure behavior (bus errors, unmapped addresses) or whether writes require the target to be halted, but the access-granularity disclosure is the critical trait for this class of tool.

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?

Two compact sentences with no filler; the width-and-order contract comes first and the space/format constraint follows. Every clause carries operational meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values need no explanation, and the core write semantics are fully specified. The remaining gap is modest but real for a low-level memory tool: nothing says whether the target must be halted, how the string forms of address/values are interpreted, or what happens on an invalid width or space.

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 coverage is 0%, so the description must supply the meaning and it largely does: it enumerates legal `width` values (1, 2, 4, 8, 16), pins `space` to "ee" or "iop", and explains that `values` are written sequentially starting at `address`. What it leaves unexplained is that `address` and each value may be given as either an integer or a string, so the string form and its expected notation remain unclear.

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 values to memory) plus the access-width contract, which immediately separates it from read_memory and dump_memory siblings. It never names the read counterpart explicitly, so the differentiation is inferred from the verb rather than spelled out.

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 phrase "the way to write a hardware register" gives a concrete intended use case and implies ordinary bulk memory writes are not the target. However, there is no explicit when-not guidance, no mention of which cases should go through a higher-level register/write sibling, and no prerequisites such as halting the target first.

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