Skip to main content
Glama

Peace in Space Game

Wait for your turn

wait_for_turn
Idempotent

Wait until it's your turn, then return the board (as get_state). Your first call starts the player's game and gives you your empire; if they haven't opened it yet, it waits for them to, answering {"your_turn": false, "game_open": false} when its hold runs out: call it again. Holds up to 50 seconds; if your turn hasn't started by then it returns {"your_turn": false} with how long the player has been on their turn and usually takes: call it again right away (no need to pause, and don't end your reply to wait for the player: their turn ends when this returns). While the player's game tab is hidden (it pauses the game) it waits the same way, with tab_hidden: true, and returns once they're back. It's safe to call repeatedly and can run as a long-running or background call. The player would rather not have a commentary on your turn. Your turn's board starts with your_plan: the plan you kept with set_plan, the turn you wrote it, turns_ago and since_written, the systems and ships you've lost or gained since (null if none). With brief: true, your turn's board comes as short lines of text instead of JSON (far fewer tokens).

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": {
      "code": "<code>"
    },
    "name": "wait_for_turn"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe game's code (like K7M-3XQ), from the player's message. If it names none, get one from new_game rather than asking them.
briefNoAnswer with your board as short lines of text instead of JSON: your pools, hand, systems, every ship with its HP, AP and what it can hit or threatens, and the log. Far fewer tokens.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations flag readOnlyHint=false and idempotentHint=true, and the description explains why: the first call starts the player's game and provisions the empire, which is the non-read-only side effect. It further discloses the 50-second hold, the exact returned shapes ({"your_turn": false, "game_open": false}) for both the not-opened and timeout cases, and the tab_hidden pause behavior — all behavior the annotations cannot convey.

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?

Purpose and return shapes are front-loaded and most sentences carry real operating instructions (retry policy, hold duration, background-call safety). It is dense and partly run-on with heavy colon/semicolon chaining, and the brief:true explanation in the final sentence nearly duplicates the schema text, but nothing is padding of the trivial kind.

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?

There is no output schema, and the description compensates by describing the actual return values, including the your_plan block with set_plan metadata, turns_ago, since_written, and lost/gained systems and ships. For a blocking wait tool with a side effect on first call, an agent has everything needed to call it, interpret results, and decide when to retry.

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 100%, so both the code and brief parameters are already fully documented in the input schema. The description adds only marginal semantics beyond that — that brief applies to 'your turn's board' and yields far fewer tokens — which largely restates the schema's brief description. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

States a specific verb and resource ('Wait until it's your turn, then return the board') and explicitly frames the result as equivalent to get_state, so the agent can distinguish blocking-wait from a plain board read without inspecting the schema. The opening sentence alone tells an agent exactly what calling it accomplishes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit when-to-call and how-to-retry guidance: call again if the hold runs out, call again right away after a your_turn:false return, no need to pause, and don't end the reply waiting on the player. It also states this is safe to call repeatedly and suitable as a long-running or background call, with a concrete 50-second bound an agent can plan around.

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