Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Get a run's full record

get_run
Read-onlyIdempotent

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

Instructions

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.

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": {
      "run_id": "<run_id>"
    },
    "name": "get_run"
  }
}

Input Schema

NameRequiredDescriptionDefault
run_idYesThe run ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already establish that this is a safe read-only operation, but the description adds substantial behavioral context: presigned S3 links are elided, sww time-series states are explained, culvert sign conventions are defined, and stability classes are described. It also explains error states such as unreadable storage and what the agent should tell the user.

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?

The description is long, but most of the length is justified by the many special output fields and edge cases it explains. It is front-loaded with the core purpose and return summary, though some points, such as the repeated note that download links are never returned, could be tightened.

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 complex run-record tool with an output schema, the description is complete enough to call correctly: it covers the purpose, sibling routing, special cases for sww, culverts and stability, and what to relay or avoid reporting. It does not rely on the output schema alone for the unusual fields.

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?

There is only one parameter, run_id, and schema description coverage is 100%, so the schema already identifies it as the run ID. The description does not add syntax or meaning beyond that, which is acceptable given the simple required integer parameter.

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?

The description opens with a specific verb and resource: 'Get full details of a simulation run including timing and results.' It immediately distinguishes the tool from get_run_status, making the distinction between lightweight polling and final results explicit.

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?

It gives direct when-to-use guidance: 'Use get_run_status for lightweight polling; use this for final results.' It also routes the agent away from get_flow_hydrograph for culvert flow and explains the separate ACROSS-line measurement case.

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