get_trivia
Retrieve curated trivia and historical facts for any FIFA World Cup year, categorized by record-setting moments, oddities, and context.
Instructions
Curated factual nuggets about a tournament — record-setting moments, oddities, historical context. Each entry is a single fact with category. Use this when the user wants "interesting facts about 1958" or "tell me something I don't know about Italia 90". Far less hallucination-prone than free-recall about old tournaments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No |
Implementation Reference
- src/index.ts:296-298 (schema)Zod schema for get_trivia — accepts an optional year (integer 1930-2030). No required params.
schema: z.object({ year: z.number().int().min(1930).max(2030).optional().describe('Tournament year (optional — omit for all)'), }).strict(), - src/index.ts:299-302 (handler)Handler function for get_trivia. Calls /trivia endpoint, optionally filtered by year query param.
handler: async (args: { year?: number }) => { const path = args.year ? `/trivia?year=${args.year}` : '/trivia'; return api(path); }, - src/index.ts:289-303 (registration)Tool definition entry in the tools array, registering get_trivia with its name, description, schema, and handler.
{ name: 'get_trivia', description: 'Curated factual nuggets about a tournament — record-setting moments, oddities, ' + 'historical context. Each entry is a single fact with category. Use this when the ' + 'user wants "interesting facts about 1958" or "tell me something I don\'t know about ' + 'Italia 90". Far less hallucination-prone than free-recall about old tournaments.', schema: z.object({ year: z.number().int().min(1930).max(2030).optional().describe('Tournament year (optional — omit for all)'), }).strict(), handler: async (args: { year?: number }) => { const path = args.year ? `/trivia?year=${args.year}` : '/trivia'; return api(path); }, },