Skip to main content
Glama

Export deck

export_deck
Read-onlyIdempotent

Export a deck (id or name) as plain decklist text: Commander section first when set (both of a pair), then a Companion section when the deck names one, then the "N Card Name" lines of the main deck, then a Sideboard section when there is one, the companion repeated there as Arena writes it (pinned printings keep their set/collector number). import_deck reads it back whole.

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": {
      "deck": "<deck>"
    },
    "name": "export_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck id or name

Output Schema

NameRequiredDescriptionDefault
decklistYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, and non-destructive, so the safety profile is covered. The description goes further by disclosing the exact section ordering and edge-case rendering rules (Commander pair, Companion section, companion repeated in Sideboard as Arena writes it, pinned printings keeping set/collector number) — real behavioral detail beyond structured fields. It omits what happens on an unknown deck or empty deck.

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 format specification is front-loaded and every clause carries information about output shape, with no filler. It is a single very long run-on sentence with stacked subordinate clauses, which slightly hurts scannability but not content.

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?

An output schema exists, so return values need no explanation, yet the description usefully documents the serialized layout anyway. For a read-only single-parameter export tool this is nearly complete; only error/empty-deck behavior is unaddressed.

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?

Schema description coverage is 100% and the single parameter already documents "Deck id or name"; the description repeats but does not extend that. Baseline 3 is appropriate since the schema does the work for a one-parameter tool.

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?

States a specific verb and resource ("Export a deck") plus the exact output format ("plain decklist text"), and even specifies the identifier forms (id or name). This is clearly distinguishable from export_collection, which exports a different resource, without needing to open either schema.

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?

Usage is implied clearly through the round-trip note ("import_deck reads it back whole"), which tells the agent this is the text-serialization counterpart to import_deck. It does not, however, contrast against show_deck or export_collection, so an agent weighing display vs. serialization must infer the choice.

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