Skip to main content
Glama

Deck Stats

deck_stats

Computes Lorcana deck summary statistics—ink curve, color split, inkable counts, type and keyword breakdowns—to answer deck composition and archetype questions.

Instructions

Compute summary stats for a Lorcana deck: ink curve (copies at each cost), color split (copies per color — dual-ink contributes to BOTH buckets, so the sum may exceed total_cards), inkable/uninkable counts, type breakdown (Character/Action/Item/Song/Location), keyword_counts (copies per keyword — Evasive, Ward, Bodyguard, Shift, Singer, ...), subtype_counts (copies per subtype — Floodborn, Hero, Puppy, ...), and card_keywords (per-card keyword tags, so archetype questions like 'how many Evasive bodies does this run?' are answerable without a follow-up search_cards call). Each entry is {name: str, count: int} where name is the card's full_name. Names that don't resolve are listed under unresolved and excluded from the per-card stats (but still counted in total_cards).

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
deckYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the dual-ink double-counting quirk ('sum may exceed total_cards'), the unresolved-name behavior (excluded from per-card stats but still counted in total_cards), and the entry shape {name, count}. It does not discuss cost, limits, or whether the deck is mutated, but as a pure computation tool the disclosed edge cases are the meaningful behaviors.

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 purpose and the enumeration of outputs, with no filler sentences. The long parenthetical chains make it dense, and some quota detail repeats what the present output schema already conveys, but every clause carries substantive information.

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, yet the description still usefully explains entry shape and the dual-ink/unresolved edge cases, which is what an agent needs to interpret results. The remaining hole is the input side: with a 0%-documented, untyped deck parameter, an agent cannot know the exact payload without experimentation.

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 0% and the only parameter is an untyped array of objects with additionalProperties:true, so the description should compensate. It hints that the deck contains card names (via 'Names that don't resolve' and 'full_name' reference) but never specifies the actual input element shape or required fields, leaving the caller to guess for the sole required parameter.

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?

States a specific verb and resource ('Compute summary stats for a Lorcana deck') and then enumerates the exact stat families produced (ink curve, color split, inkable/uninkable, type breakdown, keyword_counts, subtype_counts, card_keywords). It also differentiates itself from the sibling search_cards by noting archetype questions are answerable 'without a follow-up search_cards call'.

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?

Clear usage context: it is the tool for aggregate/archetype questions about a specific deck, avoiding a follow-up search_cards round trip. It does not explicitly exclude or contrast with the other aggregate-flavored siblings (count_cards, aggregate_cards) or state prerequisites, so it stops short of full when/when-not guidance.

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