Skip to main content
Glama

gb_read_memory

Read bytes from a live Game Boy emulator memory address and return a hex dump to inspect RAM, VRAM, I/O, or ROM.

Instructions

Read bytes from any memory address and return as a hex dump.

    Reads from live emulator memory (RAM, VRAM, I/O, ROM). For banked regions
    the current bank is used. Use gb_read_banked for explicit bank selection.
    length must be between 1 and 4096. Returns error if no ROM loaded.
    

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

Input Schema

NameRequiredDescriptionDefault
lengthNo
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior4/5

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

No annotations are provided, so the description carries the full burden. It discloses key behavior: reads target live emulator memory, banked regions use the current bank, length is bounded to 1-4096, and an error is returned when no ROM is loaded. It does not explicitly state that the call is side-effect free or how truncated/partial reads behave.

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 return format and scope are front-loaded in the first sentence, followed by region coverage, the sibling alternative, and constraints. Every sentence adds information an agent needs, with no padding.

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 two-parameter read tool with no annotations and no output schema, the definition covers return format, bank behavior, size bounds, and the no-ROM error case. The remaining gaps are the valid address range and the default length value.

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

Parameters3/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. It constrains `length` to a 1-4096 range and explains that `address` can be any memory address, but it omits the valid address range and the 256 default for length, leaving some parameter meaning undocumented.

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 gives a specific verb and resource (read bytes from a memory address) and states the return format (hex dump). It also distinguishes itself from the sibling gb_read_banked by explaining that this tool uses the current bank.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It names the alternative gb_read_banked explicitly and gives the condition that selects it (explicit bank selection). It also lists the memory regions it covers (RAM, VRAM, I/O, ROM), so an agent can tell when this tool applies.

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