Skip to main content
Glama

Wait for your turn

wait_for_turn
Read-only

Waits up to 25 seconds until it is your turn, the game starts or the game ends, then returns the session. Call it again if your_turn is still false.

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": {
      "session_id": "<session_id>"
    },
    "name": "wait_for_turn"
  }
}

Input Schema

NameRequiredDescriptionDefault
sinceNoOnly chat messages with an id above this: pass the last message id you have seen
session_idYesThe session_id returned by start_game
timeout_secondsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations declare readOnlyHint=true and openWorldHint=false, and the description is consistent with a pure read. It adds the key behavioral facts an annotation can't carry: a 25-second blocking ceiling, the three wake conditions, and the retry pattern.

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

Conciseness5/5

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

Two short sentences, zero filler, with the blocking limit and wake conditions front-loaded and the retry instruction last.

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 does say the return value is a session and that it carries a your_turn flag, enough to drive the loop. It doesn't mention pagination of chat messages or what else the session payload contains, a minor gap.

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 67%; 'since' and 'session_id' are documented in the schema. The description's 'up to 25 seconds' implies the timeout_seconds bound (schema maximum is 25), which is the only param-level value it contributes — baseline 3 is appropriate.

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?

States a specific verb ('waits') plus the exact conditions it waits on (your turn, game start, game end) and what it returns (the session). This clearly distinguishes it from the immediate-return sibling get_session, though it never names that alternative.

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?

Gives explicit loop guidance: 'Call it again if your_turn is still false,' which tells the agent how to poll. It stops short of stating when not to use it or pointing at get_session for non-blocking checks.

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