get_standings
Retrieve final group standings for any World Cup year, including W/D/L, goals, and points, with FIFA tiebreaker logic applied.
Instructions
Computed group standings with FIFA tiebreakers applied. Returns the order teams finished within each group of the given year, including W/D/L, GF, GA, GD, points. Use this for "show me the 1990 Group F table" or "who finished where in 2022 Group H?".
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | Tournament year | |
| group | No |
Implementation Reference
- src/index.ts:314-318 (handler)The handler function for get_standings. Calls the API endpoint /standings with year and optional group parameters.
handler: async (args: { year: number; group?: string }) => { const params = new URLSearchParams({ year: String(args.year) }); if (args.group) params.set('group', args.group); return api(`/standings?${params.toString()}`); }, - src/index.ts:310-313 (schema)The input schema for get_standings. Validates year (required int 1930-2030) and group (optional single letter A-Z).
schema: z.object({ year: z.number().int().min(1930).max(2030).describe('Tournament year'), group: z.string().regex(/^[A-Z]$/).optional().describe('Single group letter (optional)'), }).strict(), - src/index.ts:305-319 (registration)The tool registration entry for get_standings within the 'tools' array. Contains name, description, schema, and handler.
name: 'get_standings', description: 'Computed group standings with FIFA tiebreakers applied. Returns the order teams ' + 'finished within each group of the given year, including W/D/L, GF, GA, GD, points. ' + 'Use this for "show me the 1990 Group F table" or "who finished where in 2022 Group H?".', schema: z.object({ year: z.number().int().min(1930).max(2030).describe('Tournament year'), group: z.string().regex(/^[A-Z]$/).optional().describe('Single group letter (optional)'), }).strict(), handler: async (args: { year: number; group?: string }) => { const params = new URLSearchParams({ year: String(args.year) }); if (args.group) params.set('group', args.group); return api(`/standings?${params.toString()}`); }, },