Skip to main content
Glama

Deck stats

deck_stats
Read-onlyIdempotent

What a deck list is, for building: every row with its card facts (type, mana cost, mana value, colour identity, section, is_commander, is_companion), the mana curve of nonland cards (last bucket 7+), cards per type, coloured mana symbols against lands per colour, opening-hand land odds (exactly 0…7 lands in seven; two_to_four_lands), land_drops (a land every turn through turns 1…6, going first and second), and format legality. All figures are over the LIBRARY: the main deck without the commander(s) and without the sideboard. Probabilities are 0…1, hypergeometric — no mulligans, tutors or card draw; say so when quoting them. Optional odds: the chance of holding at least want (default 1) of a group of cards by turn (0 = the opening seven). Name the group by cards (names in the list) or by type (Land, Creature, …); on_the_play:true skips the first draw (two-player, going first). Reads the list only: it says nothing about which copies you own — use deck_status for that.

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": {
      "deck": "<deck>"
    },
    "name": "deck_stats"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck id or name
oddsNo

Output Schema

NameRequiredDescriptionDefault
deckYes
noteYes
oddsNoPresent when odds were asked
cardsYes
statsYes
legalityYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / cards / items / properties / is_companion
      Added value: +{
      +  "description": "The deck's companion: a sideboard row, outside the library",
      +  "type": "boolean"
      +}
    • changedOutput schema / properties / cards / items / required
      Previous value: -[
      -  "want_id",
      -  "name",
      -  "section",
      -  "quantity",
      -  "is_commander",
      -  "type",
      -  "type_line",
      -  "mana_cost",
      -  "cmc",
      -  "color_identity",
      -  "scryfall_id",
      -  "scryfall_url",
      -  "image_uri"
      -]New value: +[
      +  "want_id",
      +  "name",
      +  "section",
      +  "quantity",
      +  "is_commander",
      +  "is_companion",
      +  "type",
      +  "type_line",
      +  "mana_cost",
      +  "cmc",
      +  "color_identity",
      +  "scryfall_id",
      +  "scryfall_url",
      +  "image_uri"
      +]
  2. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, so the description earns credit for the extra context it adds: figures are computed over the LIBRARY only (excluding commander(s) and sideboard), probabilities are 0–1 hypergeometric with no mulligans, tutors or card draw, and the agent is told to state those caveats when quoting numbers. That is real behavioral disclosure beyond the annotations, though it says nothing about performance or size limits on large decks.

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

Conciseness3/5

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

The single long block is information-dense and front-loads the data catalog, but it is a run-on with heavy parentheticals and an awkward opening clause. Much of the output enumeration duplicates what the output schema already provides, so the text could be tightened without losing guidance.

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?

For a read-only analytics tool with a nested `odds` parameter and an output schema, the definition covers the domain scope, probability assumptions, and parameter semantics that an agent needs. The remaining redundancy is enumerating return fields the output schema already defines, but nothing essential about calling it correctly is missing.

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 coverage is only 50%, and the description compensates by explaining the `odds` object in depth: `want` defaults to 1, `turn` 0 means the opening seven, groups are named via `cards` (names counted together) or `type`, and `on_the_play:true` skips the first draw. The required `deck` parameter is left to the schema's "Deck id or name" one-liner, which is the only notable gap.

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 description names the resource (a deck list) and enumerates the computed outputs (mana curve, type counts, coloured pips vs lands, opening-hand odds, land drops, format legality), which is enough for an agent to know this is a statistical analysis tool. It also draws the boundary against the sibling deck_status ("Reads the list only: it says nothing about which copies you own — use deck_status for that"). The opening phrase "What a deck list is, for building" is loose, but the body is specific.

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?

It explicitly routes the ownership question to deck_status and frames use around deck building/review, and it spells out when to use the `odds` block versus the fixed statistics. It does not, however, indicate when this tool should be preferred over other deck-analysis siblings such as deck_health or deck_combos, leaving that inference to the agent.

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