Skip to main content
Glama

gb_step

Advance Game Boy emulation by a set number of frames or CPU instructions, then return PC, decoded instruction, and full register state for debugging.

Instructions

Advance emulation by count steps and return CPU state.

    Modes:
    - "frame": advance *count* frames (fast, default).
    - "instruction": advance *count* individual CPU instructions via
      hook-based stepping (slower, precise).

    Returns current PC, decoded instruction at the new PC, and full
    register state.
    

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

Input Schema

NameRequiredDescriptionDefault
modeNoframe
countNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior3/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 does disclose the performance/precision tradeoff and the return shape (PC, decoded instruction, full registers), which is useful. It does not discuss that stepping mutates emulator state, how breakpoints or hook-based stepping interact, or what happens with large or zero counts.

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?

Front-loaded purpose sentence, then a compact mode list, then a single sentence on returns. Every sentence adds information and the structure maps directly to the two parameters.

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?

There is no output schema, and the description covers the return values adequately (PC, decoded instruction, register state). For a two-parameter stepping tool that is close to complete; only error/edge-case behavior and interaction with other debugger features are absent.

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?

Schema description coverage is 0%, so the description must compensate, and it does the most important thing: it enumerates the literal mode values "frame" and "instruction" with their meaning, which the schema does not (no enums declared). It also clarifies that count is measured in frames or instructions depending on mode. Units are thus resolved, though edge-case values for count are not addressed.

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 opens with a specific verb and resource ("Advance emulation by count steps") and immediately disambiguates the two operating modes, frame vs instruction. An agent can tell exactly what the tool does and what granularity it offers without opening the schema.

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

Usage Guidelines4/5

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

It gives clear selection guidance between modes: frame is fast and default, instruction is slower but precise via hook-based stepping. That is genuine when-to-use-for-what guidance. It stops short of saying when not to use this tool or naming alternatives such as run-until or disassembly tools for inspection-only needs.

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