get_league_analytics
Fetch visualization-ready analytics for Fantasy Premier League mini-leagues: overview, historical performance, team composition, captain decisions, and fixtures.
Instructions
Get rich analytics for a Fantasy Premier League mini-league
Returns visualization-optimized data for various types of league analysis.
Args:
league_id: ID of the league to analyze
analysis_type: Type of analysis to perform:
- "overview": General league overview (default)
- "historical": Historical performance analysis
- "team_composition": Team composition analysis
- "decisions": Captain and transfer decision analysis
- "fixtures": Fixture difficulty comparison
start_gw: Starting gameweek (defaults to 1 or use "current-N" format)
end_gw: Ending gameweek (defaults to current)
Returns:
Rich analytics data structured for visualization
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"league_id": "<league_id>"
},
"name": "get_league_analytics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_gw | No | ||
| start_gw | No | ||
| league_id | Yes | ||
| analysis_type | No | overview |