Score Stat Line
score_stat_lineScore a single game's stat line using a Fleaflicker league's own published scoring rules, applying its real bonuses, thresholds, and position restrictions instead of generic PPR approximations.
Instructions
Score one game's stat line under a league's real scoring rules.
Fetches the league's published rules and applies them, so bonuses, thresholds, and position restrictions are the league's own, not a generic PPR approximation.
Score one game at a time. Every bonus in a Fleaflicker rule set fires on a single game's box score, so a season total run through this tool will miscount them: a receiver with 2,000 yards over 17 games earns the 150-yard bonus only in the games he actually cleared 150.
Call get_league_rules for the valid stat keys
(data.scoring.stat_keys). A plain number is a count or total. A
list is the per-event yardage that distance bonuses need:
{"passing_td": [45, 12]} is two passing touchdowns, one of 45 yards
and one of 12, scoring the flat rule twice and the 40-to-79 bonus once.
Passing {"passing_td": 2} scores the flat rule and reports the bonus
under unresolved_bonuses rather than silently scoring it as zero.
Returns JSON with data.total (the score), data.breakdown[] (one
entry per contributing rule, with category, group, kind, points,
rule, and detail showing the arithmetic), data.unscored_keys[]
(keys this league does not score, usually a typo), and
data.unresolved_bonuses[] (distance bonuses that needed a list).
A stat key that matches more than one scoring group fails with
INVALID_INPUT and names the alternatives, rather than guessing. In most
leagues interception is the one that collides: use
passing_interception (thrown, negative) or defense_interception
(caught, positive).
Idempotent: yes, pure computation over a read-only rule fetch.
Example: score_stat_line(stats={"passing_yard": 318, "passing_td": [45, 12], "passing_interception": 1}, position="QB")
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": {
"stats": "<stats>"
},
"name": "score_stat_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stats | Yes | Stat key to value, as an object (or a JSON object string). | |
| position | No | Roster position, for position-restricted rules such as receptions (skill positions only) or fumble recoveries (D/ST only). Defaults to "WR". | WR |
| league_id | No | Fleaflicker league id. Defaults to FLEAFLICKER_LEAGUE_ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |