Skip to main content
Glama

gb_get_audio_state

Reads Game Boy audio registers and returns parsed channel and master control state, optionally for one channel (1–4), including wave RAM for channel 3.

Instructions

Read audio registers and return parsed state.

Optional channel param (1-4) for a single channel. Without channel, returns all channels plus master control. Channel 3 includes wave RAM (0xFF30-0xFF3F). Returns error if no ROM loaded or invalid channel.

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

Input Schema

NameRequiredDescriptionDefault
channelNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does reasonably well: it discloses the default return shape (all channels plus master control), a channel-specific extra (wave RAM 0xFF30-0xFF3F on channel 3), and two failure modes (no ROM loaded, invalid channel). It stops short of stating explicitly that the operation is side-effect free or describing the structure of 'parsed state'.

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?

Four short lines, front-loaded with the core action, then parameter behavior, then a special case, then error conditions. Every line adds information and nothing is repeated from the schema.

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 one-parameter read tool with no annotations and no output schema, the description covers selection logic, special cases, and error behavior. The remaining gap is the shape of the returned 'parsed state', which an agent must discover empirically.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 define the single parameter itself, and it does: valid range 1-4, meaning (single channel), and the behavior when omitted. The channel-3 wave-RAM special case adds meaning that the bare schema could never convey.

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 opens with a specific verb and resource ('Read audio registers and return parsed state'), which cleanly separates this tool from sibling state readers such as gb_get_lcd_status or gb_get_registers. It does not explicitly name those siblings as alternatives, so it falls just 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?

The description does explain when to pass a channel versus omitting it (all channels plus master control), which is real usage guidance. However, it never says when to choose this tool over gb_get_registers or the other get_*_state siblings, and there are no exclusions or prerequisites beyond the error conditions.

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