API & MCP
Everything a person can do on Pinball Score Simulator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://pinquestscoresim.usefulweb.app/api/v1/calculate– run Pinball Score SimulatorGET https://pinquestscoresim.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Pinball Score Simulator
Plays up to 20 complete games of a Pinquest table — built-in or your own JSON — with the autoplay bot and the real physics and rules, then reports the score spread, game length, which missions and wizard modes were finished, the busiest switches and a heat map of where the ball spends its time. Useful to balance a table’s scoring.
| Field | Type | Default | Description |
|---|---|---|---|
table | select (witch-castle, zombie-night, pirate-treasure, space-station, dragon-lair, haunted-circus, deep-sea, jungle-temple, steampunk-airship, ninja-dojo, wild-west-heist, alien-invasion, dinosaur-islan | "witch-castle" | Table |
tableJson | textarea | — | Your own table (Pinquest table JSON, optional — replaces the table above). The format is described in the Pinquest table spec: elements (walls, flippers, bumpers, ramps …) in table units (20 × 40), lights and rules with missions. |
games | integer | 5 | Games |
balls | integer | 3 | Balls per game |
seed | integer | 1 | Random seed of the bot |
Example request
Five games on Zombie Night
curl -X POST https://pinquestscoresim.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"table":"zombie-night","tableJson":"","games":5,"balls":3,"seed":1}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://pinquestscoresim.usefulweb.app/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
pinquest_score_sim - Local stdio connector:
node src/mcp-stdio.ts --tool=pinquest-score-sim
{
"mcpServers": {
"pinquest-score-sim": { "type": "http", "url": "https://pinquestscoresim.usefulweb.app/mcp" }
}
}