Skip to main content
Glama

Peace in Space Game

Take an action

act

Do one action on your turn, given as one of the objects from legal_actions. Returns ok, error (why not, if it failed), log (what happened), turn and game_over, and hand_changed when cards left or joined your hand other than by being played. The player sees each move on their map, so it needs no explaining. {"type": "next_phase"} ends the fleet phase (locking ship orders and fleet cards) or the deploy phase (locking card plays); {"type": "end_turn"} (from the buy phase) hands the turn to the player: then call wait_for_turn at once (don't end your reply: the game only comes back to you through wait_for_turn).

To send a ship somewhere it can't reach this turn, use {"type": "move", "fleet": id, "x": x, "y": y, "toward": true}: it goes as far along the way as it can (around the black hole and systems), as its move for the turn. Add "keep": 1 to stop next to a system (to settle or raze it next turn), or "keep": 2 for a Carrier to strike from.

A ship's move can be split over several move orders in a turn (its move_tiles_left says what's left); entering a rival's zone of control ends it.

Under fog of war (The Divide) a move is also walked tile by tile. It stops short, keeping the rest of its move, when a gap, system or ship you hadn't seen is in its way, or a rival ship comes into sight within its attack range; entering a rival's zone of control ends its move. The log line says where it ended up, why it stopped, and the tiles of its move left; look again (get_state or legal_actions) before the next order. An attack, bombard or raze with x, y that stops short on the way makes no attack: its error says where the ship stopped and why.

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

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.
actionYesOne action object from legal_actions, unchanged (a move with x, y set to one of its tiles).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only say this is a non-read-only, non-idempotent, non-open-world mutation; the description goes far beyond by naming the return fields (ok, error, log, turn, game_over, hand_changed), explaining that error carries the reason for failure, and detailing fog-of-war short-stopping, split moves via move_tiles_left, and how a stopped attack makes no attack. These are exactly the behaviors an agent must know before issuing an order.

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?

The core contract is front-loaded in the first two sentences and each subsequent paragraph covers a distinct concern (phase-ending actions, multi-turn moves, fog of war). It is dense and the middle paragraphs are long, but almost every sentence carries operative information rather than filler.

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 game-mutating tool with no output schema, the description covers what is returned, what each failure means, how partial moves resume, and how fog of war can truncate an order. Nothing an agent needs in order to act correctly appears to be missing.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the action parameter is a free-form object and the description supplies the concrete shapes: {"type": "next_phase"}, {"type": "end_turn"}, and the move form with fleet/x/y/toward plus keep=1 or keep=2 with their distinct meanings. That is real semantic content the schema cannot convey.

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 scope: 'Do one action on your turn, given as one of the objects from legal_actions.' It clearly separates this state-mutating executor from the sibling that only lists choices (legal_actions), so an agent can pick between them without inspecting schemas.

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-use guidance for each action type: next_phase ends the fleet or deploy phase, end_turn hands the turn over from the buy phase, and the agent is told to 'call wait_for_turn at once' afterward. Exclusions and sequencing are spelled out, including the warning not to end the reply because play only returns via wait_for_turn.

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