{"uid":"cap_hwqw3I_nwyyJwRIp4fzb8","slug":"monte-carlo-simulation-with-configurable-distributions-1a0fd90e","name":"Monte Carlo Simulation with Configurable Distributions","description":"Monte Carlo simulation with configurable variable distributions and custom formula. Returns P10/P50/P90 percentiles, mean, histogram, and probability of exceeding a target threshold.","url":"https://financial-analyst-api-production-b81a.up.railway.app/monte-carlo/simulate","method":"POST","headers":{},"bodySchema":{"type":"object"},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"1.000000","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$1.000000/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"1","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_CEdV-HuSzq-PrlQFOrEJZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"1","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Runs a Monte Carlo simulation over user-defined variable distributions and a custom formula, returning P10/P50/P90 percentiles, mean, histogram, and probability of exceeding a target threshold.","exampleAgentPrompt":"Run a Monte Carlo simulation with 10,000 iterations on this formula: revenue * margin - fixed_costs, where revenue is normally distributed with mean $500,000 and std $80,000, margin is uniform between 0.25 and 0.45, and fixed_costs is fixed at $120,000 — give me the P10, P50, P90 outcomes and the probability of profit exceeding $50,000.","exampleUseCases":null,"resultDescription":"Returns a statistical summary of simulated outcomes including P10, P50, and P90 percentiles, the mean value, a histogram of the output distribution, and the probability that the result exceeds a user-specified target threshold.","failureModes":["Invalid or unparseable custom formula returns a 400 error","Distribution parameters out of valid range (e.g. negative std dev) return a 422 error","Unsupported distribution type returns a 400 error","Missing required fields return a 422 validation error","Payment not received or x402 authorization fails returns a 402 error","Very high iteration counts may time out"],"whenToPreferThis":"Use this endpoint when you need to quantify uncertainty across a custom financial or business formula with configurable input variable distributions, and want percentile-based risk summaries (P10/P50/P90) plus a probability-of-exceeding-threshold metric. Prefer this over deterministic models when inputs are uncertain and stochastic modeling is required.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:31:34.437Z","isFirstParty":false}