Skip to main content
Glama

turnale

Generate draw

generate_draw
Destructive

Generate (or regenerate) the draw and schedule. This IS the start action: the first draw moves the tournament from setup to active and closes self-signup — when the organiser says "start the tournament", call this. The result includes rounds_text — SHOW it to the organiser as-is, in whatever language they are writing to you in (it is English already, so relay it unchanged unless they are writing something else) so they can check who plays whom — and the seed that produced the draw: preview first, then confirm with that SAME seed to apply exactly the previewed draw. Free until the first result is recorded; after that this DISCARDS recorded results and requires BOTH confirm: true and discard_results: true. If the organiser asks for a format that is not supported, offer to note it with record_feedback. Optional overrides adjust the format first.

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": {
      "tournament_key": "<tournament_key>"
    },
    "name": "generate_draw"
  }
}

Input Schema

NameRequiredDescriptionDefault
seedNoDraw seed returned by the preview — pass it back with confirm: true to apply exactly the previewed draw. Omit for a fresh draw.
roundsNo
confirmNoOmit or false: return a preview of what would change. True: apply it.
seedingNo
request_idNoOptional idempotency id — retrying a call with the same id never applies it twice
group_countNo
tournament_keyYesThe tournament's organiser key (starts with tk_)
discard_resultsNoRequired (true) when results already exist — separate acknowledgement that this redraw destroys them
points_per_matchNo
advance_per_groupNo
third_place_matchNo

Output Schema

NameRequiredDescriptionDefault
seedYes
matchesYes
previewNoTrue when this is a preview — nothing was changed
summaryYesWhat happened, in one line
rounds_textYes
feedback_inviteNoOptional setup feedback question, present only when the first draw is applied; answering is not required to continue.
discarded_resultsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedOutput schema / properties / feedback_invite
      Added value: +{
      +  "description": "Optional setup feedback question, present only when the first draw is applied; answering is not required to continue.",
      +  "type": "string"
      +}
  2. 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#"
  3. Changed2 schema fields changed
    • changedInput schema / properties / seed / maximum
      Previous value: -9007199254740991New value: +2147483647
    • changedInput schema / properties / seed / minimum
      Previous value: --9007199254740991New value: +0
  4. Changed4 schema fields changed
    • addedInput schema / properties / seed
      Added value: +{
      +  "description": "Draw seed returned by the preview — pass it back with confirm: true to apply exactly the previewed draw. Omit for a fresh draw.",
      +  "maximum": 9007199254740991,
      +  "minimum": -9007199254740991,
      +  "type": "integer"
      +}
    • addedOutput schema / properties / rounds_text
      Added value: +{
      +  "type": "string"
      +}
    • addedOutput schema / properties / seed
      Added value: +{
      +  "type": "number"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "matches",
      -  "discarded_results",
      -  "summary"
      -]New value: +[
      +  "matches",
      +  "discarded_results",
      +  "rounds_text",
      +  "seed",
      +  "summary"
      +]
  5. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Goes well beyond the annotations by disclosing effects the agent could not otherwise know: self-signup closes, the tournament moves from setup to active, redrawing after results DISCARDS them, and both confirm and discard_results are required. It also specifies the seed round-trip that guarantees an identical applied draw. The only omission is detail on how the optional format overrides interact with each other.

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?

Front-loads the core action and its lifecycle significance, then layers the operational rules, so the highest-value sentence comes first. It is dense but every clause carries real information; the parenthetical about relaying rounds_text in the organiser's language is wordy and slightly garbled, and could be one short sentence.

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?

For an 11-parameter destructive tool, the definition covers the whole decision path an agent needs: trigger, preview, seed fidelity, the destructive branch, and the feedback fallback. With an output schema present it correctly does not enumerate return fields, though it does flag rounds_text because the agent must relay it. The undocumented format-override parameters are the remaining gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is low (45%), so the description must compensate, and it does for the risky parameters: seed is explained as the preview token to replay, confirm as preview-vs-apply, discard_results as the separate acknowledgement of data loss. It leaves the six format-override parameters (rounds, seeding, group_count, points_per_match, advance_per_group, third_place_match) covered only by the vague catch-all "Optional overrides adjust the format first", which does not explain their units or mutual constraints such as advance_per_group versus group_count.

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 and resource ("Generate (or regenerate) the draw and schedule") and immediately frames it as the lifecycle start action, which distinguishes it from reschedule, set_pairs, and suggest_format among the siblings. An agent can tell exactly what this does without opening the 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 explicit trigger phrasing ("when the organiser says 'start the tournament', call this"), a two-step preview-then-confirm protocol, the precondition for the destructive path (results already exist), and an alternative route (record_feedback) for unsupported formats. When-to-use, when-to-be-careful, and where-to-redirect are all covered.

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.