Skip to main content
Glama

gb_get_interrupt_status

Reads Game Boy IE and IF registers and decodes individual interrupt flags (vblank, stat, timer, serial, joypad) into structured JSON, returning an error when no ROM is loaded.

Instructions

Read IE (0xFFFF) and IF (0xFF0F) registers and interpret interrupt flags.

Delegates to domain/interrupts for flag parsing. Returns structured JSON with individual flag states (vblank, stat, timer, serial, joypad). 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_interrupt_status"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/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 disclosure burden. It does add real value by naming the output fields, the error condition (no ROM loaded), and the internal delegation path. However, it does not explicitly characterize the operation as read-only and side-effect-free, nor does it say whether flag interpretation accounts for the IME/master-enable state.

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?

Four short sentences, front-loaded with the register addresses and mask values that matter most. The 'Delegates to domain/interrupts for flag parsing' line is internal implementation detail that adds little for an agent choosing or invoking the tool, but it is a single clause and not damaging.

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 supplies the addresses read, the returned JSON structure with enumerated flag names, and the failure mode. That covers what an agent needs to call it and interpret the result. It could go further by noting whether the returned flags reflect masked-and-enabled state or raw bits.

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, so the baseline is 4. The description correctly spends no words on parameter semantics and instead describes what is returned, which is the relevant contract here.

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 states a specific verb-plus-resource: read the IE (0xFFFF) and IF (0xFF0F) registers and interpret interrupt flags, with the concrete flag names (vblank, stat, timer, serial, joypad). This is clearly distinguishable from siblings like gb_get_lcd_status or gb_get_timer_state. It stops short of explicitly contrasting itself with those siblings, so a 4 rather than 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 read: an agent can infer this is the tool for checking pending/armed interrupts. There is no explicit when-to-use, when-not-to-use, or named alternative (e.g. use gb_get_registers for raw register dumps). Guidance is adequate but requires inference.

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