Skip to main content
Glama

gb_get_registers

Read all CPU registers from the running Game Boy emulator and return the full SM83 register set, including composite registers (AF, BC, DE, HL) and individual flag bits, in spec format.

Instructions

Read all CPU registers and return them in spec format.

Returns the full SM83 register set including composite registers (AF, BC, DE, HL) and individual flag bits.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "gb_get_registers"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

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 must carry the behavioral burden. It does establish that this is a pure read that returns the full SM83 register set with flag bits, which is real disclosure of the response shape, but it says nothing about whether a ROM/session must be loaded, error behavior, or whether the read has any side effects.

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?

Two short sentences, front-loaded with the core action, with no filler. There is mild redundancy between "return them in spec format" and "Returns the full SM83 register set", which keeps it from a 5.

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?

This is a simple zero-argument read with no output schema, so the description needs only to convey what comes back, and it names the composite registers and flag bits. Exact field names and value formats are left implicit, which is a minor gap for a debugger-facing tool.

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?

The tool takes zero parameters and the schema is an empty object, so there is no parameter meaning to add. The baseline of 4 applies; the description correctly implies no arguments are needed.

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?

"Read all CPU registers" gives a specific verb and resource, and the second sentence narrows the payload to the SM83 register set with composite registers (AF, BC, DE, HL) and individual flag bits. It is clearly distinct from the write-side sibling gb_set_register, though no sibling is named explicitly.

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

Usage Guidelines2/5

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

The description never says when to reach for this tool versus alternatives such as gb_get_interrupt_status, gb_get_lcd_status, or gb_get_state-save siblings. Usage is only implied by the tool name; there are no prerequisites, no exclusions, and no stated debugging/inspection scenario.

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