Simulate a deck's mana
simulate_deckMonte Carlo consistency test, the same as the website's playtest simulator: plays the deck alone thousands of times and reports mulligan, mana screw and flood rates, lands and mana by turn, when the commander gets cast, how often a build-plan key card is drawn by turn 4, and how much mana gets used.
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": "simulate_deck"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | No | Alternative to decklist: [{"name": "Sol Ring", "qty": 1}, ...] or plain names. | |
| games | No | Default 3000. | |
| on_play | No | On the play (default) or the draw. | |
| decklist | No | The deck as text: one "1 Card Name" per line. Moxfield, Archidekt and Arena exports, .dek XML and CSV work; a "Commander" header line (or *CMDR*) marks the commander. | |
| commander | No | Commander name, if the list does not mark it. Otherwise it is detected like on the website. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cards | No | Cards in the deck. | |
| games | Yes | Games simulated. | |
| method | No | How the simulation plays. | |
| by_turn | Yes | Averages by turn. | |
| commander | No | The commander. | |
| on_the_play | No | On the play (else on the draw). | |
| unrecognized | No | Lines that matched no card. | |
| flood_percent | No | Games drawing too many lands, %. | |
| mulligan_percent | No | Opening hands mulliganed (too few or too many lands), %. | |
| mana_used_percent | No | Share of available mana spent, %. | |
| mana_screw_percent | No | Games stuck on lands, %. | |
| key_card_by_turn_4_percent | No | Games with a build-plan key card in hand by turn 4, %. |