API & MCP

Everything a person can do on Rising Kingpin Heist Odds Calculator, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

  • POST https://risingkingpinodds.usefulweb.app/api/v1/calculate – run Rising Kingpin Heist Odds Calculator
  • GET https://risingkingpinodds.usefulweb.app/api/v1/tool – inputs, output schema, examples
  • OpenAPI 3.1: /openapi.json · /openapi.yaml
  • Errors: application/problem+json; 422 includes per-field errors.

Rising Kingpin Heist Odds Calculator

Computes the odds of a Rising Kingpin crime — from pickpocketing to the mail-train heist — for a crew with given stats, weapon, rank and heat: success chance, loot range and expected value, the chance that the police show up or the guards fight back, the win chance of that fight from 200 seeded simulations, the arrest risk and the sentence. The same function the game’s odds card and computer players use.

Inputs of Rising Kingpin Heist Odds Calculator
FieldTypeDefaultDescription
crimeselect (pickpocket-platform, pickpocket-train, pickpocket-park, pickpocket-pier, mug, beg, rob-shop, rob-desk, burgle-villa, steal-car, burgle-store, holdup, steal-containers, crack-vault, armored-tru"holdup"Crime
crewSizeinteger2Crew size (people taking part)
rankinteger3Rank of the boss (0 Nobody … 7 Kingpin). 0 Nobody, 1 Street Rat, 2 Hustler, 3 Crook, 4 Enforcer, 5 Racketeer, 6 Underboss, 7 Kingpin
heatinteger10Heat (wanted level, 0–100)
intelligenceinteger55Intelligence of each crew member
brutalityinteger55Brutality
strengthinteger50Strength
stealthinteger35Stealth
escapeinteger30Escape
energyinteger35Energy of each crew member
weaponselect (fists, knife, bat, pistol, revolver, shotgun, smg, rifle, grenades)"pistol"Weapon of each crew member
hasCarbooleantrueGetaway car (helps fleeing)
hideoutbooleantrueHideout rented (needed for the vault)
cashinteger5000Cash on hand (for a bribe)
eventselect (none, festival, blackout, vip, election, mailtrain)"none"City event this week
tipbooleanfalseHot tip (+10 %)
immunitybooleanfalseChief of police bribed
carselect (rustbucket, hatchback, sedan, van, coupe, muscle, limo, sports)"sedan"Car to steal (only “Steal a car”)
carFromselect (cardealer, villa)"cardealer"Steal it from (only “Steal a car”)

Example request

Bank hold-up with two armed crooks

curl -X POST https://risingkingpinodds.usefulweb.app/api/v1/calculate -H 'content-type: application/json' -d '{"crime":"holdup","crewSize":2,"rank":3,"weapon":"pistol"}'

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://risingkingpinodds.usefulweb.app/mcp – protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake).
  • Tools: rising_kingpin_odds
  • Local stdio connector: node src/mcp-stdio.ts --tool=rising-kingpin-odds
{
  "mcpServers": {
    "rising-kingpin-odds": { "type": "http", "url": "https://risingkingpinodds.usefulweb.app/mcp" }
  }
}