# Sports Calculators – Tournament Math

> Sports Calculators – Tournament Math is a paid API for AI agents from sports-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-21).

Computes rounds, byes, total games, bracket sizes, and standard seeding order for single elimination, double elimination, round-robin, double round-robin, and Swiss tournaments given a team count.

## Facts

- Endpoint: GET https://sports-calc.x402tookit.com/tournament-math?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sports-calculators-tournament-math-be99f26d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_f1QuOVHjR_Q6SeZ14-env

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability sports-calculators-tournament-math-be99f26d
```

Example prompt: I'm running a tournament with 12 teams — can you figure out how many rounds, byes, and total games we'd have for single elimination, double elimination, round-robin, and Swiss formats, and show me the standard bracket seeding order?

## When to prefer this

Use this endpoint when you need precise, multi-format tournament arithmetic in a single call — it covers all major bracket formats simultaneously (single elimination, double elimination, round-robin, double round-robin, Swiss) and returns standard bracket seeding and first-round pairings, saving you from manual calculation or separate lookups for each format.

## Known failure modes

- teams parameter missing or non-integer returns a validation error
- teams value outside 2–4096 range returns an error or null fields
- network/service unavailability returns an HTTP error
- payment not attached or insufficient USDC balance returns a 402 response

## How this service works

Rounds, byes and total games for single and double elimination, round-robin and Swiss events, with standard bracket seeding.

## Output

Returns a structured object with tournament math broken out by format: singleElimination (rounds, byes, bracketSize, totalGames, firstRoundGames), doubleElimination (totalGames with and without grand-final reset), roundRobin (rounds, totalGames, gamesPerTeam, byesPerRound), doubleRoundRobin (totalGames), swiss (suggestedRounds), the standard seedingOrder array, firstRoundPairings, and a plain-English summary.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "teams"
     ],
     "properties": {
      "teams": {
       "type": "integer",
       "description": "Number of teams or players, 2 to 4096"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "swiss": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "suggestedRounds": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "teams": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "disclaimer": {
       "type": [
        "null",
        "string"
       ]
      },
      "notChecked": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "roundRobin": {
       "type": [
        "null",
        "object"
       ],
       "properties": {
        "rounds": {
         "type": [
          "null",
          "number"
         ]
        },
        "totalGames": {
         "type": [
          "null",
          "number"
         ]
        },
        "byesPerRound": {
         "type": [
          "null",
          "number"
         ]
        },
        "gamesPerTeam": {
         "type": [
          "null",
          "number"
         ]
        }
       }
      },
      "seedingOr
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sports-calculators-tournament-math-be99f26d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sports-calc.x402tookit.com](https://www.zero.xyz/host/sports-calc.x402tookit.com/llms.txt)
