Skip to main content
Glama

getTeamData

Retrieve comprehensive team statistics and information from the Fantasy Premier League API to analyze performance and make data-driven decisions.

Instructions

Fetch all team data

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:201-215 (registration)
    Registration of the MCP tool 'getTeamData' with empty input schema and inline handler function that calls the getTeamData helper and returns the result as JSON text content.
    server.registerTool("getTeamData", { title: "Get Team Data", description: "Fetch all team data", inputSchema: {} }, async () => { const data = await getTeamData(); return { content: [ { type: "text", text: JSON.stringify(data) } ] }; });
  • Inline handler function that executes the tool logic: fetches team data using helper and formats it for MCP response.
    }, async () => { const data = await getTeamData(); return { content: [ { type: "text", text: JSON.stringify(data) } ] }; });
  • Helper function that retrieves the bootstrap-static API data and extracts the 'teams' portion.
    export async function getTeamData(): Promise<Partial<FplApiObject>> { const data = await getBootstrapStatic(); return { teams: data.teams, }; }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/owen-lacey/fpl-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server