Get Best Classic Private Leagues
getBestClassicPrivateLeaguesRetrieve 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
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "getBestClassicPrivateLeagues"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/fpl.ts:85-88 (handler)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) } ] }; });