Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Create a draft scenario

create_scenario

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

Instructions

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.

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": {
      "project_id": "<project_id>",
      "name": "<name>",
      "resolution": "<resolution>",
      "duration": "<duration>"
    },
    "name": "create_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesScenario name
inflowNoInflow row id (optional; the build needs an inflow OR a rainfall)
culvertNoCulvert row id (optional; attach_input_layer kind=culvert → row_id). The build refuses a culvert missing its shape, size or invert levels.
sourcesNoThe documents this came from, so the engineer can click through to them: a list of {title, url, locator}, e.g. [{title: 'GHD 2015 Sullivans Creek Flood Study', url: 'https://...', locator: 'Table 5-2'}]. Limits: title (1-200 characters) and url (http or https, at most 2000 characters) are required; locator (a page or table, e.g. 'p. 42' or 'Table 5-2') is optional, at most 100 characters. At most 20 entries. Pass it beside the method whenever you cite a document.
terrainNoTerrain id (get_terrain → terrain.id); the build fails without one
boundaryNoBoundary row id (attach_input_layer kind=boundary → row_id)
buildingNoBuilding row id (optional)
durationYesSimulation duration in seconds (e.g. 43200 = 12 h)
frictionNoFriction row id (optional)
rainfallNoRainfall row id (optional; the build needs an inflow OR a rainfall)
structureNoDeprecated alias of `building`; ignored when `building` is given.
project_idYesThe project ID
resolutionYesMesh resolution as a LENGTH in metres (ANUGA maximum_triangle_area = resolution²/2). Coarser (larger) = fewer triangles: on a ~13 km² boundary 36-40 m gives ~16-20k triangles, 10 m ~255k, 1 m ~25M (refused by the API).
descriptionNoFree-text description (optional)
mesh_regionNoMeshRegion row id (optional): finer meshing inside its polygons, each feature's `resolution` a LENGTH in metres (see the units note).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.2
    • addedInput schema / properties / sources
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The documents this came from, so the engineer can click through to them: a list of {title, url, locator}, e.g. [{title: 'GHD 2015 Sullivans Creek Flood Study', url: 'https://...', locator: 'Table 5-2'}]. Limits: title (1-200 characters) and url (http or https, at most 2000 characters) are required; locator (a page or table, e.g. 'p. 42' or 'Table 5-2') is optional, at most 100 characters. At most 20 entries. Pass it beside the method whenever you cite a document."
      +}
    • changedInput schema / properties / structure / description
      Previous value: -"Deprecated alias of `building` (TASK-3586); ignored when `building` is given."New value: +"Deprecated alias of `building`; ignored when `building` is given."
  2. First observedv0.2.1

TDQS

A4.9/5.0
Behavior5/5

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

Annotations only declare the safe-mutation profile (readOnlyHint=false, destructiveHint=false, non-idempotent); the description goes far beyond it. It discloses that the POST response carries no estimate and a follow-up GET supplies mesh_triangle_count_estimate, that FK ids are NOT validated against project_id, that every FK is nullable at create time but the build fails later without terrain or without inflow/rainfall, and that a featureless boundary is accepted here but refused by build_scenario.

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

Conciseness4/5

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

Front-loaded with purpose, then the ASK FIRST protocol, then the call mechanics, units and FK caveats – a logical order for an agent to act on. It is long, and a few sentences restate schema text almost verbatim (the ANUGA maximum_triangle_area = resolution²/2 formula appears in both), but there is little pure filler.

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?

For a 15-parameter creation tool with an output schema, the description still covers everything needed to call it correctly: required preconditions, the two-step POST/GET flow, null-FK consequences deferred to build time, unit conventions, and the failure modes to expect. The return record is enumerated compactly, which is more than the output schema alone would motivate.

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

Parameters5/5

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

Schema coverage is 100%, so the baseline would be 3, but the description adds meaning the schema does not carry: the resolution length/area relationship and the raster cell-size rule, the requirement that MeshRegion features carry resolution_units = m and the resulting 422 MESH_REGION_UNITS_UNMARKED, and the distinction between an estimate of None (resolution 0) and an estimate of 0 (coarse mesh, not an error).

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?

States a specific verb and resource ('Create a DRAFT scenario') plus the immediate scope limit ('no build, no run') and the side output ('report its mesh-triangle estimate'). That immediately separates it from build_scenario, clone_scenario and update_scenario without opening any schema.

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?

Explicit when-to-use and when-not: nothing is meshed or queued here, and the next step is named ('build_scenario, which asks for confirm=true above 100,000 triangles'). It also adds a genuine pre-flight protocol ('ASK FIRST: ... ask the person which approach they want ... do not choose or source these yourself'), which is the kind of routing guidance an agent cannot infer from siblings.

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