Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

hydrata-mcp-server

License: MIT

MCP-Server für Hydrata Cloud – führe ANUGA Überflutungssimulationen aus, verfolge den Fortschritt und rufe Ergebnisse über das Model Context Protocol ab.

Connect

Füge zu deiner .mcp.json hinzu (Claude Code, Cursor, Windsurf, etc.):

{
  "mcpServers": {
    "hydrata": {
      "type": "streamable-http",
      "url": "https://hydrata.com/mcp/"
    }
  }
}

Ein Hydrata Cloud Konto ist erforderlich. Kontaktiere uns unter hydrata.com, um loszulegen.

Related MCP server: SWATGenX MCP Server

Tools

Tool

Beschreibung

list_projects

ANUGA-Simulationsprojekte auflisten (paginiert)

get_project

Projektdetails inklusive Szenarien abrufen

get_scenario

Szenariostatus und letzten Lauf abrufen

start_simulation

Eine Überflutungssimulation starten (lokal/EC2/Batch-Backends)

get_run_status

Leichter Statusabruf (<50ms)

get_run

Vollständige Laufinformationen mit Zeitangaben und Ergebnissen

cancel_run

Eine laufende Simulation abbrechen

retry_run

Eine fehlgeschlagene Simulation wiederholen

list_runs

Läufe über ein Projekt hinweg auflisten (mit Statusfilter)

Typischer Arbeitsablauf

list_projects → get_scenario → start_simulation → poll get_run_status → get_run

Was ist Hydrata?

Hydrata ist eine georäumliche hydraulische Modellierungsplattform. Sie führt ANUGA Überflutungssimulationen in der Cloud aus – lade Geländedaten hoch, konfiguriere Szenarien, führe Simulationen auf verwalteter Recheninfrastruktur (Celery, EC2 oder AWS Batch) aus und visualisiere Ergebnisse auf interaktiven Karten.

ANUGA ist ein Open-Source-hydrodynamisches Modell, entwickelt von Geoscience Australia und der Australian National University. Es löst die Flachwassergleichungen mit finiten Volumen auf einem unstrukturierten Dreiecksnetz.

Entwicklung

git clone https://github.com/Hydrata/hydrata-mcp-server.git
cd hydrata-mcp-server
pip install -e ".[dev]"
pytest -v

Beiträge willkommen – siehe Issues.

Lizenz

MIT

Available Tools

51 tools
add_observationsAdd flood observations to a layerAInspect

Add flood observations (Flood mark, Timed level, Gauge record, Dry point) to a layer.

POSTs each observation to /projects//flood-observations//observations/ in order. The API validates every field: a row it refuses (400) is listed in rejected with its problems and the rest still land; a refusal that is not about the row (403 not an Editor, 404, 409) stops the batch and is reported in stopped, with not_sent_count. Stages are on the LAYER's vertical datum. Photos are not part of an observation: attach a link with add_observation_photo_link.

Inputs: layer_id (required), project_id (required), observations (required), srid, +1 more. Returns: object

adopt_catchmentsAdopt a confirmed line's catchments as a layerAInspect

Adopt a confirmed line's catchments as a GeoNode layer of the project: a snapshot to style and share.

Refused unless a person has confirmed the line (ask them to, in the browser). When the line already has an adopted layer, the call is refused with that layer and its 'the line has changed since' mark: ask the user, and call again with replace=true only if they say yes. The layer you adopt is marked as made by an agent and unreviewed. The same mark is on get_delineation's adopted_layer. Give the user the link (ui_url): the layer is on the map in Adopted catchments.

Inputs: project_id (required), delineation_id (required), replace, sources, +1 more. Returns: object

attach_input_layerAttach an uploaded layer as a project inputAInspect

Attach a GeoJSON you uploaded to GeoNode as the project's boundary, friction, inflow, rainfall, building, mesh_region or culvert layer.

Only for a client that has a shell and an agent key. A connector agent with no shell (claude.ai) writes the layer inline with write_input_layer, or, for a file above the inline cap, gives the user the request_input_upload link instead.

The agent moves the bytes: first upload the GeoJSON yourself, with the same agent key, to GeoNode's upload endpoint at the site origin:

curl -sS -H 'Authorization: Bearer hk_...' -F "base_file=@/path/rainfall.geojson" https://<site>/api/v2/uploads/upload/

→ JSON with execution_id. Then call this tool with it. The tool polls GET /api/v2/resource-service/execution-status/<execution_id> (bounded by timeout_seconds; statuses ready → running → finished | failed), reads the new dataset's pk, and PATCHes it onto the project's DEFAULT row of that kind ('Boundary 01' … 'MeshRegion 01' — the six rows the terrain import seeds ~30 s after get_terrain reports ready; if the list is still empty the tool says so: run finalize_terrain_upload / wait for get_terrain first).

kind culvert (Hydraulic Structures; one two-point line per culvert, Inlet first, then Outlet): no culvert row is seeded by the terrain import, so a project with none answers no_default_row: write the culverts with write_input_layer, which makes the row. Hydrata converts every attached layer into the project's grid and the kind's table shape (single geometries, the_geom, the kind's own columns); attribute names are matched as they are, nothing is renamed for you (see write_input_layer). The culvert engine conveys flow through each culvert in a run (GPU lanes and localhost; the multi-core CPU lanes refuse a culvert scenario).

outcome is exactly one of: attached (row_id, gn_layer, dataset_pk and dataset_alternate — the WFS typename — of the CONVERTED layer the row now uses, source_dataset_pk — the dataset you uploaded — and every row id seen); timed_out (still importing: call again with the same arguments, except pass retry_execution_id as execution_id when the result carries one); upload_failed (the execution record, incl. its log, is returned verbatim — fix the file and upload again); no_default_row; no_dataset (finished but no resource was recorded). The PATCH is refused with a 400 if the dataset is not owned by you.

Every layer attached here is marked as written by your agent key and is UNREVIEWED until the user reviews it in their browser (the build refuses UNREVIEWED_INPUTS until then). INFLOWS: never invent an inflow location — no coordinates you made up, guessed or "placed plausibly". Import the location from the study's own files, or give the user the ui_url to draw it in the map; say in say_to_user that the inflow is unreviewed and where they check or draw it.

Refused, with no request made: kind breakline — Hydrata has no way to create a breakline layer, so attaching one would only pretend. Also refused without a request: an execution_id that is not the UUID the upload returned. One GeoJSON per kind: all of a kind's features travel in that one file. A rainfall polygon names its gauge in its data property — create that gauge with create_time_series under the exact same name.

Inputs: kind (required), project_id (required), execution_id (required), timeout_seconds, +1 more. Returns: object

build_scenarioBuild a scenario's mesh and packageAInspect

Build a scenario's package (mesh + inputs) after showing what it will cost, and poll until built.

Needs a launch-level agent key (a build can start AWS Batch); a read or draft key gets 403 AGENT_LEVEL_INSUFFICIENT — the user creates a launch key on the site's Agent keys page (/agents/).

Order of operations, so the number is shown before anything is spent:

  1. GET the scenario detail. A record with no boundary/computed_status keys is a non-member's read of a public project → refused: a build needs the EDITOR role.

  2. Re-call checks on latest_run (a re-POST is NOT deduplicated after built/complete — it would dispatch a duplicate build): no run → proceed; run created/building → resume polling, no POST; run built/queued/computing/processing/complete with latest_run_is_valid not false → return that state, no POST unless rebuild=true; run error/cancelled, or latest_run_is_valid false (the scenario was edited since the build) → proceed.

  3. Spend gates, each a refusal with outcome: "refused" and no POST: the scenario has no boundary or its boundary row has no features (the server would admit the build and fail it in make_package); the estimate is None (resolution is 0/unset); the estimate is above 100,000 triangles and confirm is not true — the refusal carries mesh_triangle_count_estimate and quote_estimate (the ONE pre-build price, labelled an estimate) and a say_to_user asking the person's yes: relay the number and the price and get the user's yes before confirm=true. confirm=true is a rule for you, not something the user does; never pass it on your own say-so. An estimate of 0 over a boundary WITH features is buildable and is reported, not refused.

  4. POST /projects//scenarios//build/. Every 4xx comes back verbatim as a normal result with http_status: 422 MESH_TOO_LARGE (error_code, estimate, ceiling, detail — the server's hard ceiling; coarsen resolution or shrink the boundary; no run was created), 409 COMPUTE_TARGET_UNAVAILABLE, 400/403/404. 409 UNREVIEWED_INPUTS (inputs you wrote that the user has not reviewed) answers outcome unreviewed_inputs with the unreviewed_inputs list and a ui_url to the scenario's review screen: give the user the link, poll get_scenario until its unreviewed_inputs is empty, then build again. A 409 WITHOUT an error_code is the dedup body ({status, run_id, detail}: a build is already in flight) — the tool resumes polling that run.

  5. On 202 poll the detail's computed_status (created → building → built | error), bounded by timeout_seconds.

Returns a COMPACT state, never the whole detail: outcome (built, error, cancelled, complete/queued/computing/processing for a run past the build, timed_out, or refused), computed_status, mesh_triangle_count_estimate, posted, the POST's build body + http_status when one was made, and the latest run's run_id, run_status, error_message, user_message, mesh_triangle_count. timed_out is normal (make_package re-downloads the terrain from S3 every build; minutes): call again with the same arguments — step 2 resumes polling the same run, it never POSTs twice — or cancel_run(run_id) if the run is stuck in created with no worker. error is terminal: error_message says why (fix the inputs, then call again — an errored latest run is rebuilt).

Units: resolution — on the SCENARIO and on every MeshRegion FEATURE — is a LENGTH in metres; ANUGA maximum_triangle_area = resolution²/2 (FloatField default 100, not nullable; 0 makes the estimate None), and the estimate prices both the same way. The smallest value becomes the raster cell size. A MeshRegion feature must carry resolution_units = m (features drawn in the map are marked automatically); an unmarked one makes the build answer 422 MESH_REGION_UNITS_UNMARKED, naming the conversion an operator runs.

Inputs: project_id (required), scenario_id (required), confirm, rebuild, +2 more. Returns: object

cancel_runCancel a runA
DestructiveIdempotent
Inspect

Cancel an in-flight simulation run.

Needs a launch-level agent key; a read or draft key gets 403 AGENT_LEVEL_INSUFFICIENT.

Works on runs in built, queued, or computing status. Cleans up compute resources (terminates EC2 instance, Celery task, or Batch job).

Returns 409 if the run is already in a terminal state (complete, cancelled, or error).

Inputs: run_id (required). Returns: object

clone_scenarioCopy a scenario (no run, no build)AInspect

Copy a scenario into a new sibling, for a variant. No run is copied and nothing is built.

The copy points at the SAME input rows as the original. Give the variant its own input row by writing one with write_input_layer (target = a title) and passing the new row id in overrides; the original scenario's inputs stay as they were. The name and overrides go in the one copy call and Hydrata checks them first: a refused name or id makes no copy.

Inputs: project_id (required), scenario_id (required), name, overrides. Returns: object

convert_terrain_datumShift a terrain from ellipsoid to EGM2008 heightsAInspect

Make a copy of a terrain shifted from ellipsoid heights to EGM2008 (sea-level) heights.

Use it only when the user says the terrain's heights are on the ellipsoid (raw GPS or satellite heights). The original terrain is kept unchanged; the copy is a new terrain the scenarios can use. For a GeoTIFF you are still uploading, pass convert_to_egm2008=True to finalize_terrain_upload instead. Hydrata refuses a terrain on AHD or already on EGM2008 (it would be shifted twice): that comes back as outcome: refused with Hydrata's words. A terrain converted before returns the existing copy (outcome: already_converted). The copy takes minutes: wait on it with get_terrain(project_id, terrain_id=).

Inputs: project_id (required), terrain_id (required). Returns: object

create_observation_layerCreate a flood observation layerAInspect

Create a flood observation layer in a project and wait for its map layer.

A flood observation layer holds real flood evidence (Flood marks, Timed levels, Gauge records, Dry points) that every historic run is compared with (Compare with observations). It is project-level: it is never a scenario input. POSTs /projects//flood-observations/, then polls the layer until its GeoServer layer exists (ready), usually a few seconds; until then add_observations refuses. On timed_out, call list_observations later.

Inputs: title (required), project_id (required), datum_offset_m, vertical_datum, +2 more. Returns: object

create_projectCreate a projectAInspect

Create a new ANUGA project. Returns the project record including its id, base_map and ui_url.

The caller's own account becomes the owner. projection is the projected CRS every scenario in the project is meshed and run in: a WGS84 UTM, GDA94 MGA or GDA2020 MGA code (any other grid is refused). Use the person's MGA zone when their own survey, DEM or drawings are in it, otherwise the site's WGS84 UTM zone; ask when it is unclear. The project's map is created alongside it; ui_url opens it — give it to the user. A project you create is unpublished (is_published: false): only its owner and members can see it until the user presses Publish in its Sharing panel in the browser — you cannot publish it. Next step for a new project: presign_terrain_upload.

Inputs: name (required), projection (required). Returns: object

create_scenarioCreate a draft scenarioAInspect

Create a DRAFT scenario (no build, no run) and report its mesh-triangle estimate.

ASK FIRST: before you write any input, ask the person which approach they want (rain-on-grid, or an inflow hydrograph at a place they name), whether by 'hydrograph' they mean an inflow that drives the model or the flow they want out of the results, and for their design rainfall and losses; do not choose or source these yourself unless they ask you to.

POSTs /projects//scenarios/ with the write fields, then GETs the scenario detail — the create response carries NO estimate; the detail's mesh_triangle_count_estimate (+ _breakdown) does. Returns a compact record (the same fields get_scenario answers with): id, name, the FK ids as stored, resolution, duration, computed_status (created = no run yet), the estimate and its breakdown, the price (quote_estimate: the ONE pre-build price in USD, labelled an estimate), inflow_anchor_mismatch, and http_status. Next step: build_scenario (which asks for confirm=true above 100,000 triangles). Nothing is meshed or queued here.

Units: resolution — on the SCENARIO and on every MeshRegion FEATURE — is a LENGTH in metres; ANUGA maximum_triangle_area = resolution²/2 (FloatField default 100, not nullable; 0 makes the estimate None), and the estimate prices both the same way. The smallest value becomes the raster cell size. A MeshRegion feature must carry resolution_units = m (features drawn in the map are marked automatically); an unmarked one makes the build answer 422 MESH_REGION_UNITS_UNMARKED, naming the conversion an operator runs.

The server does NOT validate that the FK ids belong to project_id — pass the row ids attach_input_layer / get_terrain returned for THIS project. Every FK is nullable at create time, and the build fails later on a scenario with no terrain, or with neither an inflow nor a rainfall. A boundary whose row has no features (the default 'Boundary 01' before attach_input_layer) is accepted here and refused by build_scenario. The estimate is None when resolution is 0; an estimate of 0 with a real boundary is a very coarse mesh, not an error.

Inputs: name (required), duration (required), project_id (required), resolution (required), +11 more. Returns: object

create_terrain_from_sourceFetch terrain from a Hydrata sourceAInspect

Have Hydrata fetch a terrain from one of its own sources, then wait for the import (like get_terrain).

Never fetch terrain from outside Hydrata where a Hydrata source covers the site; if none does, the person uploads their own DEM in the project map.

Use a key from list_terrain_sources. Hydrata fetches, reprojects and publishes the DEM and seeds the project's default input rows; the DEM's datum is stamped by the source. The result is get_terrain's envelope (outcome ready | error | timed_out, terrain, polls) plus terrain_source: the source's key, name, resolution_m, licence, credit and vertical_datum. timed_out is normal for a large area: keep calling get_terrain(project_id, terrain_id). A refusal (the box is over the source's size cap, the source has no data there, an unknown source) comes back as outcome: refused with the reason in say_to_user and nothing is created.

Inputs: bbox (required), source (required), project_id (required), levels_datum (required), +3 more. Returns: object

create_time_seriesCreate a time seriesAInspect

Create a time series (rain gauge, hydrograph, tide/stage) in a project.

ASK FIRST: before you write any input, ask the person which approach they want (rain-on-grid, or an inflow hydrograph at a place they name), whether by 'hydrograph' they mean an inflow that drives the model or the flow they want out of the results, and for their design rainfall and losses; do not choose or source these yourself unless they ask you to.

POSTs /projects//time-series/ with series_type and units as top-level fields. series_type is checked against the four choices and data against the {"rowData": [{timestamp, value}, ...]} shape before any request is made — the API answers 500 (not 400) to a malformed row. Returns a compact record — id, name, series_type, units, timezone, row_count, http_status — not the echoed rows; fetch the full row with the REST API (GET /projects//time-series//) if you need to round-trip it. A rainfall polygon references its gauge by the series NAME, so create the gauges with the exact names the rainfall GeoJSON's features carry.

The units must match the series_type (see units), and a hydrograph or hyetograph must END at 0 unless hold_last_value is true. The result carries Hydrata's own summary of the series (peak, volume or depth, first and last stamp, trailing value): repeat those numbers to the user (say_to_user does) rather than computing your own.

Inputs: data (required), name (required), project_id (required), units, +9 more. Returns: object

delete_observationDelete one flood observationA
DestructiveIdempotent
Inspect

Delete one flood observation and its photos (cannot be undone).

DELETEs /projects//flood-observations//observations//; a missing fid is an error (404), not a silent success.

Inputs: fid (required), layer_id (required), project_id (required). Returns: object

delete_time_seriesDelete a time seriesA
DestructiveIdempotent
Inspect

Delete a time series (cannot be undone). Needs the Manager role on the project.

A series still used by a feature of an inflow, rainfall or boundary layer is refused (409) and the refusal names the layer and the feature that use it: detach it there (or point that feature at another series), then call again. A series that no feature uses is deleted.

Inputs: series_id (required), project_id (required). Returns: object

delineate_catchmentsMake catchments from a delineation line, or change its settingsAInspect

Make catchments from a delineation line on the project's terrain, or change the settings of your own.

A NEW delineation starts a job and returns AT ONCE with delineation_id, ui_url (the map on this line's Catchments pane) and the estimate (cells, resolution, where it runs, expected time range); follow it with get_delineation. It never waits on a run. Nothing is confirmed: what you make is unreviewed until a person confirms it in the browser. Only a person ticks a diversion or confirms; no tool does, and there is no tool that deletes a delineation or moves its line.

The line has an upstream side for each section (side): Hydrata adopts the side most ground arrives from unless you pass one, and ground on a section's downstream side is left out (one sentence says how much). Every reply with a result names the side used per section; relay it.

With delineation_id: changing the name, start chainage, either area or the side regroups the stored result without repeating the terrain step (no new job). A person's diversion ticks survive the change: they are re-applied and marked check again until a person checks them; say so. A delineation a person made or confirmed is refused in words. mode='full' starts High resolution: when the line's result is a fast screen (low resolution), Hydrata makes a COPY of the line, ' (high res)', and runs there, so the two can be compared; the result then names the copy's delineation_id (created_copy true): read THAT one with get_delineation.

Inputs: project_id (required), line, mode, name, +9 more. Returns: object

describe_input_kindsDescribe the input layer formatsA
Read-onlyIdempotent
Inspect

Say what each input layer kind looks like: geometry, properties, allowed values, a minimal example.

Read this BEFORE you build GeoJSON for write_input_layer or an upload. Per kind it returns the geometry (LineString or Polygon), every property the layer reads with its type, whether it is required and its allowed values or min/max, the required_one_of groups (an inflow needs data_constant or data_timeseries_id), notes in plain words and a minimal example FeatureCollection. It is generated by Hydrata from the same definitions the build reads, so it is never out of date: do not read source code or guess column names.

Inputs: kind. Returns: object

finalize_terrain_uploadRegister an uploaded terrainAInspect

Step 2 of a terrain import: register the PUT GeoTIFF as a Terrain and start the import.

Needs a launch-level agent key (the import can start AWS Batch); a read or draft key gets 403 AGENT_LEVEL_INSUFFICIENT — the user creates a launch key on the site's Agent keys page (/agents/).

Call this only after the presigned PUT returned 200. Creates the Terrain row (status creating) and queues the import chain — reproject to UTM, publish the layer + hillshade, style — which also seeds the project's six default boundary, friction, inflow, rainfall, building and mesh-region rows. Returns 202 with the terrain record; keep its id for get_terrain. A 400 UPLOAD_NOT_FOUND means no object is at staging_key: the PUT did not land (check its status code and Content-Type) — do not retry finalize until it has.

Heights the user says are on the ellipsoid (raw GPS or satellite heights): pass convert_to_egm2008=True so a sea-level (EGM2008) copy is made after the import. For a terrain already in Hydrata, use convert_terrain_datum instead.

Inputs: project_id (required), staging_key (required), title, process_id, +3 more. Returns: object

get_delineationWait for and read a delineationA
Read-onlyIdempotent
Inspect

Read a delineation and wait for its job, the way get_terrain_merge waits for a merge.

Returns outcome (ready | error | timed_out), phase (the job's step, then ready or error) and, once there is a result: the catchment names, each chainage as CH k+mmm with distance_m beside it, areas (saying when one is a lower bound), arrives_ha, the arrival point, diversion suggestions (information only), the diversions a person applied and any marked check again, every warning as its sentence, which neighbours share water, how it was made and whether a person confirmed it, the working and terrain resolution and the tally. timed_out is normal: call again; it never starts a second job. resolution says plainly whether the result is a 'fast screen (low resolution)' (a first look: say so, and offer High resolution before the person relies on it; its profile is not available) or 'high resolution'; shown_result carries the API's fields (mode quick or full, fast_screen, label). A High resolution copy of a line says which line it came from (derived_from). full_run reports a High resolution run's progress, elapsed time, expected finish, where it runs and whether it was handed to Batch. drainage_analysis says whether the terrain's drainage analysis is being prepared (the run waits for it) or out of date (the next run works it out again), with the sentence to relay. Read-only.

Inputs: project_id (required), delineation_id (required), timeout_seconds, wait_for_full_run, +1 more. Returns: object

get_flow_hydrographFlow across a line for a runA
Read-onlyIdempotent
Inspect

Flow (Q) across a drawn line, at every frame of a completed run.

Integrates depth times velocity normal to the line from the run's playback store: returns time_s and q_m3s per frame, peak_m3s and peak_time_s, max_positive_m3s and max_negative_m3s (the largest flow each way, so a negative peak is not read as the flood peak), volume_m3, sign_convention, frame_spacing_s, warnings (the peak is resolved to the nearest frame, so the true peak may fall between frames) and a mass_balance (rain and inflow in, left in the model; outflow is by difference, open-boundary flux is not integrated). When more water is left in the model than rain and inflow put in, warnings says so: it usually came in through an open boundary; relay it. Relay say_to_user. This is the model's flow, not a gauge reading.

A run with no playback store answers outcome no_playback_store; a bad line answers bad_line with the reason.

Inputs: line (required), run_id (required). Returns: object

get_observation_comparisonCompare a run with flood observationsA
Read-onlyIdempotent
Inspect

Compare a run with the project's flood observations: how well does it match them?

Returns headline (the figures to tell the user, e.g. "47 observations · 31 within ±0.30 m (66%) · bias -0.12 m · RMSE 0.35 m · 1 excluded"), headline_numbers (the same as numbers), tolerance_m (used) and default_tolerance_m (the project's saved one), statistics (the API's summary: n, within, within_pct, bias_m, rmse_m, weighted_rmse_m, mae_m, max_abs_m, excluded, not_scored by reason, gauges), gauges (Gauge records: peak error, timing error, NSE), datum_checks (warn the user only when warning is true: both datums known and different; not_recorded = the terrain has no recorded datum, stated in note, not a warning) and one row per observation: observed_m / modelled_m / residual_m (modelled - observed, + = model high), within, scored / not_scored_reason, match (outside_run_window = not this flood), excluded + exclusion {reason, by, at}. sampling counts how the modelled values were read: centroid (the peak of the mesh triangle the observation sits in), nearest_node_fallback (an older run without that peak: the nearest mesh node's value, tell the user) and nearest_node (just outside the mesh); each row's sample.method says which. There is no pass or fail: report the figures. A run that is not historic has none (has_comparison false) — do not retry it.

Inputs: run_id (required), fid, layer_id, tolerance, +1 more. Returns: object

get_projectGet a project and its map linkA
Read-onlyIdempotent
Inspect

Get one ANUGA project: id, name, projection, visibility, your role, its base map — and the link to it.

Returns the project record (id, name, projection (EPSG code), simple_view_config, visibility, owner_username, my_role, base_map) plus ui_url: the link that opens the project's map, for the user (<site>/catalogue/#/map/<base_map>; null while a new project's map is still being created). Scenarios are NOT listed here — use get_scenario with a scenario id.

Inputs: project_id (required). Returns: object

get_runGet a run's full recordA
Read-onlyIdempotent
Inspect

Get full details of a simulation run including timing and results.

Returns the complete run record: status, progress, timing (start/end timestamps, duration), compute details (backend, instance type, cost), mesh info, error messages, and result log. Use get_run_status for lightweight polling; use this for final results.

The presigned s3_*_url download links are ELIDED — each is a 6-hour capability and no tool relays one. The results stay viewable through the gn_layer_* entries (published WMS layers on the project's map).

sww reports the run's full time series (the raw ANUGA output): state (available, not_kept, archived, restoring or unreadable), size_bytes, and a ui_url to the Results panel where the person downloads it (or requests a restore of an archived one and is emailed when it is ready). The download link itself is never returned. unreadable means the storage refused the read: there is no download to offer, so tell the person and ask them to ask the operator; sww.error_code and sww.detail carry the reason in words.

CULVERTS (a complete run): culverts lists the flow the model moved THROUGH each culvert's barrel: name, feature_id, peak_q_m3s and peak_q_time_s (seconds into the run), volume_m3 (net volume through the barrel; null when the run kept no series), warnings (e.g. a mesh too coarse at the culvert), has_timeseries. culvert_sign_convention gives the sign once: positive flow runs from the culvert's Inlet to its Outlet. Relay culverts_note. This is the culvert's flow; get_flow_hydrograph on a line drawn along a culvert measures the flow ACROSS that line, a different number, so quote culverts for a culvert. culverts: [] means the run modelled no culvert (say so; never invent a number). When the culvert results cannot be read, culverts is absent and culverts_note says so; the rest of the run record is still good.

STABILITY (a complete run): stability is how the model behaved, graded from the run's own records: class (boundary_fed, propagating, localised_persistent, local_transient, clip_artefact, or null), onset_sim_s (seconds into the run), location (lon/lat of the spot, when the model recorded one), severity (warning, info or null) and message. warnings holds BOUNDARY_FED_VOLUME_GAIN when water came in through an open boundary after the rain and inflows ended: its detail names the boundary and the volume, its hint the fix. When there is something to say, say_to_user says it: RELAY it before you report any depth, flow or volume from the run. The run stays complete either way. The speed classes are provisional (information only); a clip_artefact run has nothing to report.

Inputs: run_id (required). Returns: object

get_run_statusPoll a run's statusA
Read-onlyIdempotent
Inspect

Status of a simulation run, optionally waiting for it to move.

Use this instead of get_run. Returns: id, status, phase, status_detail, progress_pct (0-100), eta_seconds, error_message, compute_backend, stability (a complete run's, see get_run) and say_to_user.

FOLLOWING A RUN FROM CHAT: call with wait_seconds=110. The call returns as soon as the status, phase or progress (5 points) changes, or after 110 s, whichever is first. Then RELAY say_to_user to the person (one short line after every call) and call again. Do not sleep or wait yourself between calls: the wait happens inside this call. After about 10 minutes of this in one turn, stop and tell the person to ask you for the status: you cannot watch the run between their messages, and Hydrata emails them when it finishes. If the answer has token_refresh_pending: true, your sign-in is being refreshed: do not call again at once, follow next_step.

phase is never empty: it is status, except preparing_inputs while a computing run has no progress yet (it is downloading its input package and building the domain — minutes on a big model; this is NOT a stall). Terminal states: complete, error, cancelled. A waiting call returns at once on a terminal state.

Inputs: run_id (required), wait_seconds. Returns: object

get_scenarioGet a scenario's state, inputs and priceA
Read-onlyIdempotent
Inspect

Get a scenario's COMPACT state: its computed_status, inputs, estimate and price.

Returns a compact record, never the raw ~50 KB detail: scenario_id, computed_status, mesh_triangle_count_estimate and its _breakdown, latest_run_is_valid, the latest run's run_id, run_status, error_message, user_message, status_detail and mesh_triangle_count — plus what the scenario IS and what it will cost: name, description, project, resolution, duration, elevation_sampling (how the model reads the ground under each triangle: footprint = area-weighted average of DEM cells under each triangle (default), centroid = the DEM cell at the triangle centre (plain-ANUGA style)), flow_algorithm (the solver: DE0 = standard (default); DE1 = second-order, about 2x compute and price; DE_ader2 = second-order, experimental (still being validated upstream), about 1.25x price), the input row ids (terrain, boundary, friction, inflow, rainfall, building, mesh_region, culvert), quote_estimate (the ONE pre-build price in USD, GPU formula, labelled an estimate: price is what the person pays, 0.00 inside the daily free band, and list_price is the real figure), and authored_method and sources (how the agent made the scenario and the documents it cites: [] when none), and inflow_anchor_mismatch (null unless two inflow series start at different times; for the later one the model gets zero flow from that series over the lead-in gap before its first sample. One inflow that starts after the rainfall is warned in hydrology_check under the same code, INFLOW_ANCHOR_MISMATCH, with its lead-in), and hydrology_check (when Hydrata sends it: for each inflow and rainfall feature, the series that drives it, its peak and volume, and structured warnings — repeat those numbers to the user, never your own), and unbound_series with a say_to_user warning when the project holds a rainfall or flow series that no inflow or rainfall feature uses (the model ignores it: tell the user and ask which input it belongs to).

The computed_status field (there is NO status key on a scenario) is derived from the latest run and will be one of: created, building, built, queued, computing, processing, complete, error, or cancelled — created also means no run exists yet. A scenario must be built before it can be run. latest_run_is_valid is false after any edit since the last build. unreviewed_inputs lists the inputs written by an agent key that the user has not reviewed at their current content (kind, layer_id, title, feature_count, the grant that wrote it, authored_method (the agent's own account of how it made the input, when it gave one), reopened when an edit undid an earlier input review): while it is not empty, build and run are refused UNREVIEWED_INPUTS. Only the user reviews, in the browser — poll this tool every 30-60 s after giving them the review link. A non-member reading a public project's scenario gets a reduced record: the fields the server withholds (the input ids, the price, inflow_anchor_mismatch) are ABSENT here rather than reported as null — "withheld" is not "no terrain, no cost" — while the run-state keys, computed_status among them, read null.

No presigned S3 URL is returned by any read tool (each is a 6-hour capability): results stay viewable through a run's gn_layer_* WMS entries — use get_run for the full run record.

Inputs: project_id (required), scenario_id (required). Returns: object

get_terrainWait for a terrain importA
Read-onlyIdempotent
Inspect

Poll a terrain's import until it is ready (or error), bounded by timeout_seconds.

Returns outcome — exactly one of ready, error, timed_out, not_found (the project has no terrain yet; an unknown terrain_id is an API 404 error instead) — plus the last status seen (creating → styling → ready | error) and phase (that status, or not_found; never empty), polls, elapsed_seconds and the full terrain record (its gn_layer is the published elevation dataset pk once ready). An import takes minutes to tens of minutes (the SAME 32 MB 1 m DEM measured 4.5 min once and 26 min once — the worker's S3 download speed dominates), so timed_out is normal and NOT a failure: keep calling with the same arguments while status is still creating/styling; several calls in a row is expected. error is terminal — the import failed and no default input rows were seeded; upload a corrected GeoTIFF as a new terrain.

A ready terrain whose import check found extrapolated ground (flat-sided triangles padding it out to its edge, not surveyed ground) carries extrapolated_ground (state flagged or left_out) and a WARNING in say_to_user: relay it. Only the person can leave that ground out of the drainage analysis, on the map.

ready is written by the import task; the project's default input rows (Boundary 01, Friction 01, Inflow 01, Rainfall 01, Building 01, MeshRegion 01, one GeoNode layer each) are seeded by the NEXT task in the chain and appear over the following ~30 s. Poll the input-layer list until it is non-empty before attaching your own layer to a default row.

Inputs: project_id (required), terrain_id, timeout_seconds, poll_interval_seconds. Returns: object

get_terrain_mergeWait for a terrain mergeA
Read-onlyIdempotent
Inspect

Wait for a terrain merge started by merge_terrains until the merged terrain is ready (or error).

Returns outcome (ready | error | timed_out), phase (merging: the terrains are being merged; importing: the merged terrain is being published; then ready or error), terrain_id of the merged terrain once it exists, and its record. timed_out is normal: call again with the same arguments. If the merge itself failed, outcome is error at once with Hydrata's reason in error; tell the user. Once ready, use terrain_id like any other terrain (get_terrain, sample_terrain, a scenario's terrain). Read-only.

Inputs: project_id (required), analysis_surface_id (required), timeout_seconds, poll_interval_seconds. Returns: object

list_inputsList a project's input layersA
Read-onlyIdempotent
Inspect

List every input layer row of a project, per kind, with whether it has features.

For each of boundary, friction, inflow, rainfall, building, mesh_region and culvert: the rows (row_id, title, gn_layer — the dataset pk — and dataset_alternate, the workspace:name WFS typename), authored_method (the one-line account an agent gave of how it made the layer; null when nobody said) and has_features. has_features is the API's own answer for every kind. It is null only when a row's record does not carry it: treat null as unknown, not as empty. A row with no gn_layer has no layer yet (has_features false). Use the row ids with create_scenario; this is the listing primitive — no need to probe files.

Inputs: project_id (required). Returns: object

list_observationsList flood observation layers or observationsA
Read-onlyIdempotent
Inspect

List a project's flood observation layers, or one layer's observations.

Without layer_id: every layer (layer_id, title, dataset_alternate, vertical_datum, datum_offset_m, has_features). With layer_id: {layer, count, results} where each observation carries its fid (the key for update_observation / delete_observation), subtype + subtype_label, stage/depth, sigma, bound, the observed window in UTC, datum status (an unknown datum is not scored), photo_count and problems (fields drawn in the map that fail validation, reported, never fixed).

Inputs: project_id (required), layer_id. Returns: object

list_projectsList projectsA
Read-onlyIdempotent
Inspect

List ANUGA simulation projects accessible to the authenticated user.

Returns a paginated list of projects with their names, projections, and base map references.

Inputs: page, page_size. Returns: object

list_runsList a project's runsA
Read-onlyIdempotent
Inspect

List all simulation runs across all scenarios in a project.

Returns a paginated list of runs. Optionally filter by status to find active, completed, or failed runs. Each row's presigned s3_*_url download links are elided (6-hour capabilities).

Inputs: project_id (required), page, page_size, status_filter. Returns: object

list_terrain_sourcesList the terrain Hydrata can fetch for a siteA
Read-onlyIdempotent
Inspect

List the terrain Hydrata can fetch for a site, finest resolution first.

Never fetch terrain from outside Hydrata (another DEM service or download) where a Hydrata source covers the site: call this first. Each source row has key, name, resolution_m, coverage_pct (share of your box it has data for), cap (state ok | too_large, the area and the maximum, and a plain message when too large), vertical_datum, credit and licence. Only sources with some coverage appear: Copernicus GLO-30 (30 m, worldwide) always, and finer regional LiDAR such as Geoscience Australia 5 m where it has data. Pick one whose cap.state is ok and pass its key to create_terrain_from_source. Tell the user which source you chose, its resolution, licence and datum (say_to_user says it for you).

Inputs: bbox (required), project_id (required). Returns: object

list_time_seriesList a project's time seriesA
Read-onlyIdempotent
Inspect

List a project's time series (rain gauges, hydrographs, tides) — never their rows.

Each series: id, name (a rainfall polygon binds to its gauge by this exact name), series_type, units, timezone, authored_method (how an agent made it; null when nobody said), row_count, first_timestamp and last_timestamp. The data rows themselves are dropped (a project's list is megabytes); fetch one series with the REST API (GET /projects//time-series//) if you need its values.

Inputs: project_id (required). Returns: object

merge_terrainsMerge project terrains into oneAInspect

Merge two or more of the project's terrains into one new terrain, in the priority order given.

Use it when no single terrain covers the site well, e.g. a fine LiDAR survey over the channel and a coarser terrain around it. The first terrain's heights are kept as they are; the ones below can be shifted slightly so they meet it without a step at the seams (the same as the map's merge). Gaps in a higher terrain are filled from the ones below. The reply gives the size estimate (grid cells) and analysis_surface_id; the merge takes minutes, so follow it with get_terrain_merge until ready, then use the merged terrain like any other. A refusal (too large for the resolution, a coarser terrain above a finer one) comes back as outcome: refused with Hydrata's reply unchanged in hydrata_reply; nothing is kept.

Inputs: project_id (required), terrain_ids (required), target_resolution_m (required), title, +2 more. Returns: object

presign_terrain_uploadGet a terrain upload URLAInspect

Step 1 of a terrain import: get a presigned S3 PUT URL for a GeoTIFF DEM.

Only for a client that has a shell and an agent key AND a DEM no platform source covers. A connector agent with no shell (claude.ai) uses list_terrain_sources then create_terrain_from_source instead, or asks the user to upload their own DEM in the map.

The import needs a launch-level agent key: a draft key can presign, but finalize_terrain_upload (and the multipart fallback below) answer a read or draft key 403 AGENT_LEVEL_INSUFFICIENT — check the key before moving bytes.

The agent moves the bytes itself — no tool accepts file contents. After this call, PUT the file straight to upload_url, sending the SAME Content-Type you passed here (it is part of the signature; a mismatch is a 403 SignatureDoesNotMatch before it is anything else):

curl -sS -X PUT -H "Content-Type: image/tiff" --upload-file /path/dem.tif "$UPLOAD_URL"

then call finalize_terrain_upload with the returned staging_key and process_id. Nothing exists in Hydrata until finalize; the URL expires after expires_in seconds (3600).

Platform guidance: keep the terrain extent within 5° across and 40,000 km² (200 × 200 km). The API enforces that cap on its bbox-fetch path; an uploaded GeoTIFF is only rejected above 5 GiB, but a larger DEM will not mesh or run well. The GeoTIFF must carry a CRS; the import reprojects it to the site's UTM zone and builds a hillshade. Fallback when a presigned PUT is impossible: multipart-POST the file with the same agent key to /api/v2/anuga/projects//terrain/upload/ (form field file, optional title), which creates the terrain in one step — then get_terrain.

Inputs: filename (required), project_id (required), size, content_type. Returns: object

propose_drainage_correctionPropose a drainage barrier, opening or excluded groundAInspect

Propose a drainage barrier, a drainage opening or excluded ground for a terrain. It is stored as a PROPOSAL and is NOT applied: a person accepts it on the map, and only then does the drainage analysis use it.

Use it when a delineation warning names a fix (a drainage_analysis_changed_ground warning's fix is drainage_barrier or drainage_opening, with fix_sentence, where and the cut or fill geometry), or when you can say exactly where water really goes and the terrain does not show it. Read the ground first with terrain_profile. Tell the user the proposal is waiting and give them the link (ui_url): it opens a line on this terrain (line_to_open, named in the sentence) with the proposal. Lines on the terrain change only after the person accepts it and they run again.

Inputs: kind (required), reason (required), project_id (required), terrain_id (required), +4 more. Returns: object

read_input_layerRead the features of a project input layerA
Read-onlyIdempotent
Inspect

Read the features of a project input layer: GeoJSON in EPSG:4326 with each feature's id (fid), its attributes and its author (person, or the agent grant and client that wrote it).

Read a layer before you write to it. A person may have drawn features in the map that you cannot otherwise see; write_input_layer then ADDS to the layer rather than replacing it. Read-only.

Inputs: kind (required), project_id (required), row_id. Returns: object

request_input_uploadGet a browser upload link for a big input layerA
Read-onlyIdempotent
Inspect

Get the link where the PERSON uploads a big input layer in their browser.

For a layer too big to send with write_input_layer (over about 150 KB): building footprints, land-use friction. You cannot move file bytes, so give the person ui_url. It opens the project's upload page for this kind; they drop a GeoJSON, a zipped shapefile or a GeoPackage (up to 100 MB), Hydrata converts it into the project's grid and attaches it to the kind's layer, replacing what it held. Nothing is created until they drop a file.

A file the person drops is their own input: it is marked 'uploaded by the user' and needs no review step. Afterwards call list_inputs: the layer is there with that authored_method. A file of the wrong kind (polygons on an inflow) is refused on the page with a plain message. The person needs Editor access on the project.

Inputs: kind (required), project_id (required). Returns: object

retry_runRetry a failed runAInspect

Retry a failed simulation run.

Needs a launch-level agent key (a retry rebuilds the package and can start AWS Batch); a read or draft key gets 403 AGENT_LEVEL_INSUFFICIENT.

Starts a fresh package build of the run's scenario as a NEW run, which becomes the scenario's latest run. The errored run keeps its status and error as history, and the response describes that old run; the new run's ID is get_scenario's run_id. Only valid when status is 'error'. Returns 409 for any other state.

Inputs: run_id (required). Returns: object

sample_terrainRead ground levels at pointsA
Read-onlyIdempotent
Inspect

Read the ground level of a terrain at points, to place a culvert, inflow or boundary on the ground.

Returns samples: for each point you gave, in order, lon, lat and level (the terrain's own height in metres, on the terrain's vertical datum: see get_terrain vertical_datum). level is null where the terrain has no data or the point lies outside it: say so, never treat it as zero. These are the same values the browser's Profile panel reads. Read-only; changes nothing.

Inputs: points (required), project_id (required), terrain_id (required). Returns: object

set_comparison_toleranceSave a project's default comparison toleranceA
Idempotent
Inspect

Save a project's default tolerance for comparing runs with flood observations.

Needs Editor (or above). Every later get_observation_comparison (and the map's Compare with observations tab) uses it unless a tolerance is passed. Only save it when the user asks to change the project's default; to show the figures at another tolerance, pass tolerance to get_observation_comparison.

Inputs: project_id (required), tolerance_m (required). Returns: object

set_levels_datumRecord the datum of the user's levelsA
Idempotent
Inspect

Record which height datum the user's own levels are on, for a project that already has its terrain.

Use it when get_terrain or get_project says the project has no levels datum, or the user corrects it. For a new terrain, pass levels_datum to create_terrain_from_source instead. This is a fact about the person's numbers, not about the terrain: it never changes the terrain's own datum. Hydrata compares the two and returns levels_datum_mismatch when they differ: relay it.

Inputs: project_id (required), levels_datum (required). Returns: object

set_observation_exclusionExclude or include a flood observation in a run's comparisonA
Idempotent
Inspect

Exclude a flood observation from ONE run's comparison with observations, or include it again.

Needs Editor (or above) on the project. The exclusion is logged with the user and reason (nothing is overwritten) and keyed on (run, layer, fid), so it survives a recompute. The figures change at once: headline_after is the run's headline with the change applied. To exclude, the user must give the reason: if they have not, ASK them; do not make one up.

Inputs: fid (required), run_id (required), layer_id (required), reason, +1 more. Returns: object

start_simulationStart a simulation run (spends compute)AInspect

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.)

Inputs: scenario_id (required), poll_interval_seconds, consent_timeout_seconds. Returns: object

suggest_capabilityTell the Hydrata team about a capability that is missingA
Read-only
Inspect

Tell the Hydrata team about something the person asked for that NO existing tool can do.

Use it only when you have checked the other tools and none can do what the person asked (never to report a bug, and never instead of a tool that can do it). Describe the need, not a workaround; send no personal data, keys or file contents. It changes none of the person's data. The reply tells you what to say: relay say_to_user to the person as it is. Limit: 20 a day per person.

Inputs: what (required), goal. Returns: object

terrain_profileRead the ground along a lineA
Read-onlyIdempotent
Inspect

Read the ground along a line (a cross-section) to find where a channel runs and snap a structure to it.

Returns profile: samples ordered along the line, each with distance_m from the start, lon, lat and level (the terrain's height in metres, on its vertical datum: see get_terrain). lowest is the sample with the minimum level: across a channel it is the invert candidate, and its lon/lat is where the channel is. level is null where there is no data or the line leaves the terrain: those samples are never lowest. The same values the browser's Profile panel draws for the same line. Read-only.

Inputs: line (required), project_id (required), terrain_id (required), step_m. Returns: object

update_observationEdit one flood observationA
Idempotent
Inspect

Edit one flood observation (PATCH; only the fields given change).

The API checks the stored observation merged with changes and refuses (400, every bad field named) rather than store a half-valid one. Photos are not fields: attach a link with add_observation_photo_link.

Inputs: fid (required), changes (required), layer_id (required), project_id (required). Returns: object

update_scenarioEdit a scenario's name, size or attached inputsA
Idempotent
Inspect

Edit a scenario: its name, description, resolution, duration, terrain sampling, solver, or which input rows it points at.

A thin PATCH of scenarios/{id}/ with only the fields you pass. It NEVER builds or runs anything: a changed scenario is marked stale and you call build_scenario when the person agrees. Keep the name true: a scenario named '... - 10m' whose resolution you set to 30 must be renamed in the same call. Attaching an input row changes only THIS scenario; to vary an input for a variant, clone_scenario first, then attach the new row to the clone.

Inputs: project_id (required), scenario_id (required), name, inflow, +12 more. Returns: object

update_time_seriesCorrect a time seriesA
Idempotent
Inspect

Correct a time series you created (PATCH; only the fields you pass change).

Use it to fix a series instead of leaving a wrong one behind. The same rules as create_time_series apply to new rows (units match the type, a hydrograph or hyetograph ends at 0 unless hold_last_value, at least 2 rows, no negative rain or flow, not all zero) and Hydrata refuses with the reason in plain words. A series already used by a built scenario changes the scenario: it needs a rebuild and the user reviews it again. Returns a compact record, not the rows.

Inputs: series_id (required), project_id (required), data, name, +7 more. Returns: object

use_catchments_as_boundaryUse catchments as the model boundaryAInspect

Use chosen catchments as the model boundary: make a new boundary input round them.

The boundary is Closed (Reflective) everywhere except a short open stretch, typed Transmissive, at each included drainage point. It is a NEW boundary input of the project (nothing is overwritten) and is unreviewed, as is the delineation while a person has not confirmed it: nothing is built or run until a person reviews them. The delineation itself is not changed. Attach the boundary to a scenario with update_scenario(boundary=). Catchments that do not touch each other are refused in words. Do not draw a model boundary off the platform.

Inputs: project_id (required), catchment_ids (required), delineation_id (required), sources, +1 more. Returns: object

write_input_layerWrite a project input layer from GeoJSONAInspect

Write a project input layer (boundary, friction, inflow, rainfall, building, mesh_region or culvert) from GeoJSON you send in this call.

ASK FIRST: before you write any input, ask the person which approach they want (rain-on-grid, or an inflow hydrograph at a place they name), whether by 'hydrograph' they mean an inflow that drives the model or the flow they want out of the results, and for their design rainfall and losses; do not choose or source these yourself unless they ask you to.

No file, no key, no upload: the features go in features. Hydrata converts them into the project's grid and puts them in the project's default layer of that kind. Unlike attach_input_layer there is nothing to poll.

VARIANTS: the default row may feed scenarios that already ran, and writing it changes what they point at. For a variant (a copy of a scenario with different rainfall, say) write a SEPARATE row with target set to a title, then attach it to the copy with update_scenario or clone_scenario. A no-target write to a default row that a scenario with a built or complete run uses is refused, naming those scenarios, unless the person agreed and you pass replace_shared=true.

READ FIRST with read_input_layer. When the layer holds features a person drew, this tool ADDS yours beside them (mode 'append', the default; their feature ids hold). A replace (mode 'replace') writes a new layer and unlinks the old one, so it is refused unless the person agreed and you pass replace_existing=true; the refusal says how many of their features it would remove. Ask them before you replace.

Every feature must be the kind's geometry (lines for boundary, inflow and culvert; polygons for friction, rainfall, building and mesh_region); a feature of another geometry refuses the whole write and nothing changes. A culvert is one two-point line per culvert, Inlet first, then Outlet; its attributes are the culvert fields (name, shape, width_m, ... see the culvert guidance), nothing is renamed for you.

Limit: about 150 KB of GeoJSON (a few thousand vertices). A bigger layer is refused before anything is sent: ask the person to upload it in their browser with a request_input_upload link instead.

The layer is marked as written by your agent key and is UNREVIEWED until the user reviews it in their browser. INFLOWS: never invent an inflow location; take it from the study's files or give the user the ui_url to draw it.

Inputs: kind (required), features (required), project_id (required), mode, +5 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 51 tools

    Disambiguation4/5

    Almost every tool targets a distinct resource+action, and the descriptions explicitly separate the near-neighbours (get_run_status vs get_run, build_scenario vs start_simulation, describe_input_kinds vs list_inputs vs read_input_layer). The one genuinely fuzzy cluster is the three ways to get a layer in (write_input_layer / attach_input_layer / request_input_upload), which differ only by client capability and require the agent to reason about shell access and file size before choosing.

    Naming Consistency4/5

    The surface is uniformly snake_case verb_noun (list_projects, create_scenario, get_observation_comparison, set_comparison_tolerance) across all 51 tools. The single deviation is terrain_profile, which is noun-first and has no verb, sitting next to sample_terrain which does the analogous thing.

    Tool Count2/5

    51 tools is well past the 25-tool threshold and makes the surface hard to hold in an agent's working set, even though the domain (projects, terrain, inputs, scenarios, runs, time series, catchments, observations) is genuinely broad. Several polling variants (get_terrain, get_terrain_merge, get_delineation, get_run_status) and the multiple upload paths could be consolidated.

    Completeness4/5

    Coverage is unusually deep: full CRUD on time series and observations, a complete terrain pipeline (source/presign/finalize/merge/datum/profile), and a full scenario lifecycle (create, update, clone, build, run, cancel, retry, compare). The gaps are mostly deletions — no delete_project, delete_scenario, delete_run, or delete_input_layer (only replace_existing on write) — which agents can usually work around but are real dead ends.

    Maintenance

    ActivityActive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables querying HEC-RAS project information, geometry elements, plan results, and compute messages through natural language, allowing interaction with hydraulic modeling projects.
      36 PyPI
      18
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables search and retrieval of calibrated SWAT+ watershed models, national groundwater lithology and PFAS inventories, plus API-key-secured ordering and downloading of custom watershed models.
      1
      MIT
    • A
      license
      A
      quality
      C
      maintenance
      Enables headless control of DHI MIKE Zero, including launching and batch-running simulations, monitoring job progress and logs, and reading/plotting simulation results from DFS and RES1D files.
      15
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to run engineering simulations on cloudHPC, including inspecting cases, getting resource advice, uploading, launching, monitoring, diagnosing errors, and downloading results.
      19
      Apache 2.0