{"openapi":"3.1.0","info":{"title":"RPS Arena API","version":"0.1.0","description":"A fully local, playable Rock-Paper-Scissors arena with an AI opponent that adapts to the human's move history (Markov/frequency prediction) plus a session stats tracker. Stateless: the caller holds the game state between calls.\n\nEvery operation is read-only or compute-only. The same tools are available over MCP (streamable HTTP) at https://rpsarena.connectorbay.com/mcp.","contact":{"name":"Unify Dynamics LLC","email":"hr@unifydynamics.com","url":"https://connectorbay.com/rpsarena/docs"},"termsOfService":"https://connectorbay.com/rpsarena/terms"},"servers":[{"url":"https://rpsarena.connectorbay.com"}],"externalDocs":{"url":"https://connectorbay.com/rpsarena/docs"},"security":[{},{"bearer":[]}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"Optional. A Pro API key raises rate limits; no credentials are required."}},"schemas":{"Error":{"type":"object","properties":{"ok":{"const":false},"error":{"type":"object"}}}}},"paths":{"/v1/tools/new_game":{"post":{"operationId":"new_game","summary":"Start a new Rock-Paper-Scissors session. Use for \"let's play rock paper scissors\", \"best of 5\"","description":"Start a new Rock-Paper-Scissors session. Use for \"let's play rock paper scissors\", \"best of 5\"\n    (pass target_wins=3 for first-to-3).","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"target_wins":{"anyOf":[{"maximum":100,"minimum":1,"type":"integer"},{"type":"null"}],"default":null,"description":"Optional: end the session once either side reaches this many round wins. Omit for an endless session.","title":"Target Wins"}},"title":"new_gameArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/play_round":{"post":{"operationId":"play_round","summary":"Play one simultaneous round: submit your move and get both moves, the result, and the AI's","description":"Play one simultaneous round: submit your move and get both moves, the result, and the AI's\n    reasoning back in one call. The AI's move is chosen using only your PRIOR rounds' history -- never the\n    move you just submitted -- via adaptive pattern prediction, not randomness (once there's any history).","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"state":{"additionalProperties":true,"description":"Current game state, exactly as returned by a previous call.","title":"State","type":"object"},"move":{"description":"Your move: 'rock', 'paper', or 'scissors'.","title":"Move","type":"string"}},"required":["state","move"],"title":"play_roundArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/predict_next":{"post":{"operationId":"predict_next","summary":"Show what the AI currently predicts for the human's next move and why, WITHOUT playing a round --","description":"Show what the AI currently predicts for the human's next move and why, WITHOUT playing a round --\n    the same reasoning play_round uses, made visible.","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"state":{"additionalProperties":true,"description":"Current game state, exactly as returned by a previous call.","title":"State","type":"object"}},"required":["state"],"title":"predict_nextArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/get_stats":{"post":{"operationId":"get_stats","summary":"Report the running score, win rates, how often each AI strategy has fired, and the human's move","description":"Report the running score, win rates, how often each AI strategy has fired, and the human's move\n    frequency for this session.","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"state":{"additionalProperties":true,"description":"Current game state, exactly as returned by a previous call.","title":"State","type":"object"}},"required":["state"],"title":"get_statsArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/render_board":{"post":{"operationId":"render_board","summary":"Render the last several rounds and the running score as human-readable text.","description":"Render the last several rounds and the running score as human-readable text.","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{"state":{"additionalProperties":true,"description":"Current game state, exactly as returned by a previous call.","title":"State","type":"object"}},"required":["state"],"title":"render_boardArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}},"/v1/tools/rules_info":{"post":{"operationId":"rules_info","summary":"Explain the rules of Rock-Paper-Scissors and the AI's adaptive strategy.","description":"Explain the rules of Rock-Paper-Scissors and the AI's adaptive strategy.","tags":["tools"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"properties":{},"title":"rules_infoArguments","type":"object"}}}},"responses":{"200":{"description":"Tool result. `ok: true` on success; `ok: false` with a structured `error` (provider_unavailable, upstream_error, bad_input) when the tool could not answer.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true}}}},"422":{"description":"Arguments failed validation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limit exceeded (see Retry-After)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"x-read-only":true}}}}