Skip to main content
Glama

Peace in Space Game

Keep your plan

set_plan
Idempotent

Keep your plan for this game on the server, where it outlasts your context: each turn's first board (wait_for_turn, get_state) starts with it as your_plan, with the turn you wrote it; later boards that turn just say it's unchanged. Send the whole plan each time: it replaces the last one. Keep to what the board can't tell you: your intent, lessons and triggers. Don't copy the board into it (ship ids, HP, positions): it comes every turn, and a copy is stale within a turn or two. Short and concrete works best, about 10 lines, for example: WIN PATH: how you actually win: whose homeworld falls, how and roughly when. NEXT 3 TURNS (to turn N): what you'll settle, build, research and move. BY TURN N+5 / N+10: where your empire and fleets should be. ENEMY: how they play and where their pushes come from (not a list of their ships). LESSONS: what this game has taught you (what one ship can do to a colony, which ship beats which). DON'T: the mistakes this plan guards against (chasing kills deep into their side, feeding ships in one at a time). REVISE IF: the triggers that mean the plan no longer holds (losing a system, losing 2+ warships, enemy ships within 4 tiles of a colony). Write one on your first turn. Then at the start of each turn, check its REVISE IF triggers against the board and your_plan.since_written (the systems and ships you've lost or gained since you wrote it): rewrite it when one has fired, a step is done or the board changes your mind, and leave it be when it still holds (turns_ago says how long it has stood). The player and their game don't see it. Changes nothing in the game.

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

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.
planYesYour whole plan, as text (up to 3000 characters). It replaces the one kept before; an empty string drops it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well beyond the annotations: it explains where the plan surfaces (first board of each turn as your_plan, later boards say unchanged), that each send fully replaces the prior plan, that the player never sees it, and that it has no effect on game state — which reconciles with readOnlyHint=false since the write is server-side storage only. Visibility, persistence, and replacement semantics are all disclosed.

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?

Front-loaded with the core statement and organized into a scannable template, so most sentences earn their place. There is some redundancy — the replace-on-each-send behavior is stated in the description and again in the schema, and the don't-copy-the-board warning is effectively repeated in the since_written advice.

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 two-parameter write tool with no output schema, everything an agent needs is present: lifecycle, revision triggers, content guidance, and the fact that the call has no gameplay effect. Nothing about correct invocation is left unstated.

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?

Schema coverage is 100%, so both parameters are already documented, but the description adds real meaning: what belongs in the plan (intent, lessons, triggers), what must not be copied (ship ids, HP, positions), and a concrete ~10-line template. The only gap is that the schema's 3000-character cap and empty-string deletion are left to the schema alone.

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: keep the plan on the server, where it outlasts your context. It immediately frames what the tool is (persistent note storage) versus the read/action siblings (get_state, act, wait_for_turn) by stating it changes nothing in the game.

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 (write one on your first turn), when-to-rewrite (a REVISE IF trigger fired, a step is done, the board changes your mind), and when-not-to (leave it be when it still holds). It even names the signal to check for staleness (your_plan.since_written, turns_ago), leaving nothing to inference.

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