Skip to main content
Glama

getBestClassicPrivateLeagues

Retrieve top-performing classic private leagues in Fantasy Premier League to identify competitive groups for joining or benchmarking.

Instructions

Fetch list of best classic private leagues

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The core handler function that fetches the best classic private leagues data from the Fantasy Premier League API.
    export async function getBestClassicPrivateLeagues(): Promise<any> { const res = await fetch('https://fantasy.premierleague.com/api/stats/best-classic-private-leagues/'); return res.json(); }
  • src/server.ts:169-183 (registration)
    Registers the MCP tool 'getBestClassicPrivateLeagues' with title, description, empty input schema (no parameters), and a wrapper handler that calls the core function and formats the response as MCP content.
    server.registerTool("getBestClassicPrivateLeagues", { title: "Get Best Classic Private Leagues", description: "Fetch list of best classic private leagues", inputSchema: {} }, async () => { const data = await getBestClassicPrivateLeagues(); return { content: [ { type: "text", text: JSON.stringify(data) } ] }; });

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