FPL Assistant
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| FPL_EMAIL | No | Your FPL email address, used to fill the sign-in form. Can alternatively be set as email in ~/.config/fpl-assistant/config.toml. | |
| draft_team | No | Optional fallback: your FPL Draft team name, used to find you by name. Set in ~/.config/fpl-assistant/config.toml. | |
| FPL_ENTRY_ID | No | Your FPL entry (team) id, the number in your team's URL. Can alternatively be set as entry_id in ~/.config/fpl-assistant/config.toml. | |
| draft_entry_id | No | Your FPL Draft entry id, the number in .../entry/<ID>/edit. Set in ~/.config/fpl-assistant/config.toml. | |
| draft_league_id | No | Your FPL Draft league id, the number in .../league/<ID>/standings. Set in ~/.config/fpl-assistant/config.toml. |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server gives live Fantasy Premier League data and analysis.
Data sources: the official FPL API (stats, xG/xA, prices, fixtures, scout fields), football-data.co.uk (an independent team xG/shots/form source), Fantasy Football Scout's Team News round-up (managers' pressers, per club), API-Football's structured injury list (with a key), and a page fetcher for scout articles and press conferences found with web search. (Understat xG/xA/xGI is also wired in, but best-effort.)
Fixture difficulty is OUR OWN model, not FPL's laggy 1-5 rating: an opponent is rated from points per game, recent form and xG, then nudged for venue. Use fixture_difficulty for one team, fixture_ticker to compare every team's run, and league_strength for the ratings behind them. FPL's number is still returned as fpl_difficulty so you can see where the two disagree.
Ground rules when advising on a team:
Always prefer live tool data over memory; the season changes every week.
State the gameweek and the deadline you are working to.
Show your reasoning: fixtures, form, minutes security, price, and flags.
Recommend, do not gamble: name a primary option and one or two alternatives, and say what would change your mind (injury news, price rise, rotation).
For transfers, respect the bank and any -4 hit; justify why a hit pays back.
Fetch the scout link or a press conference when a player's status is unclear.
Your live team: if you are signed in (run
fpl loginonce), the team tools read your authenticated, pre-deadline squad with your real bank, free transfers and chips, marked source: live. Call get_my_team to see it explicitly. When not signed in they fall back to your last completed gameweek, and the free transfers are then an estimate.
FPL Draft is a SEPARATE game with its own, public API (unique ownership, trades, waivers, no prices, no captain). Use the draft_* tools for a draft team: draft_status (league, standings, waiver order, deadline), draft_my_squad and draft_lineup (your XV and best XI), draft_waivers (free-agent claims and who to drop) and draft_trades (position-legal swaps, each with the partner's own projected delta so you can be honest about who wins). Draft trades preserve positions - a MID only for a MID - because a squad is fixed at 2 GK / 5 DEF / 5 MID / 3 FWD, so a swap is zero-sum on raw value; the realistic ones target a rival who is deep where you are short. Configure your draft team with FPL_DRAFT_LEAGUE_ID and FPL_DRAFT_ENTRY_ID (or draft_league_id / draft_entry_id / draft_team in config.toml).
Set the FPL_ENTRY_ID environment variable (or entry_id in config.toml) so tools default to your team.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| statusA | Report configuration and the current/next gameweek, plus the next deadline. |
| auth_statusA | Whether you are signed in to FPL, and when the access token expires. Never reveals the token itself. If |
| loginA | Sign in to FPL for you, by driving a real browser window. FPL's login sits behind a bot check that rejects a hidden browser, so this opens Chromium in your desktop session and drives the real sign-in: if your FPL password is already in the Keychain it is filled and submitted for you, otherwise you type it in the window (and clear any check FPL asks for). The refresh token it captures is stored in the Keychain, which is what the authenticated tools read - so the team tools go live afterwards. This never writes to your FPL account; it only signs in. Normally takes 15-30 seconds (longer if FPL asks for a check). If it reports
|
| logoutA | Sign out of FPL: drop the stored tokens (and, if asked, the password). Until you sign in again the team tools fall back to public data (your last
completed gameweek). |
| list_playersC | List players with live stats, filtered and sorted. position: GKP/DEF/MID/FWD. team: full or short name (e.g. Arsenal or ARS). sort: any stat field, e.g. total_points, form, ict_index, xgi, xgi90, selected_by_percent, ep_next, now_cost via 'price'. available_only drops injured/suspended players. |
| get_playerB | Full detail for one player by id or name, including recent gameweek history. |
| fixture_difficultyB | Next N fixtures for a team with OUR difficulty rating (not FPL's FDR). We rate an opponent from results (points per game), recent form and xG, then
nudge for venue. |
| league_strengthA | Our team ratings: table position, form, attack, defence and overall strength. Built from results, recent form and xG - independent of FPL's own ratings.
|
| fixture_tickerB | Every team's average fixture difficulty over the next N games, easiest first.
|
| get_entryB | Your manager summary: team name, overall rank, total points, bank and value. With an FPL login ( |
| get_my_teamA | Your live, authenticated team - visible before a deadline. The public API cannot show your squad until a gameweek has kicked off, so on
deadline day this is the only way to see the 15 you have actually saved, plus
your real bank, free transfers, chips, captain and vice. It needs an FPL
login (run |
| get_squadB | Your current 15, with each player's live stats and captain/vice flags. Uses the authenticated live team when you are signed in (and no explicit gameweek is given), so a deadline-day transfer shows up immediately. |
| analyze_my_squadC | The headline view of your team: best XI, formation, flags, fixtures, notes. |
| optimize_lineupC | Best valid starting XI, bench order, captain and vice for the next gameweek. |
| suggest_transfersB | One-for-one transfer suggestions within budget, ranked by projected gain. Fetches your squad and bank automatically; override bank to model a scenario. |
| league_tableB | Mini-league standings for a classic league id (defaults to your configured league). |
| scout_reportB | Scout-oriented view for players by id or name: risk flags, news and scout link. Follow the returned scout_news_link with fetch_page for the full report. |
| fetch_pageB | Fetch a web page and return cleaned readable text (for scout reports/pressers). |
| football_data_tableC | Independent team table from football-data.co.uk: points, goals, xG, shots, form. |
| team_formC | Season-to-date league form for a team: points, goals, xG for/against, last-5. |
| understat_playersC | Understat per-player xG/xA/xGI (a second source alongside the FPL API). |
| understat_teamsC | Understat per-team xG for/against and xG difference (attacking/defensive strength). |
| team_newsA | Latest club team news: managers' press conferences, injuries and doubts. Reads Fantasy Football Scout's rolling Team News round-up and returns one
block per club ( |
| api_football_injuriesA | Structured injury list (player, type, reason) from API-Football. Needs a free API-Football key ( |
| draft_statusB | Your draft league at a glance: format, standings, waiver order and deadline. FPL Draft is a separate game: unique ownership, no prices, no captain, and position-preserving trades. Configure it with FPL_DRAFT_LEAGUE_ID and FPL_DRAFT_ENTRY_ID (or draft_* in config.toml). |
| draft_my_squadC | Your draft XV with each player's projection, plus your best XI and bench. |
| draft_lineupC | Your best draft XI and bench order for the next gameweek (no captain). |
| draft_free_agentsC | The best available free agents (unowned players) in your draft league. Ranked by the same projection as the rest of the toolkit, so a low-minutes
player only surfaces if expected points say so. Raise |
| draft_waiversB | Waiver / free-agency calls: who to claim and who to drop to stay legal. Each pick is a same-position swap (Draft keeps 2/5/5/3), ranked by the gain to your best XI. Your waiver priority is included - a lower pick number claims first. |
| draft_tradesB | Realistic, position-legal trade proposals, plus any live offers involving you. Draft trades preserve positions (a MID for a MID) - the squad is fixed at 2/5/5/3, so a swap is zero-sum on raw projection. The winnable ones target a rival who is DEEP where you are short, so the player you take is spare for them; 'their_xi_gain' is the partner's own projected delta (>= 0 is honest). |
| draft_rostersC | Every manager's draft squad (who owns whom) - context for a trade. |
| gameweek_digestA | One-call gameweek digest for each of your teams (classic FPL and Draft). Composes the essentials for the next deadline into a single payload: the XI
and its projection, flagged players, and the top action - transfer ideas for
the classic team, waiver claims and trade ideas for the draft team.
|
| gameweek_digest_markdownA | The gameweek digest as a readable Markdown document. The same content as |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 33 tools
Most tools target clearly distinct resources (players, fixtures, draft, transfers, external stats). A few pairs overlap: status vs auth_status, get_my_team vs get_squad, and gameweek_digest vs gameweek_digest_markdown (same content, different format). Descriptions mostly disambiguate these, but an agent could still hesitate between get_my_team and get_squad.
The draft tools use a clean draft_* prefix and many tools follow verb_noun (get_player, list_players, suggest_transfers), but a large set are noun-only or noun_phrase (status, team_form, league_table, fixture_ticker, understat_players, football_data_table, scout_report). Mixed conventions remain readable but aren't predictable.
33 tools is heavy for the scope, spanning auth, classic team, draft, transfers, fixtures, players, leagues and multiple external data sources. Several tools (status/auth_status, get_my_team/get_squad/analyze_my_squad, the two digest variants) could be consolidated.
Coverage is broad: auth, classic squad analysis, lineup optimization, transfers, draft waivers/trades, fixtures, players, leagues, and multiple independent stats sources. It's a read-only analysis toolkit, so the absence of write/transfer-execution tools is by design; minor gaps like direct player comparison are workable via get_player.