Skip to main content
Glama

The Cap Gap

Compare two contracts

compare_players
Read-onlyIdempotent

Compare two NHL or PWHL players' contracts side by side: team, position, age, cap hit, modeled value, the value gap and term. Use for 'X vs Y', 'who has the better contract', 'compare X and Y'. Both players must be in the same league.

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": {
      "league": "<league>",
      "player_a": "<player_a>",
      "player_b": "<player_b>"
    },
    "name": "compare_players"
  }
}

Input Schema

NameRequiredDescriptionDefault
leagueYesnhl or pwhl. The PWHL is the Professional Women's Hockey League.
player_aYesFirst player's name
player_bYesSecond player's name

Output Schema

NameRequiredDescriptionDefault
kindYes
tableYes
leagueYes
sourceYesThe Cap Gap (thecapgap.com)
sourcesYes
verdictsYes
pay_labelYes
season_noteYes
value_windowYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety and determinism are covered. The description adds real constraint context: the same-league requirement, which is a behavioral restriction not visible in annotations or the schema's per-field enum. It does not discuss failure behavior when a name is ambiguous, but with an output schema present the return shape needn't be explained.

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?

Three compact sentences: purpose and compared fields first, then user phrasing, then the constraint. Every sentence carries information and nothing is repeated from the schema verbatim.

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 three-parameter read-only comparison tool with a full output schema, the description covers what is compared, when it applies, and the one precondition that could cause a wrong call. Nothing an agent needs in order to invoke it correctly 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 the league enum, the PWHL expansion, and both player-name parameters are already documented in structured data. The description reinforces the league constraint ('both players must be in the same league') but adds no naming format, disambiguation, or ID-vs-name guidance. 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?

Names a specific verb (compare) with a specific resource (two players' contracts) and enumerates the exact fields compared: team, position, age, cap hit, modeled value, value gap, term. Its sibling get_player_contract_value handles one player, so the difference is legible without opening schemas.

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?

Provides explicit trigger phrases ('X vs Y', 'who has the better contract', 'compare X and Y') that map user intent directly to this tool. It also states a hard precondition — both players must be in the same league — which routes multi-league comparisons away from this tool.

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