Skip to main content
Glama
jolfr

fantasy-mcp

by jolfr

Save Settings

save_settings

Save ESPN credentials and league ID, then verify them against ESPN to confirm setup and return league, team, and season details.

Instructions

Save ESPN credentials and league id, then verify them against ESPN.

Normally called by the setup card's Save & test button; you may call it directly if the user pasted values into the chat. Returns {"ok": true, "league_name", "team_name", "season"} on success, or {"ok": false, "error": "..."} with a message to relay. Values are stored in a per-user config file that takes precedence over the extension's settings form. Values are written to the config file before the ESPN check, so on an ok: false cookie error they are already saved (tell the user to re-copy espn_s2/SWID); on a validation error nothing is written.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
swidNo
espn_s2No
league_idNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.3.1

TDQS

A4.5/5.0
Behavior5/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses side effects, return contract, config-file precedence, and ordering between writing values and the ESPN check, including the distinction between a cookie error and a validation error.

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

Conciseness5/5

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

The description is compact, front-loaded with purpose, and every sentence adds necessary usage, return, or side-effect detail. It covers invocation, success/failure responses, storage precedence, and error semantics without filler.

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?

For a tool with no annotations and low schema parameter coverage, the description is unusually complete: it includes return values, error semantics, side effects, precedence, and conditional behavior. An agent can call this tool correctly and relay the right message to the user on failure.

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 0%, so the description must compensate for missing parameter docs. It references 'ESPN credentials and league id' and the espn_s2/SWID cookies, but it does not formally map each schema parameter to its meaning, format, or default behavior. It adds useful context but not full per-parameter clarity.

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?

The description opens with a specific action: 'Save ESPN credentials and league id, then verify them against ESPN.' This clearly names the resource, the mutation, and the verification behavior. It is easy to distinguish from sibling read tools like get_league_settings and whoami.

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

Usage Guidelines4/5

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

The description explicitly states when to call it directly ('if the user pasted values into the chat') and identifies its normal invocation path via the setup card's Save & test button. It does not explicitly list alternatives to avoid, but the usage context is clear enough for an agent to route correctly.

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