Monte Carlo job (metered)
run_monte_carlo_jobStart a Monte Carlo tolerance analysis as a JOB, for a run too long for one call — thousands of trials on a large design. The same engine, seed stream and statistics as simulate_monte_carlo (the same seed gives the same numbers), but the run is cut into slices of a few seconds (3 s of trials, up to about 5 s a call): the first runs inside this call, and every get_job call runs one more, so THE JOB ADVANCES ONLY WHILE YOU POLL IT. Give a design document, a templateId or a saved design's designId, plus options (trials, seed, ambientTemperature). If the run fits in the first slice the result comes back at once (job.status "done" with result); otherwise next says what to do — call get_job with next.jobId, and next.estimatedPollsRemaining is measured from the slice that just ran, so tell the engineer that figure before a long poll loop. Use simulate_monte_carlo when nodes × trials is under about 50,000 — it answers in one call; use this above that, or whenever simulate_monte_carlo timed out. Charges ONE Monte Carlo run against the account's monthly quota at creation, whatever the length; two active jobs per account (a third is refused TOO_MANY_JOBS — poll or cancel one first); the result is kept 24 h. Trials are clamped to the plan's cap and to the job's size budget; meta.clamped and meta.clampedBy say when. The result is the digest simulate_monte_carlo returns — summary, counts, seed and per-node nodeStats — never a per-trial array. Needs a Pro or Team plan: a Free account is refused with PLAN_REQUIRED.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| design | No | The design document (schema v1, SI base units). Give this, `templateId` or `designId`. | |
| options | No | Monte Carlo settings, the same as simulate_monte_carlo's. | |
| designId | No | A saved design's id from create_design or list_designs. Give this, `design` or `templateId`. | |
| templateId | No | A shipped template id from list_templates. Give this, `design` or `designId`. |