Skip to main content
Glama

Validate Deck

validate_deck

Checks a Lorcana deck for format legality: minimum 60 cards, max 4 copies per card, and no more than 2 ink colors. Flags violations such as undersized decks, excess copies, and unknown cards.

Instructions

Validate a Lorcana deck against the format rules: at least 60 cards (no maximum — 60 is just the floor), max 4 copies of any card, max 2 distinct ink colors across the deck. Each entry is {name: str, count: int} where name is the card's full_name (e.g. 'Mickey Mouse - Brave Little Tailor'). Returns {legal: bool, total_cards, inks, violations: [...]}. Violation types: deck_size (under 60 — total below minimum), max_copies (>4 of one card), ink_limit (>2 distinct colors — also catches dual-ink cards adding a forbidden third color), unknown_card (name didn't resolve to a known card). If you have the output of import_deck, build the input as [{name: card.full_name, count: count}] for each parsed entry.

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

Input Schema

NameRequiredDescriptionDefault
deckYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.2.0

TDQS

A4.5/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it enumerates every enforced rule (60-card floor with no maximum, 4-copy cap, 2-ink limit), explains the contract implicitly read-only nature of 'validate', and delivers the complete return shape and each violation type with its meaning, including the non-obvious dual-ink edge case and the unknown_card failure mode.

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 rules, then input shape, then return value, then violation taxonomy, then the import_deck mapping — a logical order with no wasted preamble. Some parentheticals restate themselves ('at least 60 cards (no maximum — 60 is just the floor)' and 'deck_size (under 60 — total below minimum)'), which is minor redundancy in an otherwise dense passage.

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 single-parameter validator this covers rules, input contract, return shape, and error taxonomy, and an output schema exists so return values need no further detail. The only gap is edge-case behavior for malformed input (e.g., negative counts or an empty deck list).

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 0% and the schema itself is an opaque array of additionalProperties objects, so the description's '{name: str, count: int}' specification plus the 'name is the card's full_name' clarification with a concrete example is what makes the parameter usable. It only lacks a note on what happens with an empty array or duplicate entries for the same card.

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 ('Validate a Lorcana deck') plus the exact rule set applied, so an agent can distinguish it from siblings like deck_stats or resolve_card at a glance. The scope (format legality only, not scoring or stats) is implicit but clear.

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?

Gives an explicit integration path: 'If you have the output of import_deck, build the input as [{name: card.full_name, count: count}]', which tells the agent exactly when this tool follows import_deck. It stops short of naming when-not-to-use alternatives (e.g., use deck_stats for statistics), so it is clear context rather than full routing guidance.

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