{"openapi":"3.1.0","info":{"title":"Hearthstone Sim — Hearthstone simulator for your AI: mulligan odds, curve goldfish, draw odds, deck code check","version":"1.0.0","description":"Hearthstone Sim: a Hearthstone simulator inside your AI (MCP server + pay-per-call API). Mulligan simulator (exact Hearthstone replacement rule), mana-curve goldfish (The Coin, best mana use), draw odds, plus a FREE deck check that reads deck codes (30 cards, 2 copies / 1 Legendary, class, Standard sets). Paid tools from $0.001 via MPP on Tempo, no account; invalid input is never charged. Docs: https://hearthstone-sim.fmf-x402.workers.dev/docs — copy-paste examples for the mppx CLI, curl, the TypeScript SDK (mppx) and the Python SDK (pympp), plus an MCP config. Machine-readable: https://hearthstone-sim.fmf-x402.workers.dev/llms.txt and https://hearthstone-sim.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://hearthstone-sim.fmf-x402.workers.dev/mcp. Fleet of sister services: https://mpp-docs.fmf-x402.workers.dev, https://mpp-agent-data.fmf-x402.workers.dev, https://mpp-tools.fmf-x402.workers.dev, https://mpp-ai.fmf-x402.workers.dev, https://mpp-research.fmf-x402.workers.dev, https://mpp-chain.fmf-x402.workers.dev, https://mtg-sim.fmf-x402.workers.dev, https://mpp-stt.fmf-x402.workers.dev, https://controlplane-x402.fmf-x402.workers.dev, https://pokemon-tcg-sim.fmf-x402.workers.dev, https://yugioh-sim.fmf-x402.workers.dev, https://mpp-cryptotax.fmf-x402.workers.dev, https://mpp-biz.fmf-x402.workers.dev, https://lorcana-sim.fmf-x402.workers.dev, https://onepiece-sim.fmf-x402.workers.dev, https://hearthstone-sim.fmf-x402.workers.dev, https://chess-sim.fmf-x402.workers.dev, https://dota2-sim.fmf-x402.workers.dev, https://cs2-sim.fmf-x402.workers.dev. Hearthstone Sim is an unofficial fan tool, not affiliated with or endorsed by Blizzard Entertainment. Hearthstone and card names are trademarks of Blizzard Entertainment. Card data from HearthstoneJSON; card data tools are free. Paid tools sell only our own computation and return no card data.","x-guidance":"POST JSON (or GET with query params) to any /mpp/* route and pay the 402 challenge with MPP on Tempo (USDC.e or pathUSD, WWW-Authenticate: Payment) or x402 v2 on Base (USDC, PAYMENT-REQUIRED / PAYMENT-SIGNATURE headers). Bad input or an upstream failure returns 402 with an error and you are not charged.","contact":{"name":"FMF Tools","url":"https://hearthstone-sim.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://hearthstone-sim.fmf-x402.workers.dev/docs","x-mcp":"https://hearthstone-sim.fmf-x402.workers.dev/mcp","x-llms":"https://hearthstone-sim.fmf-x402.workers.dev/llms.txt","x-fmf-id":"hearthstone-sim"},"servers":[{"url":"https://hearthstone-sim.fmf-x402.workers.dev"}],"paths":{"/mpp/hs/draw-odds":{"post":{"operationId":"hs_draw_odds","summary":"Hearthstone draw sim: exact odds to draw your cards by turn N","description":"Exact joint odds (no mulligan) of drawing one or more cards (up to 6 groups) by each turn, going first (3 cards) or second (4 cards). Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","description":"[{\"name\":\"Fireball\",\"copies\":2,\"min\":1}]"},"turn":{"type":"integer","description":"1-20, default 4"},"on_play":{"type":"boolean","description":"going first, default true"}},"required":["cards"]},"example":{"cards":[{"name":"Fireball","copies":2,"min":1},{"name":"1-drops","copies":6,"min":1}],"turn":3,"on_play":false}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/hs/mulligan-odds":{"post":{"operationId":"hs_mulligan_odds","summary":"Hearthstone mulligan sim: odds to find key cards with a mulligan","description":"Seeded simulation of the Hearthstone mulligan (replacements never include the tossed cards) for up to 4 key cards: odds in the opening hand and by turn N, versus no mulligan. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","description":"[{\"name\":\"Fireball\",\"copies\":2}]"},"turn":{"type":"integer","description":"1-10, default 3"},"going_first":{"type":"boolean","description":"default true"},"iterations":{"type":"integer","description":"1000-50000, default 20000"},"seed":{"type":"integer","description":"default 1"}},"required":["cards"]},"example":{"cards":[{"name":"Fireball","copies":2}],"turn":4,"going_first":false}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.001"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}},"/mpp/hs/curve-goldfish":{"post":{"operationId":"hs_curve_goldfish","summary":"Hearthstone curve goldfish simulator for a deck code","description":"Seeded Monte Carlo goldfish: mulligan, draws, mana each turn, The Coin going second, best mana use per turn (exact subset search), and your goals (\"play Techysaurus by turn 7\"). Up to 20,000 games. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"deck_code":{"type":"string","description":"Deck code or pasted export"},"goals":{"type":"array","description":"[{\"card\":\"Fireball\",\"turn\":4,\"cast\":true}]"},"turns":{"type":"integer","description":"1-10, default 7"},"iterations":{"type":"integer","description":"100-20000, default 10000"},"seed":{"type":"integer","description":"default 1"},"going_first":{"type":"boolean","description":"default true"}},"required":["deck_code"]},"example":{"deck_code":"### Example Mage\n# Class: Mage\n# Format: Standard\n# 2x (1) Cold Snap\n# 2x (1) Beaming Sidekick\n# 2x (1) Glacial Shard\n# 2x (2) Murloc Tidehunter\n# 2x (2) Leyline Nexus\n# 2x (2) Annoy-o-Tron\n# 2x (2) Story of the Waygate\n# 2x (3) Spire Security\n# 2x (3) Hench-Clan Thug\n# 2x (3) Scorching Winds\n# 2x (4) Fireball\n# 2x (4) Arcane Flow\n# 2x (5) Tribute Dance\n# 2x (5) Vaultkeeper\n# 2x (7) Techysaurus","goals":[{"card":"Techysaurus","turn":7,"cast":true}],"iterations":4000,"seed":2}}}},"x-payment-info":{"protocols":[{"mpp":{"method":"tempo","intent":"charge","currency":"0x20C000000000000000000000b9537d11c60E8b50"}},{"x402":{"scheme":"exact","network":"eip155:8453","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913"}}],"price":{"mode":"fixed","currency":"USD","amount":"0.003"}},"responses":{"200":{"description":"Result","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"402":{"description":"Payment required (MPP, Tempo USDC.e or pathUSD); also returned with an error message, not charged, for invalid input"}}}}},"externalDocs":{"description":"Copy-paste examples (CLI, curl, TypeScript, Python, MCP)","url":"https://hearthstone-sim.fmf-x402.workers.dev/docs"},"components":{"securitySchemes":{"Payment":{"type":"http","scheme":"Payment","description":"MPP Payment credential on Tempo (USDC.e or pathUSD). Clients such as mppx handle the 402 challenge automatically. See https://mpp.dev/sdk"}}},"tags":[{"name":"paid","description":"Pay-per-call MPP routes. Unpaid requests receive 402. Invalid input is not charged."},{"name":"discovery","description":"Free discovery surfaces: /docs, /llms.txt, /openapi.json, /mcp, /health."}]}