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 CalculatorGET https://risingkingpinodds.usefulweb.app/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
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.
| Field | Type | Default | Description |
|---|---|---|---|
crime | select (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 |
crewSize | integer | 2 | Crew size (people taking part) |
rank | integer | 3 | Rank of the boss (0 Nobody … 7 Kingpin). 0 Nobody, 1 Street Rat, 2 Hustler, 3 Crook, 4 Enforcer, 5 Racketeer, 6 Underboss, 7 Kingpin |
heat | integer | 10 | Heat (wanted level, 0–100) |
intelligence | integer | 55 | Intelligence of each crew member |
brutality | integer | 55 | Brutality |
strength | integer | 50 | Strength |
stealth | integer | 35 | Stealth |
escape | integer | 30 | Escape |
energy | integer | 35 | Energy of each crew member |
weapon | select (fists, knife, bat, pistol, revolver, shotgun, smg, rifle, grenades) | "pistol" | Weapon of each crew member |
hasCar | boolean | true | Getaway car (helps fleeing) |
hideout | boolean | true | Hideout rented (needed for the vault) |
cash | integer | 5000 | Cash on hand (for a bribe) |
event | select (none, festival, blackout, vip, election, mailtrain) | "none" | City event this week |
tip | boolean | false | Hot tip (+10 %) |
immunity | boolean | false | Chief of police bribed |
car | select (rustbucket, hatchback, sedan, van, coupe, muscle, limo, sports) | "sedan" | Car to steal (only “Steal a car”) |
carFrom | select (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" }
}
}