Skip to main content
Glama

getRegions

Retrieve the list of available regions for Fantasy Premier League data access and filtering.

Instructions

Fetch FPL region list

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/server.ts:152-166 (registration)
    Registration of the MCP 'getRegions' tool. Includes schema (empty inputSchema), title, description, and a thin wrapper handler that calls the getRegions helper and formats the response as MCP content.
    server.registerTool("getRegions", { title: "Get Regions", description: "Fetch FPL region list", inputSchema: {} }, async () => { const data = await getRegions(); return { content: [ { type: "text", text: JSON.stringify(data) } ] }; });
  • Core handler function implementing the getRegions tool logic by fetching the regions data from the Fantasy Premier League API and returning the parsed JSON.
    export async function getRegions(): Promise<any> { const res = await fetch('https://fantasy.premierleague.com/api/regions/'); return res.json(); }

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