Skip to main content
Glama
ESPN Fantasy Football MCP Server

ESPN Fantasy Football MCP Server

by KBThree13

authenticate

Stores ESPN_S2 and SWID cookie values for the current session so the MCP server can access private ESPN Fantasy Football leagues.

Instructions

Store ESPN authentication credentials for this session.

    Args:
        espn_s2: The ESPN_S2 cookie value from your ESPN account
        swid: The SWID cookie value from your ESPN account
    

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": {
      "espn_s2": "<espn_s2>",
      "swid": "<swid>"
    },
    "name": "authenticate"
  }
}

Input Schema

NameRequiredDescriptionDefault
swidYes
espn_s2Yes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3/5.0
Behavior2/5

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

With no annotations, the description carries the full burden. It does disclose that credentials are session-scoped, but omits whether the values are validated against ESPN, what error surfaces on invalid cookies, and whether this can be re-called to replace existing credentials.

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?

Front-loaded with the one-sentence purpose, followed by a compact per-parameter list. No filler sentences, though the Args block is somewhat boilerplate in form.

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

Completeness2/5

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

For an authentication gate that other tools presumably depend on, the definition never states that dependency, nor any failure mode or return behavior. With no annotations and no output schema, the description should do more to explain the authentication contract.

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

Parameters4/5

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

Schema description coverage is 0%, so the schema offers only bare titles ('Swid', 'Espn S2'). The Args section compensates by telling the agent these are the ESPN_S2 and SWID cookie values from the user's ESPN account, which is the critical semantic detail needed to source them.

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

Purpose4/5

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

The first line names a specific verb and resource ('Store ESPN authentication credentials') and scopes it ('for this session'), which is clearly distinct from the sibling 'logout'. It stops short of explicitly differentiating itself from the data-retrieval siblings, but the purpose is unambiguous.

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

Usage Guidelines2/5

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

There is no guidance on when this must be called — nothing says it is a prerequisite before get_league_info, get_team_roster, or the other siblings, nor what happens if it is skipped. The only usage signal is the implicit 'you need credentials to authenticate', which the agent must infer.

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