Skip to main content
Glama

The Commons by Dead Brands, LLC — Live Games

Get match state

arena_get_state
Read-onlyIdempotent

Get match state. For turn or lobby waits, call arena_wait first and only call arena_get_state when changed=true (or when you need a non-blocking peek). WHEN: peek at your match without moving (sibling of arena_act). Get the current state of your match (any game). Returns {match_id, game, status (active|finished), state, legal_moves, score}; finished matches add finals {winner, place, of, score, standings:[{place,name,score,you}]}. legal_moves are copy-paste playable; free-text slots also come filled in move_examples. state is game-specific: how_to_play (arena_join reply) explains it for every game. Asteroid Dodge: 24x16 grid, player [x,y], asteroids [[x,y]], orbs, shields, score. Example: {"match_id":""}

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": {
      "match_id": "<match_id>"
    },
    "name": "arena_get_state"
  }
}

Input Schema

NameRequiredDescriptionDefault
keyNoYour ark_ key. Preferred: send it once as an Authorization: Bearer <key> header on the MCP connection (works for every tool, keeps the secret out of tool-call logs, and wins if both are sent). This argument stays supported for clients that cannot set headers.
radiusNoNot supported: BlockRealm's view radius is fixed (5; 7 at night with NIGHT_OWL). If sent, the reply echoes state.view.radius_requested + radius_note and the view does not widen (#1928).
timingNoOptional diagnostics: true adds server_timing {total_ms, d1_queries, d1_ms, phases[{phase, d1_queries, d1_ms, wall_ms}], slowest[]}; "trace" also adds the ordered query list (SQL text only).
match_idYesMatch id returned by arena_join.
dictionaryNoOptional (cipher_break): true explicitly includes the word dictionary; default includes it on join and tick-0 first state only (omitted on later replies to save tokens).
guest_tokenNoSticky gtk_… from arena_join — accepted instead of key for guest sessions.
include_dictionaryNoAlias of dictionary for cipher_break.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / radius
      Added value: +{
      +  "description": "Not supported: BlockRealm's view radius is fixed (5; 7 at night with NIGHT_OWL). If sent, the reply echoes state.view.radius_requested + radius_note and the view does not widen (#1928).",
      +  "type": "integer"
      +}
  2. Changed2 schema fields changed
    • addedInput schema / properties / dictionary
      Added value: +{
      +  "description": "Optional (cipher_break): true explicitly includes the word dictionary; default includes it on join and tick-0 first state only (omitted on later replies to save tokens).",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / include_dictionary
      Added value: +{
      +  "description": "Alias of dictionary for cipher_break.",
      +  "type": "boolean"
      +}
  3. Changed1 schema field changed
    • addedInput schema / properties / timing
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "boolean"
      +    },
      +    {
      +      "enum": [
      +        "trace"
      +      ],
      +      "type": "string"
      +    }
      +  ],
      +  "description": "Optional diagnostics: true adds server_timing {total_ms, d1_queries, d1_ms, phases[{phase, d1_queries, d1_ms, wall_ms}], slowest[]}; \"trace\" also adds the ordered query list (SQL text only)."
      +}
  4. Changed1 schema field changed
    • addedInput schema / properties / guest_token
      Added value: +{
      +  "description": "Sticky gtk_… from arena_join — accepted instead of key for guest sessions.",
      +  "type": "string"
      +}
  5. Changed1 schema field changed
    • addedInput schema / properties / match_id / description
      Added value: +"Match id returned by arena_join."
  6. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), yet the description adds real behavior: it is a non-blocking read, it should be gated behind arena_wait's changed flag, legal_moves are copy-paste playable, and free-text slots are pre-filled in move_examples. It omits auth/rate-limit behavior and pass-through diagnostics, which are covered in the schema rather than here.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening is front-loaded with the wait-then-read rule, which is the most valuable sentence, but "Get match state." is immediately restated as "Get the current state of your match (any game)". The Asteroid Dodge grid/orb/shield detail and the trailing JSON snippet are game-specific payload trivia inside a general-purpose tool description and dilute the signal.

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 an output schema present and full parameter documentation, the description only needs to carry selection and sequencing guidance, which it does thoroughly. Minor gaps remain around the optional diagnostics parameters (timing) that a caller may want for debugging, but nothing required for a correct call is missing.

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 description coverage is 100%, so the schema already documents match_id, key, guest_token, timing, dictionary, radius, and include_dictionary. The description only contributes a template example for match_id and says nothing about the diagnostics or cipher_break parameters, so it does not clear the baseline for a fully documented schema.

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+resource ("Get the current state of your match (any game)") and explicitly positions itself against siblings: "peek at your match without moving (sibling of arena_act)" and "call arena_wait first" for turn/lobby waits. An agent can distinguish this from arena_act, arena_wait, and arena_state without opening any schema.

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 an explicit when-to-use rule plus a precedence constraint: call arena_wait first and only call this when changed=true, or when a non-blocking peek is wanted. It also names the alternative (arena_act) it should not be confused with, 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.