finalize_deck
Save a finished Yu-Gi-Oh! deck only when validate_deck confirms legality, writing .ydk, ydke:// URL, decklist, and history; otherwise return issues without saving.
Instructions
Save a finished deck, but only if validate_deck says it is legal (otherwise nothing is written and the problems come back). Writes data/decks/..ydk and a .json with the ydke:// URL, a text decklist, the points or ban breakdown and the data "as of" date. Saving the same name again keeps the previous .ydk in data/decks/history/. Follow-up questions can pass the returned ydk path to validate_deck or find_links.
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": {
"format": "<format>",
"name": "<name>"
},
"name": "finalize_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| notes | No | ||
| format | Yes | ||
| decklist | No | ||
| ydk_path | No | ||
| ydk_text | No | ||
| point_cap | No |