get_sports
Retrieve upcoming sports events including football, cricket, and golf for any location, providing stadium details, tournament names, and start times.
Instructions
Get upcoming sports events (football/soccer, cricket, golf) for a location, with stadium, country, tournament name, and start time.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | Yes | Location query — city name, lat/lon, zip, postcode, or IATA. |
Implementation Reference
- src/index.ts:342-346 (handler)The handler for 'get_sports' calls weatherRequest with '/sports.json' and the provided location query.
case "get_sports": { const { q } = args as { q: string }; result = await weatherRequest("/sports.json", { q }); break; } - src/index.ts:255-269 (schema)The definition and input schema for the 'get_sports' tool.
{ name: "get_sports", description: "Get upcoming sports events (football/soccer, cricket, golf) for a location, with stadium, country, tournament name, and start time.", inputSchema: { type: "object", properties: { q: { type: "string", description: "Location query — city name, lat/lon, zip, postcode, or IATA.", }, }, required: ["q"], }, },