Skip to main content
Glama

turnale

Create tournament

create_tournament

Create a new tournament. Keep setup SHORT: ask the organiser only for sport, players, court count and start time — sensible defaults cover everything else. FORMAT: never ask an open 'which format?' question. If the organiser clearly named one, pass it; otherwise omit format — the call then returns a ready-to-show menu of options (nothing is created) for you to relay so the organiser can read and choose in one reply. Players can be added later with add_players. NEVER invent placeholder or fake player names ('Player 1', made-up names): if the organiser only knows the headcount, create with signup_open: true and signup_cap set to it — players add themselves by name via the page link. If the organiser gives a time budget instead of rounds (e.g. 'we have 2 hours'), derive rounds ≈ total minutes ÷ (match + break minutes) and confirm. If they ask for a format that is not listed, offer to note it with record_feedback. Returns the organiser key (tk_…): relay it with the warning that it cannot be recovered, plus the shareable page link.

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": {
      "sport": "<sport>"
    },
    "name": "create_tournament"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoDefaults to '<Sport> tournament 14 Aug 2026 (<location>)' — start date (or today) plus the location when known
pairsNoDoubles: fixed pairs as [name, name] arrays. Omit to auto-pair.
sportYesWrite sport names to the organiser in words — 'table tennis', never the enum spelling 'table_tennis'.
courtsNoDefault 2
formatNoTournament format. round_robin: everyone plays everyone. groups_playoff: round-robin groups then a knockout. single_elimination: knockout with byes. americano/mexicano: rotating-partner doubles, points per round (mexicano pairs each round from standings). OMIT when the organiser hasn't clearly chosen — the call then returns a menu of explained options to show them instead of creating anything.
roundsNoAmericano/mexicano; default from player count
playersNo
seedingNoDefault random
languageNoLanguage of the tournament page, PDFs and player emails (ISO 639-1). Default en; set it to the language the organiser is writing in when it is in this list.
locationNoVenue/location shown to players on the page, e.g. club name + city
disciplineNoAsk the organiser — never infer it from the sport. Americano/mexicano are always doubles. Defaults to singles for the bracket formats when they truly have no preference.
request_idNoOptional idempotency id — retrying the call with the same id returns the same tournament and key instead of creating a second one. It doubles as the secret that guards that replay, so it must be at least 16 characters of your own random choosing (a UUID is ideal); short or predictable ids are refused before anything is created.
signup_capNoSignup limit; beyond it players join a waitlist
start_timeNoISO datetime with offset, e.g. 2026-08-01T18:00:00+03:00. Must be within 365 days from today.
court_namesNo
group_countNo
house_rulesNoOrganiser's house rules, shown on the tournament page (e.g. 'Golden point at deuce')
level_scaleNoHow to read the numbers in `level`. absolute (default): one shared scale, a 3 is a 3 whoever holds it. by_group: men and women were each rated within their own group, so the numbers are not directly comparable — ask the organiser which they did rather than guessing. ignore: the numbers are notes, never used for the draw.
signup_openNoOpen self-signup: players add themselves on the shared page (name-only or signed in). Offer this when the organiser has no player list yet.
level_offsetNoby_group only: how much stronger an m is than an f carrying the SAME number, in the organiser's own level units. Default 1 — a starting point to adjust, not a fact. Used for balancing only; never shown on the page or in standings.
break_minutesNoChangeover between matches/rounds, shown separately from play time (default 0)
level_gap_capNoOpt-in: the largest level gap the organiser wants between opponents, in their own level units. Soft — the draw prefers to respect it and reports when it cannot. Pass 0 to clear.
gender_balanceNoAmericano/mexicano: prefer matches where both teams have the same make-up (MM v MM, MW v MW, WW v WW). Default prefer_symmetric. A preference, not a rule — an uneven field cannot supply it, and the draw says so rather than distorting the rotation.
points_per_matchNoAmericano/mexicano; default 21
advance_per_groupNo
third_place_matchNoSingle elimination; default true
page_results_entryNoAllow anyone with the page link to enter scores courtside. Default TRUE — recreational tournaments run on whoever finishes their match first, and an organiser who has to type every result is the bottleneck. Pass false if the organiser wants to be the only one recording scores; switchable either way at any time via update_settings or the toggle on the page.
match_duration_minutesNo

Output Schema

NameRequiredDescriptionDefault
nameYes
summaryYes
page_urlYes
rounds_textNoPresent when a draw was generated — show it to the organiser as-is.
players_addedYes
draw_generatedYes
tournament_keyYes
feedback_inviteNoOptional setup feedback question, present only when the first draw is applied; answering is not required to continue.

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. Changed1 schema field changed
    • addedInput schema / properties / request_id
      Added value: +{
      +  "description": "Optional idempotency id — retrying the call with the same id returns the same tournament and key instead of creating a second one. It doubles as the secret that guards that replay, so it must be at least 16 characters of your own random choosing (a UUID is ideal); short or predictable ids are refused before anything is created.",
      +  "maxLength": 64,
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • changedInput schema / properties / language / description
      Previous value: -"Language of the tournament page, PDFs and player emails. Default en; set et when the organiser works in Estonian."New value: +"Language of the tournament page, PDFs and player emails (ISO 639-1). Default en; set it to the language the organiser is writing in when it is in this list."
    • changedInput schema / properties / language / enum
      Previous value: -[
      -  "en",
      -  "et"
      -]New value: +[
      +  "en",
      +  "bg",
      +  "hr",
      +  "cs",
      +  "da",
      +  "nl",
      +  "et",
      +  "fi",
      +  "fr",
      +  "de",
      +  "el",
      +  "hu",
      +  "it",
      +  "lv",
      +  "lt",
      +  "nb",
      +  "pl",
      +  "ro",
      +  "sk",
      +  "sl",
      +  "sv",
      +  "uk",
      +  "es",
      +  "pt",
      +  "ar",
      +  "bn",
      +  "zh",
      +  "hi",
      +  "id",
      +  "ja",
      +  "ko",
      +  "ru",
      +  "tr",
      +  "ur",
      +  "vi"
      +]
  4. 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#"
  5. Changed1 schema field changed
    • changedInput schema / properties / name / description
      Previous value: -"Defaults to '<Sport> tournament <date>'"New value: +"Defaults to '<Sport> tournament 14 Aug 2026 (<location>)' — start date (or today) plus the location when known"
  6. Changed1 schema field changed
    • changedInput schema / properties / page_results_entry / description
      Previous value: -"Allow anyone with the page link to enter scores courtside. Default false; switchable any time via update_settings or the toggle on the page."New value: +"Allow anyone with the page link to enter scores courtside. Default TRUE — recreational tournaments run on whoever finishes their match first, and an organiser who has to type every result is the bottleneck. Pass false if the organiser wants to be the only one recording scores; switchable either way at any time via update_settings or the toggle on the page."
  7. Changed2 schema fields changed
    • removedInput schema / properties / house_rules / items / minLength
      Removed value: -1
    • removedInput schema / properties / players / items / properties / name / minLength
      Removed value: -1
  8. Changed5 schema fields changed
    • addedInput schema / properties / gender_balance
      Added value: +{
      +  "description": "Americano/mexicano: prefer matches where both teams have the same make-up (MM v MM, MW v MW, WW v WW). Default prefer_symmetric. A preference, not a rule — an uneven field cannot supply it, and the draw says so rather than distorting the rotation.",
      +  "enum": [
      +    "prefer_symmetric",
      +    "off"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / level_gap_cap
      Added value: +{
      +  "description": "Opt-in: the largest level gap the organiser wants between opponents, in their own level units. Soft — the draw prefers to respect it and reports when it cannot. Pass 0 to clear.",
      +  "maximum": 1000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / level_offset
      Added value: +{
      +  "description": "by_group only: how much stronger an m is than an f carrying the SAME number, in the organiser's own level units. Default 1 — a starting point to adjust, not a fact. Used for balancing only; never shown on the page or in standings.",
      +  "maximum": 1000,
      +  "minimum": 0,
      +  "type": "number"
      +}
    • addedInput schema / properties / level_scale
      Added value: +{
      +  "description": "How to read the numbers in `level`. absolute (default): one shared scale, a 3 is a 3 whoever holds it. by_group: men and women were each rated within their own group, so the numbers are not directly comparable — ask the organiser which they did rather than guessing. ignore: the numbers are notes, never used for the draw.",
      +  "enum": [
      +    "absolute",
      +    "by_group",
      +    "ignore"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / sport / description
      Added value: +"Write sport names to the organiser in words — 'table tennis', never the enum spelling 'table_tennis'."
  9. Changed1 schema field changed
    • changedInput schema / properties / discipline / description
      Previous value: -"Default singles; americano/mexicano are always doubles"New value: +"Ask the organiser — never infer it from the sport. Americano/mexicano are always doubles. Defaults to singles for the bracket formats when they truly have no preference."
  10. Changed1 schema field changed
    • addedInput schema / properties / location
      Added value: +{
      +  "description": "Venue/location shown to players on the page, e.g. club name + city",
      +  "maxLength": 160,
      +  "type": "string"
      +}
  11. Changed2 schema fields changed
    • addedInput schema / properties / players / items / properties / level / maximum
      Added value: +10000
    • addedInput schema / properties / players / items / properties / level / minimum
      Added value: +-10000
  12. Changed1 schema field changed
    • addedOutput schema / properties / rounds_text
      Added value: +{
      +  "description": "Present when a draw was generated — show it to the organiser as-is.",
      +  "type": "string"
      +}
  13. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare this is a non-read-only, non-destructive, closed-world write. The description goes much further: omitting format returns a menu and creates nothing, the organiser key (tk_…) is unrecoverable and must be relayed with a warning, and a shareable page link is returned. That is exactly the beyond-annotation context an agent needs before calling a mutating tool.

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-loaded with purpose and the minimal-asking principle, and nearly every sentence carries a decision rule rather than filler. It is long and heavily emphasized (caps, bold, several imperatives), with the format-omission rule partly restated, which costs a point on tightness but not on usefulness.

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 a 28-parameter creation tool with 82% schema coverage and an output schema, this covers the decision-critical path: what to collect, what to default, how to handle an unclear format, how to avoid fake players, and how to hand back the key and link. Only the lower-traffic tuning parameters are left entirely to the schema.

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 already 82%, so the baseline is 3; the description adds real meaning on top — the rounds ≈ total minutes ÷ (match + break minutes) derivation, the relationship between signup_open and signup_cap, and the rule that format omission is itself a semantic signal. It does not explain the quieter parameters (court_names, group_count, level_scale, house_rules), but those are documented in the schema.

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?

Opens with a specific verb+resource ('Create a new tournament') and immediately scopes the workflow: what to ask for (sport, players, court count, start time) and what to default. It also distinguishes itself from siblings by naming add_players for later additions and record_feedback for unlisted formats.

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?

Explicit when/when-not guidance: never ask an open 'which format?' question, omit format when unclear, use signup_open + signup_cap instead of fabricating players, derive rounds from a time budget, and route unlisted formats to record_feedback. Alternatives and exclusion conditions are all named.

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.