Skip to main content
Glama

TabletopMCP

game_handler

Authenticated editor_id actions: editor_read, editor_write, editor_preview, editor_publish, editor_start. Xiangqi rule slot horse.leg.empty supports condition always. Interact with a game room; seat numbers are 0-based; display names start at Seat 1. Common actions are state, rules, wait, say, leave, resign, and scene. Resign only when the position is clearly lost or the user requests it. Resignation is irreversible. On your turn, next_action.options with action "next" supplies the game_handler call; state.legal_actions contains its game action payloads (the rules action lists every game action with its JSON Schema, roles and phases), and on an opponent turn call wait. Pass wait_ms with a game action to wait for the reply in the same call. Every result carries next_action, the turn-loop intent (wait, move, review or stop), and options with actual calls. Wait responses carry wait.reason (heartbeat, chat, state_change) and next_seq. A chat response returns to model decision. When another player talks to you or asks a question, you can reply using say in your usual conversational style. Say payload is { "text": string }; optional since_seq returns later chat. Prioritize replies to humans; other agent speech is limited to one message per seat every 60 seconds and is ignored on chat_quiet tables. Omitting it safely reads chat from the beginning; using the last consumed cursor avoids repeats. The next wait uses since_seq from the last response. Before the start, repeated empty waits give the decision to the user; after the game, action review returns the public record for a summary. Wait lengths: default and maximum 5000 milliseconds; longer values are truncated. Zero does not suspend. Each tool call has a short response budget; nudge only shortens the wait.

Input Schema

NameRequiredDescriptionDefault
langNo
actionNoA common action (state, rules, wait, say, leave, resign) or a game action the game declares; "move" is every game's main action. The rules action lists the game actions with their payload schemas.
includeNoOptional response extras: scene returns the current view scene; image returns a board PNG.
payloadNo
room_idNo
wait_msNoFor game actions: after the action, wait up to this long for your next turn or the end of the game and return what happened meanwhile (status still_waiting if it did not come). The server caps waiting at 5000 milliseconds; longer values are truncated. Zero returns after the completed action without waiting.
nudge_msNoReturn still_waiting early, with next_action reason opponent_slow, when the opponent has not moved by then. Without it a wait runs its full time.
editor_idNo
seat_tokenNo
agent_profileNoOptional self-declared AI platform/source (e.g. { platform: "claude" }) for compatibility telemetry.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and discloses a lot: resignation is irreversible, waits are capped at 5000 ms and truncated, zero does not suspend, agent chat is limited to one message per seat per 60 s and ignored on chat_quiet tables, and every call has a short response budget. Missing only the auth requirements behind seat_token and what editor_read returns.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness2/5

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

The description is a dense wall of text that opens on a niche secondary concern (editor_id actions plus a Xiangqi rule slot), then jumps to seating, chat, the turn loop, and wait timing with no clear ordering. Wait-length semantics are stated twice ("Wait lengths: default and maximum 5000 milliseconds" and the nudge sentence), so content is repeated rather than front-loaded.

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 10-parameter, multi-envelope tool with no annotations and no output schema, the description covers the turn loop (next_action intents, options), the wait/chat protocol, the editor write/publish flow, and timing limits. Gaps remain around how a seat_token is obtained, what state returns, and how editor_read/preview output looks.

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?

At 50% schema coverage the description compensates well: it explains wait_ms piggybacking, the since_seq cursor for chat and later waits, the say payload shape, and that omitted cursor reads chat from the beginning. It adds little for room_id/seat_token/editor_id beyond the envelope rule, and since_seq is not even a declared top-level parameter, leaving some ambiguity about where it goes.

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 names concrete actions (state, rules, wait, say, leave, resign, scene) and states the domain ("Interact with a game room") plus the editor envelope (editor_read/write/preview/publish/start). The verb-and-resource picture is clear, but nothing distinguishes this tool from the siblings game_room_create or game_search, and the opening line about editor actions muddles the primary purpose.

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?

Strong in-tool guidance: call the game action from next_action.options on your turn, call wait on an opponent turn, pass wait_ms to piggyback the wait, resign only when clearly lost or the user asks. It does not say when to prefer this over game_search or game_room_create, so it stops short of full when/when-not coverage.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources