get_bracket
Retrieve the complete knockout bracket for any FIFA World Cup tournament. Includes all matches from Round of 16 to Final with teams and results.
Instructions
Full knockout bracket for a tournament — Round of 16 through Final, with each match's teams + result. Use this for "show me the 2014 World Cup bracket" or "trace France's 2018 path to the title".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Tournament year |
Implementation Reference
- src/index.ts:329-329 (handler)The handler for get_bracket: calls the API endpoint /bracket?year={year} with the given year argument.
handler: async (args: { year: number }) => api(`/bracket?year=${args.year}`), - src/index.ts:326-328 (schema)The Zod schema for get_bracket: validates a required 'year' parameter (integer, 1930-2030).
schema: z.object({ year: z.number().int().min(1930).max(2030).describe('Tournament year'), }).strict(), - src/index.ts:320-330 (registration)The tool registration entry in the 'tools' array, defining name 'get_bracket', description, schema, and handler.
{ name: 'get_bracket', description: 'Full knockout bracket for a tournament — Round of 16 through Final, with each ' + 'match\'s teams + result. Use this for "show me the 2014 World Cup bracket" or ' + '"trace France\'s 2018 path to the title".', schema: z.object({ year: z.number().int().min(1930).max(2030).describe('Tournament year'), }).strict(), handler: async (args: { year: number }) => api(`/bracket?year=${args.year}`), },