Start a simulation run (spends compute)
start_simulationStarts a flood simulation run for a built scenario after explicit user approval, returning a queued run to poll for completion.
Instructions
Start a flood simulation run for a built scenario.
WAIT FOR THE GO-AHEAD: this spends compute, so before you call it give the person the ui_url and WAIT for their explicit go-ahead to start the run; reviewed inputs are not a go-ahead, and never start a run on your own say-so.
Needs a launch-level agent key (a run spends compute); a read or draft key gets 403 AGENT_LEVEL_INSUFFICIENT — the user creates a launch key on the site's Agent keys page (/agents/).
The scenario must be in 'built' status. Returns 202 with the new run. The run transitions through: built → queued → computing → processing → complete.
After starting, tell the person how they will hear about the end (say_to_user says it:
you cannot watch the run after your reply; Hydrata emails them when it completes or
fails). If the run is estimated at under about 10 minutes, keep following it with
get_run_status(wait_seconds=110) and report the completion yourself in the same turn.
Poll get_run_status to track progress. Returns 409
if the scenario is not in the correct state. The returned run record has
its presigned s3_*_url links elided (6-hour capabilities).
INPUT REVIEW (Hydrata enforces it): while an input you wrote is not reviewed by
the user, the run is not started - outcome unreviewed_inputs,
error_code UNREVIEWED_INPUTS, a ui_url to the scenario's review screen.
A run built from inputs other than the ones reviewed now answers
outcome run_invalidated (RUN_INVALIDATED): build_scenario with
rebuild=true, then start it again.
HOW THE RUN IS PAID: a started run's answer carries quote (what the
user is charged; 0.00 inside the daily free band), quote_list_price (the run's
real price, the same figure the map and billing show) and paid_by (free_band or
credit), and say_to_user states them. Say that figure, never another: the only
price you can quote is quote / quote_list_price (built run) or quote_estimate
(before a build, always called an estimate).
SPEND CONSENT (Hydrata enforces it; you cannot): a run whose quote does not
fit your agent key's monthly spend limit (default $0), or that Hydrata
cannot price, is NOT started. The result is then a normal (non-error)
answer with outcome consent_required, error_code CONSENT_REQUIRED,
quoted_cost_usd and consent_url: give the user the link and the price
(say_to_user). Only they can approve, in their browser. Then do NOT call
start_simulation again for this run: poll get_run_status(run_id) — the run
leaves built once they press the button. (With consent_timeout_seconds > 0
this call polls the run itself and answers outcome consented, with the
run, if they approve within that time.)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"scenario_id": "<scenario_id>"
},
"name": "start_simulation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scenario_id | Yes | The scenario ID to run | |
| poll_interval_seconds | No | Seconds between consent polls (default 5) | |
| consent_timeout_seconds | No | When the run needs the person's consent (CONSENT_REQUIRED), how long this call keeps polling the run for their click before it returns (ceiling 110). Default 0: return the consent link at once, so you can give it to them — they cannot press a button they have not been shown. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||