Skip to main content
Glama

Peace in Space Game

List your legal actions

legal_actions
Read-onlyIdempotent

Every action available on your turn, each a JSON object to pass to act unchanged (types: choose_job, play, tactic, sensor_sweep, spy, overload, feed, buy, scrap, move, attack, bombard, raze, settle, undo, next_phase, end_turn; only the current phase's). A few entries need one value added: a move lists the tiles the ship can reach (send {"type": "move", "fleet": id, "x": x, "y": y} with one of them; with tiles_as_known: true, under fog of war, they're the tiles as you know them: space you can't see counts as open, so the move may stop short); a fleet card or scrap that fits several ships lists them in fleets (send it with "fleet": one of them); a Sensor Sweep (sensor_sweep, one per Sensor Outpost ready) needs x, y: any tile. Buys carry their name and cost (get_reference has what they do); a ship's buy lists the tiles it can launch on: add x, y to pick one, or leave them out for the first free one. When a tech is missing for want of research, you.next_tier says what the next costs. An attack, bombard or raze with x, y moves the piece there first and then acts, as the ship's one turn (its AP). With fleet, only that ship's orders.

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": "legal_actions"
  }
}

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.
fleetNoOnly this ship's orders. -1 for every action.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses substantial behavior: results are phase-limited, fog-of-war makes `tiles` an approximation ('may stop short'), Sensor Sweep needs x/y anywhere, buys carry name and cost, launch tiles default to the first free one, and `fleet` narrows to one ship's orders. These are exactly the non-obvious traits an agent needs.

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 rule (pass entries unchanged to act) is front-loaded, and the long type list is compactly bracketed. The middle section is dense and runs several caveats together with semicolons and nested parentheses, costing some scannability.

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?

Even though an output schema exists, the description explains how to interpret each entry and what to add before calling act. For a dispatcher tool feeding a mutation tool, this is complete and then some.

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 input parameters are already documented and the description largely repeats the `fleet` filter behavior. The description never mentions `code`, and its detail about x/y/tiles/fleets concerns the action payloads returned, not the tool's own inputs. Baseline 3 is appropriate.

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?

Opens with a specific verb and resource: 'Every action available on your turn, each a JSON object to pass to act unchanged.' It enumerates the action types and scopes them to 'only the current phase's', which clearly separates it from act (which executes) and get_reference (which explains).

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?

It effectively tells the agent this is the discovery step: take an entry and pass it to act unchanged, adding a value only in the listed cases. It also routes specific gaps elsewhere ('get_reference has what they do') and points at new_game for a missing code. No explicit when-not-to-use statement, but the workflow is clear.

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