Skip to main content
Glama

Panenka: Fantasy Premier League (soccer)

Best lineup for a gameweek

best_lineup
Read-onlyIdempotent

Pick the best starting lineup from the user's squad for a gameweek by projected points, within the league's formation rules (FPL: 1 GK, 3-5 DEF, 2-5 MID, 1-3 FWD), with the bench in order. Flags blanks, doubles and injured players.

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": "best_lineup"
  }
}

Input Schema

NameRequiredDescriptionDefault
teamNoWith league.fpl_draft_league_id: a team in that league, by its name or FPL entry id.
squadNoEvery player in the user's squad (or give team with an FPL Draft league id).
leagueNoThe user's league. Leave it out for an official FPL Draft league (FPL scoring and positions, 10 teams, 11 starters + 4 bench). Set only what differs.
gameweekNoWhich gameweek (default the next one).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), so the description's job is to add operational detail, and it does: bench ordering is returned, and blanks, doubles and injured players are flagged. It does not describe how the projections are produced or how ties/formations are resolved, which is the remaining gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence that puts the core action first, then the formation constraint, then the side outputs. Dense but every clause carries information; it could be split for readability but nothing is redundant.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a read-only tool with a rich nested schema and no output schema, the description covers the objective, the constraint source, and the notable return elements (bench order, blank/double/injury flags). What is missing is a clearer statement of the returned lineup shape beyond flags, but that is a modest gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% and the nested league object documents its own defaults, enums and scoring details, so the schema does the heavy lifting. The description only reinforces the formation-rule constraint (FPL 1/3-5/2-5/1-3) and the 'leave it out for a default FPL Draft league' behavior implicitly; it adds little new parameter meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource (pick the best starting lineup) plus the optimization basis (projected points) and the formation constraint. An agent can distinguish this from rank_players, compare_players or analyze_trade without opening any schema, since this is the only tool that assembles an ordered starting XI from the user's squad.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Usage is implied by 'from the user's squad for a gameweek', which tells the agent the prerequisite is a known squad and a gameweek. However, there is no explicit when-to-use/when-not statement and no named alternative (e.g. use rank_players to evaluate rather than select), so the agent must infer routing.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources