Search Players
search_playersSearch a Fleaflicker league's player pool by name or position, optionally filtering to free agents. Page through results with offset to continue when more matching players remain.
Instructions
Search the league's player pool by name or position.
Returns JSON with data.players[], each carrying id, name,
position, pro_team, bye_week, percent_owned, owned_by
(empty string when unowned), season_total, season_average, and
rank_fantasy / rank_draft as {overall, positional} when the league
publishes them. Also data.total (pool size upstream),
data.returned, and data.next_offset (null when exhausted).
A name that matches nothing returns an empty list, not an error.
Read data.next_offset before concluding a name is not in the pool.
Name matching happens client-side over fetched pages, and a name search
scans at most 12 upstream pages (360 players) per call. So a search can
stop with fewer than limit results while matches remain further down
the pool -- most likely for a common substring, or a position with a
deep pool late in a season.
data.returned does NOT distinguish those two cases and must not be
used to decide: a short result means only "this call ended", never "the
pool is exhausted". data.next_offset is the one that separates them.
It is null only when the pool really is exhausted, and non-null whenever
there is more to read -- whether because you hit limit or because the
page cap stopped the scan. Call again with offset=data.next_offset to
continue from where this one stopped.
Idempotent: yes, read-only.
Example: search_players(name="Chase", position="WR")
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": "search_players"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Case-insensitive substring match on the full name, applied over the fetched pages. Omit to browse by position. | |
| limit | No | Maximum players to return, 1 to 300. Defaults to 30. The upstream pages at 30, so a larger limit costs one request per 30 and is fetched automatically. | |
| offset | No | Starting offset for paging. Defaults to 0. | |
| season | No | Season year. Defaults to the current season. | |
| position | No | One of QB, RB, WR, TE, D/ST, K. Omit for all positions. | |
| league_id | No | Fleaflicker league id. Defaults to FLEAFLICKER_LEAGUE_ID. | |
| free_agents_only | No | Restrict to unowned players. Defaults to False. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |