yahoo_team_stats
Retrieve a Yahoo fantasy team's aggregated stats for a season, week, date, or other window. Provide a team key and choose an aggregation type to get stats and total points.
Instructions
A team's aggregated stats for a season or a week.
Returns: {fantasy_content:{team:[[{team_key}, …], {team_stats:{coverage_type, season, stats:[{stat:{stat_id, value}}]}}, {team_points:{total}}]}} — SHAPE FROM VENDOR DOCS. stat_id resolves via yahoo_game_stat_categories.
NOTE: this shape is from the vendor's documentation and has NOT been verified against a live response (we hold no key for this provider). Treat it as approximate — inspect the actual payload before relying on a field name.
Example: Season totals {"teamKey": "449.l.12345.t.3", "type": "season"}
Auth: needs your own key in YAHOO_CLIENT_ID or YAHOO_CLIENT_SECRET or YAHOO_REFRESH_TOKEN.
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": {
"teamKey": "<teamKey>"
},
"name": "yahoo_team_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Aggregation window. One of: season, week, date, lastweek, lastmonth. | season |
| format | No | Leave as json. | json |
| teamKey | Yes | Team key. Required — part of the URL path. |