{"openapi":"3.1.0","info":{"title":"One Piece Sim — One Piece Card Game simulator for your AI: goldfish, DON!! curve, Life and draw odds, deck check","version":"1.0.0","description":"One Piece Sim: a One Piece Card Game (OPTCG) simulator inside your AI (MCP server + pay-per-call API). Goldfish simulator (DON!! curve, mulligan, plays by turn, counter in hand), Life card odds, draw odds, plus a FREE deck check (1 Leader + 50, 4 per card number, Leader colors). Paid tools from $0.001 via MPP on Tempo, no account; invalid input is never charged. Docs: https://onepiece-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://onepiece-sim.fmf-x402.workers.dev/llms.txt and https://onepiece-sim.fmf-x402.workers.dev/openapi.json. MCP (Streamable HTTP): https://onepiece-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. One Piece Sim is an unofficial fan tool, not affiliated with or endorsed by Bandai, Toei Animation or Shueisha. One Piece and card names are trademarks of their owners. Card data from the OPTCG 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://onepiece-sim.fmf-x402.workers.dev/docs","email":"fmf-tools@agentmail.to"},"x-docs":"https://onepiece-sim.fmf-x402.workers.dev/docs","x-mcp":"https://onepiece-sim.fmf-x402.workers.dev/mcp","x-llms":"https://onepiece-sim.fmf-x402.workers.dev/llms.txt","x-fmf-id":"onepiece-sim"},"servers":[{"url":"https://onepiece-sim.fmf-x402.workers.dev"}],"paths":{"/mpp/onepiece/draw-odds":{"post":{"operationId":"onepiece_draw_odds","summary":"One Piece draw sim: exact odds to draw your cards by turn N","description":"Exact joint odds of drawing one or more cards (up to 6 groups) in the opening 5 and by each turn, going first (no turn-1 draw) or second. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","description":"[{\"name\":\"Nami\",\"copies\":4,\"min\":1}]"},"turn":{"type":"integer","description":"1-20, default 4"},"on_play":{"type":"boolean","description":"going first, default true"}},"required":["cards"]},"example":{"cards":[{"name":"Nami","copies":4,"min":1},{"name":"2-cost characters","copies":12,"min":1}],"turn":3}}}},"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/onepiece/life-odds":{"post":{"operationId":"onepiece_life_odds","summary":"One Piece Life odds: chance key cards are stuck in Life","description":"Exact odds that at least one / all copies of each card start in your Life cards, for your Leader's Life total. Price $0.001 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","description":"[{\"name\":\"Shanks\",\"copies\":4}]"},"life":{"type":"integer","description":"Leader Life, default 5"}},"required":["cards"]},"example":{"cards":[{"name":"Monkey.D.Luffy","copies":2},{"name":"Nami","copies":4}],"life":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.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/onepiece/goldfish":{"post":{"operationId":"onepiece_goldfish","summary":"One Piece goldfish simulator for a pasted decklist","description":"Seeded Monte Carlo goldfish: mulligan, Life set from the deck, DON!! curve (going first or second), Characters played by cost, counter left in hand, and your goals (\"play Luffy by turn 4\"). Up to 20,000 games. Price $0.003 per call.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"decklist":{"type":"string","description":"Pasted decklist with Leader"},"goals":{"type":"array","description":"[{\"card\":\"ST01-012\",\"turn\":4,\"cast\":true}]"},"turns":{"type":"integer","description":"1-10, default 6"},"iterations":{"type":"integer","description":"100-20000, default 10000"},"seed":{"type":"integer","description":"default 1"},"going_first":{"type":"boolean","description":"default true"}},"required":["decklist"]},"example":{"decklist":"1xST01-001\n4xOP01-016\n4xST01-003\n4xOP01-006\n4xST01-009\n4xOP01-013\n4xST01-011\n4xOP01-017\n4xOP01-015\n4xST01-005\n4xST01-010\n4xOP01-022\n2xST01-012\n4xST01-014","goals":[{"card":"ST01-012","turn":4,"cast":true}],"turns":5,"iterations":5000,"seed":3}}}},"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://onepiece-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."}]}