get_league_analytics
Analyze Fantasy Premier League mini-leagues by extracting detailed performance data for historical trends, team compositions, captain decisions, and fixture difficulties. Optimized for visualization and insights.
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
Input Schema
Name | Required | Description | Default |
---|---|---|---|
analysis_type | No | overview | |
end_gw | No | ||
league_id | Yes | ||
start_gw | No |
Input Schema (JSON Schema)
{
"properties": {
"analysis_type": {
"default": "overview",
"title": "Analysis Type",
"type": "string"
},
"end_gw": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "End Gw"
},
"league_id": {
"title": "League Id",
"type": "integer"
},
"start_gw": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null,
"title": "Start Gw"
}
},
"required": [
"league_id"
],
"title": "get_league_analyticsArguments",
"type": "object"
}