Skip to main content
Glama

turnale

Swap partners

swap_partners

Exchange two players' places. Fixed-pair doubles: swaps partners between two pairs permanently (name one player from each pair). Americano/mexicano: pass round to swap two players' places in ONE unplayed round — the courtside patch for a late arrival, an injury, or two friends who want a game together. One of them may be sitting that round, which is how you put a late arrival on court. Preview first, confirm to apply: the preview names any partnership or meeting the swap would repeat. Results already played never move.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
roundNoAmericano/mexicano only: which round to patch. Omit to swap the next unplayed round.
confirmNoOmit or false: return a preview of what would change. True: apply it.
player_aYes
player_bYes
request_idNoOptional idempotency id — retrying a call with the same id never applies it twice
tournament_keyYesThe tournament's organiser key (starts with tk_)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
pairsNo
roundNo
previewNoTrue when this is a preview — nothing was changed
summaryYesWhat happened, in one line
repeats_meetingNo
repeats_partnershipNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • removedInput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
    • removedOutput schema / $schema
      Removed value: -"http://json-schema.org/draft-07/schema#"
  2. Changed5 schema fields changed
    • addedInput schema / properties / round
      Added value: +{
      +  "description": "Americano/mexicano only: which round to patch. Omit to swap the next unplayed round.",
      +  "maximum": 9007199254740991,
      +  "minimum": 1,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / repeats_meeting
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / repeats_partnership
      Added value: +{
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • addedOutput schema / properties / round
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "pairs",
      -  "summary"
      -]New value: +[
      +  "summary"
      +]
  3. First observed

TDQS

A5/5.0
Behavior5/5

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

The description discloses that fixed-pair swaps are permanent, that Americano/mexicano swaps occur in exactly one unplayed round, and that the preview names any repeated partnership/meeting. This goes far beyond the annotations (readOnlyHint=false, destructiveHint=false), giving the agent a clear picture of the tool's behavior and side effects.

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?

Despite covering multiple formats and workflow details, the description stays tight and well-structured with colons and semicolons. Every sentence carries essential information with no redundancy or filler.

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?

It covers both tournament formats, the preview/confirm mechanism, edge cases like a sitting player, and the immutability of played results. Given the output schema exists, it appropriately omits return-value details, yet still gives the agent a complete mental model of when and how to invoke the tool.

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?

It adds meaning to 'round' (only for Americano/mexicano, omit for next unplayed round) and 'confirm' (preview vs apply), which are not fully explained in the schema. It also implicitly clarifies that player_a and player_b represent one player from each pair in fixed-pair mode. With 67% schema coverage, this fills the gap effectively.

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 opens with 'Exchange two players' places' and immediately distinguishes between fixed-pair doubles (swaps partners permanently) and Americano/mexicano (swaps places in one unplayed round). This specific verb+resource+scope clearly differentiates it from sibling tools like replace_player or set_pairs.

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?

It explicitly frames the tool as the 'courtside patch for a late arrival, an injury, or two friends who want a game together,' and clarifies both format-specific usage and the constraint that 'Results already played never move.' It also instructs to 'Preview first, confirm to apply' for a safe 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.