Skip to main content
Glama

Update deck

update_deck
DestructiveIdempotent

Change a deck (id or name): its name, format (commander | pdh (Pauper Commander) | dc (Duel Commander) | standard | pioneer | modern | legacy | vintage | pauper | casual), description, or who leads it. commander / partner take a card reference; null removes that commander (the card stays in the list). A newly named commander that the list lacks is added to the main deck. Fields left out are unchanged. companion takes a card reference (null: none; the card stays in the list): a card with the Companion ability, moved to or added to the sideboard (outside the 100 in a commander format); deck_health checks its condition and names any card that breaks it. Changing the format changes which rules deck_health and deck_stats apply; it never changes the list. lang sets the language the deck's rows ask for (Scryfall's code: de, ja, zhs…; null any) unless a row has its own: a preference, so a copy in another language still counts and is offered marked. open_to_trade:true PUBLISHES this deck's claimed copies on every tradelist the user publishes, each naming this deck (trading one breaks it): say so and ask before turning it on. The deck stays whole. play is how the deck is played (every deck starts casual): tournament counts a copy only a proxy covers as missing, so deck_status, the buylist, its wantlist link, trade matches and posts list that card until a real copy replaces the proxy; the proxy stays in the deck, and nothing is written to the list. casual plays proxies, and a deck with them is not tournament legal.

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": "update_deck"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck id or name
langNoThe language the deck's rows ask for unless a row has its own; null any
nameNo
playNotournament: a copy only a proxy covers counts as missing. casual (the default): proxies play
formatNo
partnerNoThe second commander of a pair
commanderNo
companionNoThe companion, kept in the sideboard; null: none
descriptionNo
open_to_tradeNotrue: the deck's claimed copies join every published tradelist, named as this deck's

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / companion
      Added value: +{
      +  "anyOf": [
      +    {
      +      "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"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "The companion, kept in the sideboard; null: none"
      +}
  2. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true, but the description supplies the consequences that matter: partial-update semantics ('Fields left out are unchanged'), that nulling commander/partner/companion leaves the card in the list, that a new commander is added to the main deck, that a format change never alters the list, and that open_to_trade publishes copies on every tradelist in a way that breaks on trade. The proxy/tournament consequences for deck_status, buylist, wantlist and trade matching are disclosed in detail.

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?

A single ~230-word run-on paragraph with stacked parentheticals; the safety-critical open_to_trade warning is buried mid-block rather than front-loaded. Almost every clause earns its place, but several restate schema parameter descriptions verbatim (play, companion, open_to_trade, lang), which is redundant rather than additive.

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?

For a 10-parameter destructive mutation with no output schema, the description covers all the state-changing edge cases an agent must reason about, including the write-free behavior of proxies and format changes. It says nothing about what the call returns or how to confirm success, which is the remaining gap.

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 60% schema coverage, the description carries real weight: it explains commander/partner card-reference semantics and null behavior, companion sideboard placement outside the 100, lang as a per-row-overridable preference where foreign copies still count and are 'offered marked', and play's effect on proxy accounting. The generic 'name' and 'description' parameters get only a passing mention, so a small gap remains.

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?

Opens with a specific verb+resource ('Change a deck (id or name)') and immediately enumerates the mutable facets: name, format, description, commander/partner, companion, lang, open_to_trade, play. That is far more than a restated title. It never states what distinguishes it from siblings such as create_deck or delete_deck, so it stops short of full sibling differentiation.

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?

Gives clear operational context for when particular parameters matter (format selects which rules deck_health and deck_stats apply; open_to_trade requires explicit user consent: 'say so and ask before turning it on'). It does not name any alternative tool or state when not to use this one, so no explicit routing guidance.

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