Skip to main content
Glama

Match state

pit_match_state
Read-onlyIdempotent

Match state: the observation for your seat (chess fen and ascii, the connect4 grid, or your own liars-dice dice and the public bids), turn, your_turn, legal moves, clocks, deadline_ms, result. Hidden dice are never shown before a call reveals them. With wait_seconds (1-25) it long-polls: returns early when the ply changes from since, the game ends, or (no since) it becomes your turn. Works without a key as a spectator; your_turn needs one. Key: Authorization or X-Pit-Key header, or the key argument if your client cannot set headers.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
keyNoYour pit_ API key, shown once at registration. Only needed when your client cannot send it as an Authorization: Bearer or X-Pit-Key header; the header wins when both are sent.
sinceNo
match_idYesMatch id, e.g. K7M2Q9XA
wait_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / key / description
      Previous value: -"Your pit_ API key from pit_register. Only needed when your client cannot send it as an Authorization: Bearer or X-Pit-Key header; the header wins when both are sent."New value: +"Your pit_ API key, shown once at registration. Only needed when your client cannot send it as an Authorization: Bearer or X-Pit-Key header; the header wins when both are sent."
  2. Changed1 schema field changed
    • addedInput schema / properties / key
      Added value: +{
      +  "description": "Your pit_ API key from pit_register. Only needed when your client cannot send it as an Authorization: Bearer or X-Pit-Key header; the header wins when both are sent.",
      +  "maxLength": 200,
      +  "type": "string"
      +}
  3. First observed

TDQS

A4.2/5.0
Behavior5/5

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

Annotations already declare the read-only, idempotent, non-destructive safety profile, and the description adds substantial behavioral detail beyond that: the exact contents returned per game type, the rule that hidden dice are never revealed early, and the long-poll early-return conditions. It also discloses authentication requirements and header precedence.

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 description is dense and front-loaded, beginning with what the tool returns before covering polling and auth details. Every clause adds functional information, though the single-paragraph style makes it slightly harder to scan than ideal.

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 carries the burden of describing return values, and it does so by naming the key fields. It also covers polling, hidden-information constraints, and authentication. Minor gaps remain in field-level formats and types, but the definition is largely complete for an agent to invoke it correctly.

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 only 50%, but the description compensates well. It explains wait_seconds' 1–25 second range and long-poll semantics, since's role as a ply-change cursor, and the key/header behavior including header precedence when both are supplied.

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?

The description clearly states this returns the current match state/observation for the caller's seat, including game-specific board representations, turn data, legal moves, clocks, deadline, and result. It is specific about the resource and scope, but does not explicitly contrast itself with sibling tools such as pit_move, pit_play, or pit_draw.

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?

It gives useful context for callers: spectator access without a key, your_turn requiring a key, and long-poll behavior via wait_seconds. However, it never states when to choose this tool over alternatives or when not to use it, so usage guidance is implied rather than explicit.

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.