Skip to main content
Glama
mcp-fleaflicker

mcp-fleaflicker

by pete-builds

Get League Rules

get_league_rules
Read-onlyIdempotent

Retrieve a league's roster construction and complete scoring rules, including the exact stat keys needed to score stat lines. Use before applying any scoring logic.

Instructions

Get a league's roster construction and its complete scoring rules.

Read this before scoring anything: it returns the exact stat keys score_stat_line accepts. The two tools pair up, this one says what the league scores, that one applies it.

Returns JSON with data.roster (starters, bench, max_active, max_roster_size, and positions[] carrying each slot's label, eligibility, starts, roster_min, roster_max) and data.scoring (rule_count, stat_keys[], and rules[] with category, category_id, group, points, kind, multi_value, applies_to, description).

kind explains how a rule fires: linear is points per unit, total_threshold is a one-time bonus when a single game's total clears a bound (300 passing yards), total_range is a one-time bonus inside a closed range (a shutout), and per_event is a bonus per qualifying event (each touchdown of 40+ yards).

Idempotent: yes, read-only.

Example: get_league_rules(league_id=14153)

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

Input Schema

NameRequiredDescriptionDefault
league_idNoFleaflicker league id. Defaults to FLEAFLICKER_LEAGUE_ID.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so "Idempotent: yes, read-only" earns no credit. What does add value beyond structured data is the semantics of the `kind` values (linear, total_threshold, total_range, per_event) with concrete examples, which no annotation could convey. Minor gap: no note on failure behavior for an unknown or inaccessible league id.

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 purpose and the pairing rule, then structured into return shape and `kind` semantics. The enumerated return fields are long and partly redundant with the output schema, and "Idempotent: yes, read-only" restates the annotations.

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?

An output schema exists, so the field-by-field return listing is largely duplicative; the genuinely irreplaceable part is the `kind` enum explanation, which the schema cannot carry. For a single-param read tool this is comfortably complete, with only error/empty-league behavior left unstated.

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?

Only one parameter and schema coverage is 100%, so the schema already documents league_id and the FLEAFLICKER_LEAGUE_ID fallback. The description adds a concrete call example (league_id=14153) but no extra meaning about the identifier itself; baseline 3 applies.

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?

Specific verb+resource ("Get a league's roster construction and its complete scoring rules") and it explicitly differentiates from the sibling: "this one says what the league scores, that one applies it" relative to score_stat_line. An agent can pick between the two without opening either 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 directive and ordering: "Read this before scoring anything: it returns the exact stat keys score_stat_line accepts." It names the alternative and the condition that selects it, so the routing decision is fully determined.

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