Skip to main content
Glama

gb_write_memory

Writes hex byte data to a specified Game Boy writable memory region (RAM, HRAM, VRAM, or OAM) and returns confirmation with the address and byte count.

Instructions

Write bytes to a writable memory region (RAM, HRAM, VRAM, OAM).

Data is a hex string (e.g., "FF0042"). Address must be in a writable range. Returns confirmation with address and byte count written.

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>",
      "data": "<data>"
    },
    "name": "gb_write_memory"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/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 supply the input encoding, the writable-region constraint, and the return shape ('confirmation with address and byte count written'). It stops short of saying what happens on an invalid or read-only address (error vs silent no-op) and whether the write affects emulator execution state.

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?

Three short sentences with the operation front-loaded, the data format second, and the return behavior last; nothing is padded. The region list in parentheses is compact and informative rather than redundant.

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?

For a simple two-parameter mutation tool with no output schema, the description covers purpose, input format, constraint, and return value, which is nearly everything needed to call it. Only error behavior and side effects on execution state are left unaddressed.

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%, yet the description meaningfully explains both parameters: 'data' is a hex string with a concrete example ('FF0042'), and 'address' must fall in a writable region. The address radix/width is not stated, so an agent must infer a 16-bit integer, which keeps it below a 5.

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 bytes to a writable memory region') and enumerates the target regions (RAM, HRAM, VRAM, OAM), which makes the write/read split from gb_read_memory obvious. It does not explicitly name the read counterpart or the diff tool, so differentiation relies on the verb alone.

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?

Usage is only implied: the note that 'Address must be in a writable range' tells the agent a precondition but not what to do instead when it isn't, nor when to prefer gb_read_memory, gb_read_banked, or gb_memory_diff. No when-not or alternative routing is provided.

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