Skip to main content
Glama

Import batch

import_batch

Bulk-import collection rows that were parsed client-side from a CSV export: rows = the CSV rows as objects keyed by the file's own column headers. format: auto (default) recognises the app from the headers — ManaBox, Deckbox (also Delver Lens's Deckbox preset), Moxfield, Dragon Shield, Sorted, Archidekt, TCGplayer app, MTGGoldfish, TopDecked, Helvault, Deckstats, MTGStocks, CardCastle — and reads any other file by its column names (Name / Card Name, Set Code, Set Name, Collector Number, Quantity, Foil / Finish, Condition, Language, Scryfall ID, Purchase Price, Reg Qty + Foil Qty). Pass a format id only to overrule the detection; decklist (or decklist_text with no rows) reads plain decklist text into the collection. The response names the format it read (detected_format) and sets unchecked_layout when that layout was written without a real export file to test it: tell the user, and suggest they look over the first cards once the job is done. A Cardmarket export cannot be imported (it names cards only by Cardmarket's product number) and is refused with that reason. A card named in another language is read as its English card (fix_unresolved with job_id lists them as read_as). A set given by name only is matched to its set when the name is the one Scryfall uses; otherwise the card's newest regular printing is taken. Max 500 rows per call — pass the returned job_id in follow-up calls to continue the same job, then processing runs in the background in resumable chunks. ManaBox binders / Dragon Shield folders become locations automatically. Returns job status; when it finishes as needs_review, use fix_unresolved. A name matching no card exactly is looked up on Scryfall, at most 200 an import and 500 a day per player: a row past that is left for fix_unresolved, saying why.

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_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
rowsNo
startNoBegin background processing (default true)
formatNo
job_idNoContinue a previously created job
decklist_textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Well beyond the annotations: it discloses the 500-row per-call cap, resumable background chunks, that ManaBox binders and Dragon Shield folders become locations automatically, that Cardmarket exports are refused and why, that non-English names resolve to English cards, and the Scryfall fallback budget (200/import, 500/day). The only gap is that it does not say what 'start: false' does beyond the schema's 'begin background processing'. No contradiction with readOnlyHint=false/openWorldHint=true, which the write-oriented text is consistent with.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

It is one dense unbroken paragraph; the 13-app enumeration and the long column-name list are informative but heavy, and the tool would read far better broken into import-format, limits, and follow-up sections. Nothing is pure padding, but the front-loaded clarity erodes as the paragraph runs on.

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?

Despite no output schema, the description explains the return value (job status, detected_format, unchecked_layout and what to tell the user) plus the review path via fix_unresolved. For a 5-param, 0-required mutation tool this covers everything an agent needs to invoke and follow through.

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?

With only 40% schema coverage the description carries real weight: it defines rows as CSV objects keyed by the file's own headers and enumerates the recognized fallback column names, explains the format enum semantics beyond the bare list (auto detects, id-only overrules, decklist reads text), and describes job_id as continuing the same job. The 'start' parameter is left to the schema, which keeps this from a 5.

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 clause gives a specific verb and resource ('Bulk-import collection rows ... parsed client-side from a CSV export') and scopes it against sibling import paths by contrasting rows with 'decklist (or decklist_text with no rows)'. An agent can immediately tell this apart from import_deck and fix_unresolved.

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?

Explicit routing rules: use format auto by default, pass a format id only to overrule detection, use decklist/decklist_text for plain text, and pass the returned job_id in follow-up calls after the 500-row cap. It also names the downstream step ('when it finishes as needs_review, use fix_unresolved'), which is exactly the when-to-use guidance an agent needs.

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