Skip to main content
Glama

lookup_card

Look up a specific Lorcana card by exact or near-exact name to retrieve its full stats, abilities, and format legality in one call.

Instructions

Look up one specific, already-known Lorcana card by (near-)exact name and return its full stats, abilities, and format legality in one call.

Behavior: tries an exact name match against LorcanaJSON first, then falls back to a plain substring match — this is simple matching, not fuzzy scoring. If the same card name exists across multiple sets/printings and set_name isn't given, it silently returns the most recent printing rather than listing the alternatives (Enchanted/Epic/promo variants are gameplay-identical to the base card either way, so this rarely matters for stats — but a specific older printing's card ID/legality nuance won't surface without set_name). Card data (LorcanaJSON + duels.ink) is fetched live and cached on disk for 24h — see lorcana-mcp cache stats / cache clear if you suspect stale data right after a new set drops.

Usage guidelines: reach for this first when you already have a specific printed card name (even with the subtitle omitted, e.g. "Mirage") — it's the cheapest, most precise lookup. If it returns "no card found" for a name you're unsure is spelled/formatted correctly (informal phrasing, missing dashes, a likely typo, or a bare first name meant to cover several printings), retry with resolve_card instead, which fuzzy-matches and will disambiguate multiple candidates rather than failing outright. For browsing/filtering many cards by criteria instead of one known name, use search_cards.

Format Coconut cards (the multiplayer beta's always-on "commander" cards) live in a separate pool. Pass format="coconut" to look one up: it returns the Coconut card's real ability text, its associated 4-of character, and its image. Several Coconut cards share a name+subtitle with an unrelated printed card (e.g. Ariel - Spectacular Singer, Robin Hood - Sneaky Sleuth), so a normal lookup of such a name returns the printed card and adds a note pointing at the Coconut version.

Args: name: Card name, e.g. "Mirage - Super Recruiter" or just "Mirage". set_name: Optional set name to narrow the search, e.g. "Wilds Unknown". format: "" (default, regular printed cards) or "coconut" (Format Coconut 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": {
      "name": "<name>"
    },
    "name": "lookup_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes
formatNo
set_nameNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv2.7.0
    • addedInput schema / properties / format
      Added value: +{
      +  "default": "",
      +  "title": "Format",
      +  "type": "string"
      +}
  2. First observedv0.2.7

TDQS

A4.9/5.0
Behavior5/5

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

With no annotations provided, the description carries the full burden and does: it discloses the exact-then-substring matching strategy (explicitly not fuzzy), the silent most-recent-printing fallback and the ID and legality nuance this hides, 24h on-disk caching plus cache CLI commands, and the Coconut-pool name-collision behavior. This is unusually rich behavioral disclosure for an unannotated tool.

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 core action and matching behavior are front-loaded, and the usage routing follows logically. It is fairly long, and the parenthetical aside about Enchanted/Epic/promo variants plus the cache CLI reference are slightly tangential, but each sentence still conveys real information.

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?

The tool takes three parameters, but the description covers selection guidance, matching behavior, fallback semantics, format pool, and caching, while the existing output schema handles return values. An agent has everything needed to call this correctly on the first try.

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?

Schema description coverage is 0%, so the description must supply all parameter meaning, and it does: name is explained with examples ('Mirage - Super Recruiter' or just 'Mirage'), set_name is described as an optional narrowing filter with an example, and format's two values ('', 'coconut') are defined along with the distinct data pool the coconut value targets.

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 opening sentence names a specific verb and resource ('Look up one specific, already-known Lorcana card') and states what is returned ('full stats, abilities, and format legality in one call'). It is clearly distinguishable from the siblings resolve_card and search_cards, which are named later.

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?

The 'Usage guidelines' paragraph explicitly says to reach for this first when a specific printed card name is known, tells the agent to retry with resolve_card when a lookup fails because of typos or informal phrasing, and routes multi-card browsing to search_cards. Use conditions and exclusions are both stated.

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