Skip to main content
Glama
Deck Tutor MCP Server
by ellentham

Extract Strategy from Card

extract_strategy_from_card

Fetch a Magic card by name and mine its oracle text for deck-building strategy: creature types, mechanics, triggers, stats, and Scryfall query fragments. Use for Commander or key-card decks.

Instructions

Fetches a card from Scryfall by name and extracts deck-building strategy from its oracle text. Returns creature types, mechanics, triggers, power/toughness, and Scryfall query fragments. Use for Commander (extract from commander) or any deck where a key card defines the strategy.

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": {
      "cardName": "<cardName>"
    },
    "name": "extract_strategy_from_card"
  }
}

Input Schema

NameRequiredDescriptionDefault
cardNameYesCard name (fuzzy match supported, e.g. "Maralen, Fae Ascendant" or "Animar")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It does disclose a meaningful trait the schema does not: the tool calls out to the external Scryfall API, and it lists the categories of data returned. However, it says nothing about failure behavior for unmatched card names, rate limits or latency from the external dependency, or whether results are cached, all of which matter for a network-backed 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?

Three short sentences, front-loaded with the core action and return contents before the usage note. The parenthetical '(extract from commander)' is slightly redundant with the surrounding clause, but there is no filler and nothing important is buried.

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?

There is no output schema, so the description must describe return values, and it does so by naming the extracted fields. For a one-parameter, non-destructive read tool this is nearly sufficient; the remaining gap is error/edge-case behavior when a card name does not resolve via fuzzy match.

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?

There is a single required parameter and schema description coverage is 100%; the schema already documents fuzzy matching with worked examples. The description only restates that the lookup is 'by name', adding no new semantics such as case sensitivity, set disambiguation, or handling of ambiguous matches. Baseline 3 is appropriate.

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 pairs specific verbs with a specific resource: it fetches a card from Scryfall by name and extracts deck-building strategy from the oracle text, then enumerates what it returns (creature types, mechanics, triggers, power/toughness, query fragments). It is clearly a card-analysis tool rather than a rules-lookup tool, though it never names or contrasts the sibling lookup_comprehensive_rule, so the differentiation is left implicit.

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 final sentence gives concrete usage context: Commander decks where the commander defines the strategy, or any deck with a key defining card. That is a clear when-to-use signal. It stops short of exclusions or naming an alternative tool for adjacent cases (e.g., when to look up a rule instead), so it falls just short of the top band.

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