getFixtures
Fetch all Premier League fixtures for Fantasy Premier League planning and analysis.
Instructions
Fetch all FPL fixtures
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/fpl.ts:125-128 (handler)Core handler function that fetches all FPL fixtures from the official API endpoint.export async function getFixtures(): Promise<any> { const res = await fetch('https://fantasy.premierleague.com/api/fixtures/'); return res.json(); }
- src/server.ts:250-264 (registration)MCP tool registration for 'getFixtures', including empty input schema, title, description, and wrapper handler that calls the core getFixtures function and formats response as text content.server.registerTool("getFixtures", { title: "Get Fixtures", description: "Fetch all FPL fixtures", inputSchema: {} }, async () => { const data = await getFixtures(); return { content: [ { type: "text", text: JSON.stringify(data) } ] }; });
- src/server.ts:253-253 (schema)Input schema for the getFixtures tool, which takes no parameters.inputSchema: {}