{"openapi":"3.1.0","info":{"title":"Umigame Soup API","version":"0.1.0","description":"オリジナルの水平思考パズル（ウミガメのスープ）を提供する API。/api/paid/* は x402 で課金される（Cloudflare Monetization Gateway）。"},"servers":[{"url":"https://umigame.bunchan.workers.dev"}],"paths":{"/api/puzzles":{"get":{"summary":"List puzzles (free)","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"default":1}},{"name":"per_page","in":"query","schema":{"type":"integer","minimum":1,"maximum":50,"default":20}},{"name":"difficulty","in":"query","schema":{"type":"integer","minimum":1,"maximum":5}},{"name":"tag","in":"query","schema":{"type":"string","maxLength":32}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PuzzleList"}}}},"400":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/puzzles/{slug}":{"get":{"summary":"Get puzzle question (free). Never includes the solution.","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublicPuzzle"}}}},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/paid/puzzles/{slug}/solution":{"get":{"summary":"Get solution (paid, $0.01/request)","parameters":[{"name":"slug","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-z0-9]+(?:-[a-z0-9]+)*$"}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Solution"}}}},"402":{"description":"Payment required (x402). Pay via Cloudflare Monetization Gateway and retry."},"404":{"description":"Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}},"PuzzleSummary":{"type":"object","required":["slug","title","difficulty","tags"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"difficulty":{"type":"integer","minimum":1,"maximum":5},"tags":{"type":"array","items":{"type":"string"}}}},"PuzzleList":{"type":"object","required":["items","total","page","per_page"],"properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/PuzzleSummary"}},"total":{"type":"integer"},"page":{"type":"integer"},"per_page":{"type":"integer"}}},"PublicPuzzle":{"type":"object","required":["slug","title","difficulty","tags","question","created_at","updated_at"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"difficulty":{"type":"integer","minimum":1,"maximum":5},"tags":{"type":"array","items":{"type":"string"}},"question":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}}},"Solution":{"type":"object","required":["slug","title","question","solution","key_facts"],"properties":{"slug":{"type":"string"},"title":{"type":"string"},"question":{"type":"string"},"solution":{"type":"string"},"key_facts":{"type":"array","items":{"type":"string"},"description":"真相を構成する事実の箇条書き。質問に Yes/No で答えるときの判断基準。"}}}}},"x-mcp-servers":{"free":{"url":"https://umigame.bunchan.workers.dev/mcp","transport":"streamable-http","tools":["list_puzzles","get_puzzle"]},"paid":{"url":"https://umigame.bunchan.workers.dev/mcp/paid","transport":"streamable-http","tools":["get_solution"],"priceUsdPerRequest":"0.01"}}}