Skip to main content
Glama

Import deck

import_deck

Create a deck from pasted decklist text — the reliable path, ask for it first ("4 Lightning Bolt (2XM) 123" per line; Commander/Sideboard sections, "SB:" lines and F foil markers understood; any site's text export works: Moxfield, Archidekt, MTGGoldfish, MTGO, Arena). The link of a public Moxfield deck (moxfield.com/decks/…) is also accepted: it is asked for once, as a browser would. When Moxfield does not answer, the error says so — ask the user to open the deck on Moxfield → More → Export, copy the text, and retry with decklist_text. Sideboard cards land in the sideboard section; up to two commanders are kept as a pair. A companion (a Companion section, Moxfield's companion, CMPN) becomes the deck's companion, in the sideboard. Wants are stored oracle-level (any printing satisfies them). Card names may be in any language Scryfall prints ("4 Blitzschlag", "1 Foudre"): read_as lists each with the English card it was read as — tell the user. A foreign name several cards share is left unresolved with those cards named: ask which. Returns the deck, unresolved card names, ignored_lines (lines that were not a card: show them to the user, never guess) and notes to relay — e.g. a Commander list that came with a sideboard keeps it, and legality will flag it. Never refused for the plan: a deck past the decks the user's plan keeps editable is imported whole and answers editable:false and plan_limit, which names the decks that take edits: relay it. Typical next step: claim_from_collection to pull owned cards and report what is missing.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "import_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic Moxfield deck URL (alternative to decklist_text; Moxfield may block it)
nameNoDeck name override
formatNo
commanderNoCommander override (else detected from the source)
companionNoCompanion override (else detected from the source)
decklist_textNoPlain decklist text — preferred

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / companion
      Added value: +{
      +  "description": "Companion override (else detected from the source)",
      +  "properties": {
      +    "collector_number": {
      +      "description": "Collector number within the set",
      +      "type": "string"
      +    },
      +    "name": {
      +      "description": "Card name in English or any language Scryfall prints (\"Blitzschlag\", \"Foudre\", \"稲妻\"), used when scryfall_id is absent; an English name is also fuzzy-resolved via Scryfall",
      +      "type": "string"
      +    },
      +    "scryfall_id": {
      +      "description": "Exact Scryfall printing id, if known",
      +      "type": "string"
      +    },
      +    "set_code": {
      +      "description": "Set code, e.g. \"2xm\"",
      +      "type": "string"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare openWorldHint, non-idempotent, non-read-only, so the safety profile is partly covered; the description nonetheless adds substantial context the annotations cannot: the single-retry browser-like Moxfield fetch, sideboard/commander/companion placement rules, oracle-level wants, foreign-name resolution, ignored_lines handling, and that the import is never refused on plan limits but returns editable:false plus plan_limit. The only real gap is that it never says what the returned deck object looks like structurally, though it enumerates the top-level result fields.

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 correctly and dense with real information, but the body drifts into long, heavily parenthesized sentences that take effort to parse — notably the "Never refused for the plan…" and companion sentences. It is appropriately sized for a complex import tool, yet a few clauses could be split or trimmed without losing meaning.

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?

For a six-parameter, nested-object, open-world mutation with no output schema and no required fields, the definition covers input modes, parsing rules, error recovery, edge-case placements, plus the fields the call returns and how to relay them. The agent has everything needed to call it and act on the result.

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 coverage is already high at 83%, so the baseline would be 3, but the description goes well past it: it specifies the decklist_text syntax line by line ("4 Lightning Bolt (2XM) 123"), the understood section and marker conventions (Commander/Sideboard, "SB:", *F* foil), what the url parameter does and how often it is retried, and how commander/companion overrides interact with detected values and language.

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?

Opens with a specific verb+resource ("Create a deck from pasted decklist text") and immediately scopes the two accepted inputs: raw decklist text plus a public Moxfield URL. The distinction from a plain create path is made explicit via "the reliable path, ask for it first", so an agent can choose this over siblings without reading schemas.

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?

Gives an explicit priority rule (ask for decklist text first, URL is the secondary path), a named failure mode with a concrete recovery recipe (Moxfield blocks → open deck → More → Export → retry with decklist_text), and names the typical next step (claim_from_collection). Few definitions route this clearly.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources