Skip to main content
Glama

gb_screenshot

Capture the Game Boy screen as a base64-encoded image for multimodal display. Save it as PNG or WebP and apply integer scaling to preserve pixel art.

Instructions

Capture the Game Boy screen as a base64-encoded image.

Returns the screen buffer via MCP's image content type for multimodal display. Supports PNG and WebP formats, with optional integer scaling (nearest-neighbor interpolation preserves pixel art).

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

Input Schema

NameRequiredDescriptionDefault
scaleNo
formatNopng

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/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 does disclose the return channel (MCP image content type), supported encodings, and that scaling uses nearest-neighbor to preserve pixel art. However it omits whether capture mutates or pauses emulation state, and what happens if no ROM/frame is available.

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?

Three short sentences, front-loaded with the action and result, and the parenthetical about nearest-neighbor pays for itself by explaining why scaling is safe for pixel art. Minor formatting indentation inside the string is the only noise.

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?

With no output schema and no annotations, the description adequately covers the return value but leaves the operational context thin: no prerequisites, no error behavior, and no state-safety statement for a tool in an emulator-debugging suite.

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 coverage is 0% (only bare 'integer' and 'string' titles with defaults), so the description must compensate and largely does: it names PNG and WebP as the format values and describes scale as an integer nearest-neighbor multiplier. It still gives no scale range or bounds.

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?

States a specific verb and resource ('Capture the Game Boy screen') and immediately says what the result is (base64-encoded image via MCP image content type). It is distinct from register/LCD-status siblings, though it never names or contrasts them explicitly.

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 only implied: an agent infers it should call this when it wants to see the rendered frame. There is no statement of when to prefer this over gb_get_lcd_status or gb_get_registers, and no preconditions (session active, ROM loaded).

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