{"openapi":"3.1.0","info":{"title":"Yu-Gi-Oh Sim — Yu-Gi-Oh! simulator for your AI: goldfish, combo odds, hand-trap odds, banlist deck check","version":"1.0.0","description":"Yu-Gi-Oh Sim: a Yu-Gi-Oh! simulator inside your AI (MCP server + pay-per-call API). Seeded goldfish (official going-first / going-second draw rules), exact draw/combo odds (starter + extender, brick rate), exact hand-trap odds, plus a FREE deck check for TCG/OCG/GOAT banlists (.ydk or text; 40-60 Main, 15 Extra, 15 Side, Forbidden/Limited/Semi-Limited). Paid tools from $0.001 via MPP on Tempo or x402 on Base, no account; invalid input is never charged. Docs: https://yugioh-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://yugioh-sim.fmf-x402.workers.dev/llms.txt and https://yugioh-sim.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://yugioh-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. Yu-Gi-Oh Sim is an unofficial fan tool, not affiliated with or endorsed by Konami. Yu-Gi-Oh! and card names are trademarks of their owners. Card data and banlists from the YGOPRODeck API; card data tools are free. Paid tools sell only our own computation and return no card data. Contact: fmf-tools@agentmail.to","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://yugioh-sim.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://yugioh-sim.fmf-x402.workers.dev/docs","x-mcp":"https://yugioh-sim.fmf-x402.workers.dev/mcp","x-llms":"https://yugioh-sim.fmf-x402.workers.dev/llms.txt","x-fmf-id":"yugioh-sim"},"servers":[{"url":"https://yugioh-sim.fmf-x402.workers.dev"}],"paths":{"/mpp/ygo/combo-odds":{"post":{"operationId":"ygo_combo_odds","summary":"Yu-Gi-Oh! draw/combo odds: starter + extender, bricks, hand traps","description":"Exact draw/combo odds of opening a combination of card groups (e.g. 1+ starter AND 1+ extender AND at most 1 brick) going first (5 cards) and second (6 cards), up to 6 groups, any deck size 40-60. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","description":"[{\"name\":\"starters\",\"copies\":12,\"min\":1},{\"name\":\"extenders\",\"copies\":8,\"min\":1},{\"name\":\"bricks\",\"copies\":4,\"min\":0,\"max\":1}]"},"deck_size":{"type":"integer","description":"40-60, default 40"}},"required":["cards"]},"example":{"cards":[{"name":"starters","copies":12,"min":1},{"name":"extenders","copies":8,"min":1},{"name":"bricks","copies":4,"min":0,"max":1}],"deck_size":40}}}},"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/ygo/handtrap-odds":{"post":{"operationId":"ygo_handtrap_odds","summary":"Yu-Gi-Oh! hand-trap odds (exact)","description":"Exact odds of opening at least one (or two) hand traps going first (5) and second (6). Pass a hand-trap count, or paste a .ydk and the known hand traps are auto-tagged. Also returns how many hand traps you need to hit 80% and 90%. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"handtraps":{"type":"integer","description":"copies of hand traps in the Main Deck (if no decklist)"},"deck_size":{"type":"integer","description":"40-60, default 40"},"decklist":{"type":"string","description":"optional .ydk; hand traps are auto-tagged"}}},"example":{"handtraps":9,"deck_size":40}}}},"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/ygo/goldfish":{"post":{"operationId":"ygo_goldfish","summary":"Yu-Gi-Oh! seeded goldfish simulator for a pasted deck","description":"Seeded goldfish of a pasted .ydk: official going-first (5 cards, no draw on turn 1) and going-second (draw to 6) rules, then one card per turn, at most one Normal Summon per turn (tributes for Level 5+). Tag starters/extenders/bricks (hand traps auto-tagged) and set goals by turn. Up to 20,000 games. Card effects and Extra Deck plays are not resolved. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decklist":{"type":"string","description":".ydk text or decklist"},"tags":{"type":"object","description":"{\"starter\":[\"Card A\"],\"extender\":[\"Card B\"],\"brick\":[\"Card C\"]}"},"goals":{"type":"array","description":"[{\"name\":\"starter on turn 1\",\"need\":[{\"group\":\"starter\"}],\"turn\":1}]"},"turns":{"type":"integer","description":"1-10, default 3"},"iterations":{"type":"integer","description":"100-20000, default 10000"},"seed":{"type":"integer","description":"default 1"}},"required":["decklist"]},"example":{"decklist":"#main\n3 Ash Blossom & Joyous Spring\n3 Maxx \"C\"\n2 Infinite Impermanence\n3 Effect Veiler\n3 Pot of Prosperity\n2 Called by the Grave\n24 Dark Magician\n#extra\n2 Dark Paladin\n!side","tags":{"starter":["Dark Magician","Pot of Prosperity"],"brick":["Called by the Grave"]},"goals":[{"name":"starter + hand trap on turn 1","need":[{"group":"starter"},{"group":"handtrap"}],"turn":1},{"name":"starter, no brick on turn 1","need":[{"group":"starter"},{"group":"brick","min":0,"max":0}],"turn":1}],"turns":3,"iterations":5000,"seed":5}}}},"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"}}}},"/mpp/ygo/hand-sim":{"post":{"operationId":"ygo_hand_sim","summary":"Yu-Gi-Oh! opening hand simulator for a pasted deck","description":"Paste a .ydk or list, tag starters/extenders/bricks (hand traps are auto-tagged), define goals (\"starter + extender\", \"starter and no bricks\", \"2+ hand traps\") and get seeded Monte Carlo odds going first and second, plus the distribution of each group in the opening 5. Up to 50,000 hands. For turn-by-turn goldfish with Normal Summons use ygo_goldfish. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decklist":{"type":"string","description":".ydk text or decklist"},"tags":{"type":"object","description":"{\"starter\":[\"Card A\",\"Card B\"],\"extender\":[\"Card C\"],\"brick\":[\"Card D\"]}"},"goals":{"type":"array","description":"[{\"name\":\"starter + extender\",\"need\":[{\"group\":\"starter\"},{\"group\":\"extender\"}]},{\"name\":\"no bricks\",\"need\":[{\"group\":\"brick\",\"min\":0,\"max\":0}]}]"},"iterations":{"type":"integer","description":"100-50000, default 20000"},"seed":{"type":"integer","description":"default 1"}},"required":["decklist"]},"example":{"decklist":"#main\n3 Ash Blossom & Joyous Spring\n3 Maxx \"C\"\n2 Infinite Impermanence\n3 Effect Veiler\n3 Pot of Prosperity\n2 Called by the Grave\n24 Dark Magician\n#extra\n2 Dark Paladin\n!side","tags":{"starter":["Dark Magician","Pot of Prosperity"],"brick":["Called by the Grave"]},"goals":[{"name":"starter + hand trap","need":[{"group":"starter"},{"group":"handtrap"}]},{"name":"starter, no brick","need":[{"group":"starter"},{"group":"brick","min":0,"max":0}]}],"iterations":10000,"seed":5}}}},"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://yugioh-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."}]}