Update deck
update_deckChange 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
| Name | Required | Description | Default |
|---|---|---|---|
| deck | Yes | Deck id or name | |
| lang | No | The language the deck's rows ask for unless a row has its own; null any | |
| name | No | ||
| play | No | tournament: a copy only a proxy covers counts as missing. casual (the default): proxies play | |
| format | No | ||
| partner | No | The second commander of a pair | |
| commander | No | ||
| companion | No | The companion, kept in the sideboard; null: none | |
| description | No | ||
| open_to_trade | No | true: the deck's claimed copies join every published tradelist, named as this deck's |