API & MCP

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

HTTP API

Decision Simulator

Give each choice a worst, most likely and best outcome (money, hours, points…). The simulator computes expected values with PERT or triangular weights (or your own probabilities), then applies maximin, maximax, minimax regret and Laplace rules and explains which rule picks which choice.

Inputs of Decision Simulator
FieldTypeDefaultDescription
goalselect (maximize, minimize)"maximize"Higher values are
methodselect (pert, triangular, custom)"pert"Expected value weights
unittext"EUR"Unit of the values
choices (required)table—Choices. Worst/likely/best outcome per choice. Probabilities (%) are only used with “My own probabilities” and are normalised to sum to 100.

Example request

Job offers: first-year net gain

curl -X POST https://decisionsimulator.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"goal":"maximize","method":"pert","unit":"EUR","choices":[{"name":"Stay in current job","worst":48000,"likely":50000,"best":52000},{"name":"Startup offer","worst":30000,"likely":58000,"best":90000},{"name":"Corporate offer","worst":50000,"likely":55000,"best":60000}]}'

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": {
    "decision-simulator": { "type": "http", "url": "https://decisionsimulator.usefulweb.site/mcp" }
  }
}