Skip to main content
Glama

gb_read_banked

Reads bytes from a selected Game Boy memory bank and returns them as a hex dump, enabling bank-specific ROM or RAM inspection.

Instructions

Read bytes from a specific memory bank and return as a hex dump.

    Uses pyboy.memory[bank, address] syntax 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": {
      "bank": "<bank>",
      "address": "<address>"
    },
    "name": "gb_read_banked"
  }
}

Input Schema

NameRequiredDescriptionDefault
bankYes
lengthNo
addressYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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. It does disclose the return format (hex dump), the length bound (1-4096), and the failure mode ('Returns error if no ROM loaded'), which is real added value. It omits whether bank means ROM or RAM bank, valid address ranges, zero-based indexing, and what happens on out-of-range reads.

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, front-loaded with the operation and return type, followed by the constraint and error case. Little waste; the pyboy syntax sentence is the only one that borders on implementation detail rather than agent-facing guidance.

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?

For a 3-parameter read tool with no output schema and no annotations, the definition covers purpose, length bounds, and one error condition, which is reasonable. It is still missing the address/bank valid ranges and any note on how the hex dump is formatted, which an agent needs to interpret results.

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 all three parameters rely on the description. It clarifies 'length' bounds (the schema only gives default 256), names 'bank' as a memory bank, and points at pyboy.memory[bank, address] syntax, but leaves the address space and bank numbering conventions unexplained.

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 a specific memory bank') and the return form ('hex dump'). The phrase 'explicit bank selection' implicitly separates it from gb_read_memory, though it never names that sibling, so the differentiation is inferable rather than stated.

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: 'explicit bank selection' hints that this is the tool for cross-bank reads, but there is no explicit when-to-use statement, no named alternative (gb_read_memory, read_rom_bytes), and no guidance on choosing a bank or address.

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