Skip to main content
Glama
dmang-dev

mcp-retroarch

retroarch_state_slot_plus

Increment the current save state slot, enabling sequential saving or loading of game states.

Instructions

Increment the currently-selected save state slot. Combine with retroarch_save_state_current / retroarch_load_state_current to target a specific slot for SAVE.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The actual handler that sends the 'STATE_SLOT_PLUS' command to RetroArch via UDP fire-and-forget. This is the low-level execution of the tool.
    async stateSlotPlus():   Promise<void> { await this.send("STATE_SLOT_PLUS"); }
    async stateSlotMinus():  Promise<void> { await this.send("STATE_SLOT_MINUS"); }
  • src/tools.ts:156-160 (registration)
    Tool registration with name, description, and empty input schema (no parameters needed). Listed in the TOOLS array used for ListToolsRequestSchema.
    {
      name: "retroarch_state_slot_plus",
      description: "Increment the currently-selected save state slot. Combine with retroarch_save_state_current / retroarch_load_state_current to target a specific slot for SAVE.",
      inputSchema: { type: "object", properties: {} },
    },
  • Input schema definition — no parameters required (empty object), no properties expected.
    {
      name: "retroarch_state_slot_plus",
      description: "Increment the currently-selected save state slot. Combine with retroarch_save_state_current / retroarch_load_state_current to target a specific slot for SAVE.",
      inputSchema: { type: "object", properties: {} },
    },
  • src/tools.ts:239-240 (registration)
    The handler dispatch in the CallToolRequestSchema switch/case, routing tool name to the RetroArchClient method and returning a success message.
    case "retroarch_state_slot_plus":     await ra.stateSlotPlus();             return ok("Incremented current slot");
    case "retroarch_state_slot_minus":    await ra.stateSlotMinus();            return ok("Decremented current slot");
  • Comment documenting the save-state API including STATE_SLOT_PLUS, explaining the design constraint that specific-slot saving requires moving the slot pointer first.
    // ── Save state ─────────────────────────────────────────────────────────
    // RetroArch's NCI exposes:
    //   * SAVE_STATE         — save to currently-selected slot (no reply)
    //   * LOAD_STATE         — load from currently-selected slot (no reply)
    //   * LOAD_STATE_SLOT N  — load from explicit slot (echoes command)
    //   * STATE_SLOT_PLUS / STATE_SLOT_MINUS — change current slot
    // There's NO "save_state_slot N" or "get_current_slot" — saving to a
    // specific slot requires walking the slot pointer to it first.
Behavior2/5

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

No annotations are provided, so the description carries the full burden. It does not disclose potential side effects like slot wrapping, bounds, or whether incrementing triggers any saving. More transparency would be beneficial.

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?

Two sentences with no wasted words. The most important action is front-loaded, and the combination tip is helpful.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a tool with no parameters and no output schema, the description is complete. It explains the action and how to use it in context with sibling tools.

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?

There are no parameters, and the schema coverage is 100%. The description adds no parameter information, but none is needed. Baseline for zero parameters is 4.

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 description clearly states the tool increments the currently-selected save state slot, using a specific verb and resource. It distinguishes itself from the sibling retroarch_state_slot_minus which does the opposite.

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?

Provides explicit guidance on combining with retroarch_save_state_current and retroarch_load_state_current to target a specific slot. It lacks explicit 'when not to use' but is clear enough given the sibling tools.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dmang-dev/mcp-retroarch'

If you have feedback or need assistance with the MCP directory API, please join our Discord server