Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Start a simulation run (spends compute)

start_simulation

Starts 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

NameRequiredDescriptionDefault
scenario_idYesThe scenario ID to run
poll_interval_secondsNoSeconds between consent polls (default 5)
consent_timeout_secondsNoWhen 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.4
    • changedInput schema / properties / consent_timeout_seconds / description
      Previous value: -"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 200). 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."New value: +"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."
  2. Changed2 schema fields changedv0.2.0
    • removedInput schema / properties / compute_backend
      Removed value: -{
      -  "default": "local",
      -  "description": "Compute backend: 'local' (Celery), 'ec2' (dedicated instance), or 'batch' (AWS Batch spot, cheapest). Default: 'local'",
      -  "type": "string"
      -}
    • changedInput schema / properties / consent_timeout_seconds / description
      Previous value: -"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 280). 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."New value: +"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 200). 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."
  3. First observedv0.2.1

TDQS

A4.7/5.0
Behavior5/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes far beyond the annotations (readOnly=false, destructive=false, idempotent=false) by disclosing that the call spends compute and money, requires a launch-level agent key (403 AGENT_LEVEL_INSUFFICIENT otherwise), returns 202/409, transitions through built → queued → computing → processing → complete, elides presigned s3 URLs with 6-hour capabilities, and surfaces enforced input-review and spend-consent failure modes with their outcome/error_codes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The most important constraint — wait for the go-ahead — is correctly front-loaded, but the prose is roughly 350 words of all-caps headers and dense run-on paragraphs. Some content repeats, e.g. 'Poll get_run_status to track progress' duplicates the earlier short-run polling instruction, and the 409 sentence interrupts the state-transition flow.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, and the description still covers everything an agent needs to call it correctly: key level, scenario status precondition, the three non-error/short-circuit outcomes (unreviewed_inputs, run_invalidated, consent_required), which price fields may be quoted, and how the user learns the run finished.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description adds real meaning by explaining the consequence of consent_timeout_seconds > 0 (the call itself polls and may answer `consented` with the run) and by tying poll_interval_seconds to the consent-poll behavior. It does not restate scenario_id, which the schema already documents.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb and resource plus a precondition: 'Start a flood simulation run for a built scenario.' It is immediately distinguishable from build_scenario (which creates the scenario) and get_run_status (which only tracks it).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to call and when not to: wait for the person's explicit go-ahead, never start on your own say-so, and do not re-call start_simulation after CONSENT_REQUIRED — poll get_run_status instead. It also routes the agent to get_run_status for short runs and to email/async notification for long ones.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.