Skip to main content
Glama

read_rom_bytes

Read bytes from a Game Boy ROM at a specified address and output them as a hex dump, with optional bank and length settings for memory inspection.

Instructions

Read bytes from ROM at the given address and format as a hex dump.

length must be between 1 and 4096. Use bank for banked ROM reads. Returns error if no ROM loaded or parameters are invalid.

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": "read_rom_bytes"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankNo
lengthNo
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/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 disclose the return format (hex dump), the valid length range (1-4096), and two failure conditions (no ROM loaded, invalid parameters). It omits whether large reads are truncated, how banked vs non-banked addressing interacts, and whether the operation is purely read-only.

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?

Three short sentences, front-loaded with the purpose before the constraints and error conditions. No filler or repetition; every sentence adds a distinct fact.

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?

There is no output schema, and the description does cover the hex-dump return shape and error cases, which is valuable. It is still incomplete for a ROM-read tool with undocumented address and bank semantics, and for what happens when address plus length crosses a bank boundary.

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 does document the length bounds and the role of bank, but leaves address units/width and bank numbering conventions unexplained. Partial compensation, not full.

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 ("Read bytes from ROM at the given address") plus the output shape (hex dump), which is enough to tell it apart from a generic memory read. It does not explicitly name which sibling to use instead, so it stops short of a 5.

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 line "Use bank for banked ROM reads" gives one conditional usage hint, and the ROM scope implicitly separates it from memory reads. However there is no explicit when-to-use versus gb_read_memory or gb_read_banked, and no stated prerequisite such as loading a ROM first.

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