Skip to main content
Glama

gb_load_state

Restores a saved Game Boy emulator state by state ID, returning restored register values and a NOT_FOUND error if the ID does not exist.

Instructions

Restore a previously saved emulator state.

    Returns registers as they are after restoration. Returns
    {"error": "NOT_FOUND", ...} if the state_id does not exist.
    

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": {
      "state_id": "<state_id>"
    },
    "name": "gb_load_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
state_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/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 useful work: it discloses the return shape (registers after restoration) and a concrete failure mode ({"error": "NOT_FOUND"} for a bad state_id). It omits key behavior such as whether loading consumes or overwrites the saved state, 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.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three short sentences with the purpose front-loaded and no filler. The odd indentation from the multi-line string is cosmetic only.

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?

There is no output schema and no annotations, so the description is the only source of contract information. It covers the happy-path return and one error, but for a state-mutating restore operation it should also say where state ids come from and what happens to the saved state after loading.

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

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% and the single parameter is an untyped integer 'State Id' in the schema. The description only reinforces that state_id refers to a previously saved state and that an invalid one yields NOT_FOUND; it never explains how such an id is obtained or any format constraints.

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: 'Restore a previously saved emulator state,' which an agent can immediately distinguish from the sibling gb_save_state. It does not name any sibling explicitly, 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 phrase 'previously saved' implies a prior gb_save_state call is the precondition, but the description never states that, nor does it point to gb_list_states as the way to obtain a valid id. Usage is inferable rather than stated.

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