Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Flow across a line for a run

get_flow_hydrograph
Read-onlyIdempotent

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

Instructions

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.

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>",
      "line": "<line>"
    },
    "name": "get_flow_hydrograph"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesThe line to measure across, as [[lon, lat], [lon, lat], ...] in WGS84 (at least 2 points), in the order drawn. Positive flow crosses from the line's left bank to its right bank.
run_idYesThe run ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A3.7/5.0
Behavior4/5

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

Well beyond the readOnly/idempotent annotations, the description discloses the computation method (depth times velocity normal to the line), the sign convention, the nearest-frame peak caveat, and that open-boundary flux is not integrated so mass balance outflow is by difference. These are exactly the caveats an agent needs to avoid misreporting a negative peak as a flood peak or over-trusting the mass balance.

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 purpose is front-loaded in one sentence and the caveat sentences each carry real information. However, the long backtick enumeration of return fields (time_s, q_m3s, peak_m3s, peak_time_s, max_positive/negative, volume_m3, sign_convention, frame_spacing_s) duplicates an existing output schema and roughly doubles the length without adding new meaning.

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

Completeness4/5

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

For a two-parameter read tool with full schema coverage, annotations, and an output schema, the description covers the important gaps: failure outcomes, peak-resolution warnings, mass-balance interpretation, and what not to infer from the result. Minor omissions remain, such as the requirement that the run be finished and what to do when warnings are empty.

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% and the schema already documents the line format, WGS84 coordinates, minimum two points, and the left-bank-to-right-bank sign rule that the description echoes. The description adds no extra parameter-level meaning such as vertex ordering constraints, self-intersection handling, or line length limits, so the baseline of 3 applies.

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

Purpose4/5

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

The opening sentence names a specific computed quantity (flow Q) across a specific resource (a drawn line) over every frame of a completed run, which is unambiguous. It also draws a useful boundary with measurement tools by stating 'This is the model's flow, not a gauge reading,' but it never names a sibling tool or explains when to prefer this over get_observation_comparison or get_run.

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

Usage Guidelines3/5

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

Usage is implied rather than stated: only a 'completed run' with a 'playback store' will work, and the failure outcomes no_playback_store and bad_line hint at prerequisites. There is no explicit guidance on when to call this versus other run-inspection tools, nor on how to obtain a valid run_id or line before calling.

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