Skip to main content
Glama

gb_press_button

Press or release a Game Boy button with validated button and action input, leaving frame advancement and timing under caller control.

Instructions

Press or release a Game Boy button.

    Validates the button name and action via domain functions. Does NOT
    automatically advance a frame — the caller controls timing.

    Valid buttons: a, b, start, select, up, down, left, right.
    Valid actions: press, release.
    

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": {
      "button": "<button>"
    },
    "name": "gb_press_button"
  }
}

Input Schema

NameRequiredDescriptionDefault
actionNopress
buttonYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/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, and it does disclose two real behaviors: input validation occurs via domain functions, and no frame is advanced automatically. However, it omits important traits for an emulator-mutating tool: whether the pressed state persists until an explicit release, whether invalid buttons raise errors or are silently ignored, what is returned, and whether a ROM must already be loaded.

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 blocks: purpose, timing caveat, and valid value enumeration, with the core action stated first. Nothing is padded or restated, and the line-broken valid-values list is scannable.

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 two-parameter, annotation-free tool with no output schema, the description covers purpose, value domains, and the frame-timing caveat. It still leaves the agent guessing about press-state persistence, error handling on invalid input, and what the call returns, which matters for a state-mutating emulator control.

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 supply value semantics — and it does, enumerating all nine valid buttons (a, b, start, select, up, down, left, right) and both actions (press, release). The only gap is that omitting 'action' defaults to 'press' per the schema, a default the description never mentions.

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 opening sentence gives a specific verb pair and resource ('Press or release a Game Boy button'), leaving no ambiguity about what the tool does. No sibling tool in the listed set performs input injection, so the function is trivially distinguishable from gb_step, gb_set_register, or the gb_get_* readers.

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?

The description clearly states the key usage constraint: it does NOT advance a frame, so the caller controls timing — which implies the agent must call something like gb_step afterward for the press to take effect. It does not explicitly name gb_step as the follow-up call or state prerequisites (e.g., a ROM must be loaded), so no explicit alternatives/exclusions are given.

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