Skip to main content
Glama

Peace in Space Game

See the board

get_state
Read-onlyIdempotent

What your empire can see right now: turn, your_turn, your empire (phase, pools, hand with each fleet/tactic card's rules text, techs), your ships' AP, the enemy, every planet and fleet on the map, the board's size, and the log of what you saw happen since your last turn ended. Fields that would be empty, false or 0 are left out. The black hole's tiles (no piece enters them) come with the game's first board only: board=true sends them again (The Divide's gaps, which grow as you chart the board, come every time). Tiles are (x, y) hexes, odd rows shifted half a tile right. Rival details are hidden outside your systems' and fleets' view: a rival ship's type is "unknown" until it has been in view, and a rival ship or system out of view has in_view: false. What's out of view is unknown, not absent. On The Divide (board.fog_of_war) you know only what you've seen: you start with what your homeworld and first ship see, and whatever your ships and systems see is charted for good, gaps too (board.gaps: no piece enters one); planets lists only those systems (one out of sight with in_view: false, holder_last_seen and last_seen_turn), fleets lists rival ships only while in sight, and enemy.homeworld is -1 until you've found it. Both halves hold the same systems: board.your_half says how many colony and outpost sites yours has and how many you've found, so while some are still unfound, a ship sent over your own half finds you room to expand. Your ships there carry move_tiles_left of move_tiles: a turn's move can be spent over several moves. crates lists the supply crates you know of (x, y, resource, amount): a ship that moves onto or through one takes it, +2 of that resource to your pool. Distances are counted for you: each rival ship has nearest_mine (your closest ship or system, in tiles) and, if armed, threatens_fleets / threatens_planets (what of yours it could reach and hit next turn, as the crow flies); each armed ship of yours has in_range_fleets / in_range_planets (what it can hit from where it stands). On Derelict Shipyard, fleets with neutral: true are guards that belong to nobody (guards: the system they hold, which shows guarded: true): they strike any ship that ends its owner's turn near that system, and it can't be settled until they're destroyed. A "notice" says when the player started a new game or their game reloaded its save (and which of your actions that undid). Works on the player's turn too. brief: true answers with the same board as short lines of text: pools, hand, systems, every ship with its HP, AP and what it can hit or threatens, and the log.

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

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.
boardNoInclude the board's size and black hole tiles (sent with the first board only).
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

A3.6/5.0
Behavior4/5

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

Annotations already cover safety (readOnly, idempotent, non-destructive), but the description adds substantial context: what is hidden under fog of war, that out-of-view means "unknown, not absent," that board tiles are sent only once unless board=true, and that brief returns far fewer tokens. This is meaningful behavioral disclosure beyond the structured fields; the remaining gap is that it never mentions result size or timing/latency for large boards.

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 definition is an undifferentiated wall of prose covering fog of war, crates, distance counters, Derelict guards, and notices, with no headings or grouping. Much of the mechanical rules detail (guards strike ships, crates give +2, coordinate conventions) is game-reference material rather than needed to invoke this tool, so the size is not proportionate.

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?

With no output schema, the description must explain the return shape, and it does so thoroughly, including conditional fields and fog-of-war variants. It is nearly complete for a complex state tool; only result size or pacing guidance is absent.

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 the baseline is met, and the description genuinely extends meaning: board=true is explained as re-sending black-hole tiles that otherwise appear only on the first fetch (with the caveat that The Divide's gaps always come), and brief is tied to "far fewer tokens." That goes beyond the terse schema text for both optional parameters.

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?

"What your empire can see right now" states a clear read operation, and the following list enumerates exactly what the snapshot contains (turn, pools, hand, ships' AP, map pieces, log). It stands apart from siblings like act, legal_actions, or wait_for_turn by being purely observational, though it never names those alternatives to make the contrast explicit.

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

Usage Guidelines3/5

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

Usage is only implied: "Works on the player's turn too" and the notice-handling paragraph hint at when to re-poll, but there is no explicit statement of when to call this versus legal_actions (to see options) or wait_for_turn (to block). An agent must infer the polling workflow.

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