Skip to main content
Glama

gb_get_serial_state

Reads Game Boy serial port registers SB and SC and returns parsed transfer state, including transfer-in-progress and clock-source values; returns an error if no ROM is loaded.

Instructions

Read serial port registers and return parsed state.

    Reads SB (0xFF01) and SC (0xFF02). SC is decoded into
    transfer_in_progress and clock_source fields.
    Returns error if no ROM loaded.
    

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_serial_state"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

With no annotations, the description carries the burden. It does disclose that the tool reads SB and SC, decodes SC into transfer_in_progress and clock_source, and returns an error if no ROM is loaded. It does not explicitly state that the operation is read-only, nor does it describe side effects or the full return structure.

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 description is three short sentences and is front-loaded with the core action. Each sentence adds distinct information: the operation, the registers read and decoded fields, and the ROM prerequisite. There is no redundant or filler wording.

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 zero-parameter read tool with no output schema, the description provides enough to call it correctly: the registers read, the decoded fields, and the ROM dependency. The only minor gap is that 'parsed state' is not fully defined beyond the two SC fields, but this is largely acceptable for a simple state-read operation.

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 has zero parameters, so there are no parameter semantics to explain. The description still describes the inputs in hardware terms (the SB and SC register addresses), which adds useful context. Zero-parameter tools have a baseline of 4.

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?

The description uses a specific verb and resource: 'Read serial port registers and return parsed state.' It names the exact registers accessed (SB at 0xFF01 and SC at 0xFF02), which distinguishes it from generic register-reading siblings. It does not explicitly contrast itself with tools like gb_get_registers, 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?

Usage is implied by the resource: call this when you need serial-port state. The description adds a prerequisite ('Returns error if no ROM loaded'), which is useful context. However, it does not state when to use this instead of gb_get_registers or other state-read tools, and no alternatives are named.

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