Skip to main content
Glama

validate_deck

Check if a Lorcana deck meets tournament rules: at least 60 cards, no more than 4 copies of a card, and at most 2 ink colors. Returns legal status, total cards, inks, and any violations.

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
deckYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

No annotations are provided, so the description carries the full burden. It details the validation rules, violation types (deck_size, max_copies, ink_limit, unknown_card), and return structure. It does not mention side effects (assumed read-only) or error handling beyond unknown_card, but the behavioral disclosure is substantial.

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?

The description is well-structured, starting with purpose, then rules, input format, return format, violation types, and usage note. It is slightly long but every sentence adds value. Could be slightly more concise.

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?

Given the complexity of deck validation (multiple rules) and the existence of an output schema, the description is complete. It covers all rules, violation types, input format, return structure, and integration with import_deck. The output schema likely details return fields, so the description need not repeat them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema has only one parameter 'deck' with minimal type info (array of objects, additionalProperties true). The description adds critical meaning: each entry must be {name: str, count: int} with name as card.full_name, provides an example, and explains how to build from import_deck output. This fully compensates for the 0% schema coverage.

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?

The description clearly states the tool validates a Lorcana deck against format rules, specifying the verb 'validate' and resource 'deck'. It distinguishes from sibling tools like import_deck (which parses a deck) and deck_stats (likely summary).

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?

The description provides clear context for use: validating a deck after importing via import_deck. It explains the input format and how to build it from import_deck output. However, it does not explicitly mention when not to use this tool or alternatives like search_cards for resolving unknown cards.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/danielenricocahall/lorcana-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server