API & MCP

Everything a person can do on Wheel Spinner with Weights, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Wheel Spinner with Weights

Spin a decision wheel where each segment can have its own weight (3 × pizza, 1 × sushi). The odds are exactly weight ÷ total, the organiser can publish a SHA-256 fingerprint before the spin, and the result replays identically here.

Inputs of Wheel Spinner with Weights
FieldTypeDefaultDescription
segments (required)table—Segments
spinsinteger1Spins
removeWinnersbooleantrueRemove each winner before the next spin
secrettext—Secret (revealed after the draw). The organiser’s random secret. Its fingerprint is shown before the draw; empty = derived from the entries (predictable, only for demos).
audienceWordtext—Audience word (optional). A word someone calls out after the fingerprint is shown. It changes the draw, so the organiser cannot steer it.

Example request

Dinner wheel: pizza three times as likely as sushi

curl -X POST https://fielddaywheelspinner.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"segments":[{"label":"Pizza","weight":3},{"label":"Sushi","weight":1},{"label":"Tacos","weight":2},{"label":"Curry","weight":2}],"spins":1,"secret":"c41d0e9b7a2f","audienceWord":"hungry"}'

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)

{
  "mcpServers": {
    "fieldday-wheel-spinner": { "type": "http", "url": "https://fielddaywheelspinner.usefulweb.app/mcp" }
  }
}