Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Get a scenario's state, inputs and price

get_scenario
Read-onlyIdempotent

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

Instructions

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.

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>",
      "scenario_id": "<scenario_id>"
    },
    "name": "get_scenario"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project ID
scenario_idYesThe scenario ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.3/5.0
Behavior5/5

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

Far beyond the annotations: it enumerates the computed_status lifecycle, states that build and run are refused with UNREVIEWED_INPUTS while `unreviewed_inputs` is non-empty, and warns that `latest_run_is_valid` goes false after any edit. It also discloses a genuine edge case the agent could otherwise misread: non-members see withheld fields as ABSENT rather than null, so "withheld" must not be read as "no terrain, no cost."

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 key scoping claim is front-loaded, but the body is an unusually long wall of text that spends much of its length enumerating returned fields the output schema already defines. The parentheticals on elevation_sampling and flow_algorithm are informative but would read better as structured lists; several sentences do not earn their place against the structured fields.

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 read tool with a rich output schema, this covers the parts the schema cannot: the status derivation rule, the review-gating behavior, the public-project reduced record, and the absence of presigned URLs. Nothing an agent needs in order to call this tool correctly and interpret the response is missing.

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

Parameters3/5

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

Schema coverage is 100%, so the two parameters (project_id, scenario_id) are already documented and the baseline of 3 applies. The description's rich explanation of `flow_algorithm` and `elevation_sampling` values pertains to returned fields, not to the input parameters, so it adds no invocation-level parameter meaning.

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: "Get a scenario's COMPACT state: its `computed_status`, inputs, estimate and price." It explicitly contrasts itself with the sibling get_run ("use get_run for the full run record"), so an agent can separate the two tools without opening either schema.

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

Usage Guidelines4/5

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

It gives concrete usage instructions: poll this tool every 30-60 s after handing the user a review link, defer to get_run for full run records, and act on `unbound_series` by telling the user and asking which input it belongs to. What is missing is a clearer statement of when another read tool (e.g. list_inputs or get_project) is preferable to this one.

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