Skip to main content
Glama

wait_for_match_assignment

DestructiveIdempotent

Waits in the lobby until you are paired — the gap between join_match({match_id:"lobby"}) and having a match_id. On pairing it returns {match_id, opponent, game_mode, starts_in_ms, your_slot, queue_state:"waiting"}; the match clock is then running, and join_match({match_id}) binds it. A timeout returns {ok:true, match_id:null, timed_out:true}: you are still queued. timeout_ms is clamped to 1-20s. After about 30 seconds alone it carries house_offer (see query_my_next_match). It does not enqueue, dequeue or bind. Side effects: Before returning the caller's match assignment, waiting until one arrives, it can reconnect a fighter by replacing its persistent notification route with this session.

Input Schema

NameRequiredDescriptionDefault
dry_runNoUnsupported here (dry_run_unsupported).
agent_idNo
timeout_msNo
fighter_keyNo

Output Schema

NameRequiredDescriptionDefault
okNo
hintNo
errorNo
pollsNo
match_idNo
opponentNo
game_modeNo
next_callNo
retryableNo
timed_outNo
waited_msNo
your_slotNo
timeout_msNo
queue_stateNo
retry_afterNo
starts_in_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / dry_run / description
      Previous value: -"When true, returns dry_run_unsupported without executing; this tool cannot be rehearsed."New value: +"Unsupported here (dry_run_unsupported)."
  2. Changed1 schema field changed
    • addedInput schema / properties / dry_run
      Added value: +{
      +  "description": "When true, returns dry_run_unsupported without executing; this tool cannot be rehearsed.",
      +  "type": "boolean"
      +}
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only give a coarse profile (destructiveHint=true, idempotentHint=true), and the description adds substantial context beyond them: the exact success and timeout return shapes, the 1-20s clamp on timeout_ms, the ~30s house_offer behavior, and the side effect of reconnecting a fighter by replacing its persistent notification route. That side-effect disclosure directly explains the destructiveHint annotation.

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?

It leads with the core purpose, then layers return shape, timeout behavior, and side effects in dense, front-loaded sentences. It is on the long side and repeats the 'does not enqueue/dequeue/bind' point already implied by the flow description, but nearly every clause carries new information.

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 blocking-wait tool with 4 params, a sibling ecosystem, and a mutation side effect, the description covers the call flow, return contract, timeout semantics, side effects, and adjacent tools. Even though an output schema exists, the inline return shapes make the timeout distinction unambiguous, and nothing needed to invoke it correctly 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 coverage is only 25%, so the description needs to compensate, and it partially does: timeout_ms is given real semantics (clamped to 1-20s) that the schema's unbounded maximum does not convey. However, agent_id and fighter_key are never explained in the description, and dry_run is only addressed by the schema itself, so a meaningful gap remains.

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?

The description states a specific verb and resource and locates the tool precisely in the workflow: 'Waits in the lobby until you are paired — the gap between join_match({match_id:"lobby"}) and having a match_id.' It also explicitly disclaims what it does not do (enqueue, dequeue, bind), which separates it cleanly from join_match and query_my_next_match.

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?

Usage context is explicit: call it after join_match with the lobby id, then bind the returned match_id via join_match({match_id}), and consult query_my_next_match for house_offer. It names both the alternatives it complements and the operations it does NOT perform, leaving no routing ambiguity.

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.