Skip to main content
Glama

Run FPLai analysis

run_fplai_analysis

Run a fresh analysis for the account’s linked FPL team only after the user explicitly approves. It consumes analysis quota and saves a result when the upstream save phase completes; the response reports persistenceStatus. If the outcome is uncertain, check the latest saved analysis before an authorized retry. Reuse the same UUID analysisRequestId to avoid another quota charge, but the upstream may recompute and save another result, so this operation is not fully idempotent.

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": {
      "analysisRequestId": "<analysisRequestId>"
    },
    "name": "run_fplai_analysis"
  }
}

Input Schema

NameRequiredDescriptionDefault
horizonNoNumber of gameweeks to plan, from 1 to 6.
analysisRequestIdYesUUID to reuse for an authorized retry; retries are not fully idempotent.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false and destructiveHint=false; the description usefully adds that quota is consumed, that a result is persisted when the upstream save phase completes, and that persistenceStatus is reported back. The idempotency caveat is valuable nuance beyond the flag. However, the description still leaves open what a failed or partial run leaves behind and what an approval-less call does, so with annotations already covering the safety profile this lands at a solid but not exceptional level.

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?

The precondition is front-loaded and every sentence carries operational content: approval gate, quota cost, persistence, recovery path, idempotency nuance. It is dense but not padded, with the only mild redundancy being the closing restatement of non-idempotency that the annotations already flag.

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

Completeness5/5

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

With no output schema, the description correctly discloses the return signal (persistenceStatus), and it covers the quota cost, approval requirement, retry/recovery procedure and idempotency limit for a side-effecting call. Nothing an agent needs in order to invoke this safely is missing.

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 coverage is 100%, so both parameters are already documented, and the description adds only retry-oriented meaning for analysisRequestId (reuse avoids another quota charge but may still recompute and save). Horizon is never mentioned in the description, so the baseline 3 is appropriate when the schema does the heavy lifting.

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 ('Run a fresh analysis') plus the exact scope ('for the account's linked FPL team'), which cleanly separates it from the read-side siblings get_fplai_analysis and get_latest_fplai_analysis. An agent can tell this is the compute-and-save operation without opening any schema.

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

Usage Guidelines5/5

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

Gives an explicit precondition ('only after the user explicitly approves') and an explicit recovery path ('If the outcome is uncertain, check the latest saved analysis before an authorized retry'), which routes the agent to the sibling read tools. It also names the retry condition for reusing the UUID, leaving nothing to inference.

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