Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Wait for and read sub-catchments

get_sub_catchments
Read-onlyIdempotent

Read a project's sub-catchment sets and versions, or inspect one set's nodes, facts, reaches, links, boundaries, and proposals for catchment review.

Instructions

Read sub-catchments. Without sub_catchments_id: the project's sets (of one line, with delineation_id), each with its versions. With it: one set, waiting while it is created on cloud compute: its nodes (each with its total catchment's facts; a diverted point says the node its water goes on to, diverted_to), sub-catchments (id, label, where its label sits as label_point, the node it drains to, area, facts and its 'can share water' notes with their ids), reaches and links with their facts (a diversion's: area arriving, length, fall, slope, drain depth), the dragged boundaries and their state (waiting, in the terrain, kept as drawn), the proposals waiting for a person, and sentences to relay (for example 'The line has run again since these were created.', or 'Diversions changed in step 2. Take the diversions in.', which never holds a confirm). Each fact's unit, definition and source is given once, in fact_definitions. Shapes stay on the map, except the outlines you ask for with outlines_of, and the streams a divide goes on with streams_of (aim a divide at one). timed_out is normal: read again later. Read-only.

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": "get_sub_catchments"
  }
}

Input Schema

NameRequiredDescriptionDefault
versionNoWith sub_catchments_id: read this version number (default: the draft, else the latest)
project_idYesThe project ID
streams_ofNoWith sub_catchments_id: the sub-catchments whose streams to include (GeoJSON MultiLineString in lon/lat, as `streams`): the streams a divide goes on, as the map draws them. Every sub-catchment then says `has_stream` (false: no stream to divide on; add a forced point instead). At most 10.
outlines_ofNoWith sub_catchments_id: the sub-catchments whose outlines to include (GeoJSON in lon/lat, as `outline`), for example the two either side of a boundary you want to propose moving. At most 10.
delineation_idNoWithout sub_catchments_id: list the sets of this line
timeout_secondsNoWith sub_catchments_id: how long to wait while they are created on cloud compute before returning `timed_out` (default 110, ceiling 110). 0 = one read.
sub_catchments_idNoOne set to read: its `sub_catchments_id`
poll_interval_secondsNoSeconds between polls (default 5)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.6

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnly/idempotent/closed-world annotations, the description discloses the tool's real behavioral quirks: it blocks and polls cloud compute, returns `timed_out` as a normal non-error outcome that should be retried, and emits `sentences` to relay to a human that never contain a confirm. It also explains that shapes stay on the map unless explicitly requested and that units/definitions/sources are deduplicated into `fact_definitions`.

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 first sentence is well front-loaded, but the second is a ~130-word run-on that enumerates return fields (nodes, sub-catchments, reaches, links, boundaries, proposals) in a single breath. Since an output schema exists, much of that enumeration is redundant, and the 'Shapes stay on the map, except...' sentence is genuinely hard to parse.

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 an 8-parameter, dual-mode, long-polling read tool, the definition covers waiting behavior, timeout recovery, and the human-relay sentences, which are the non-obvious parts. Because an output schema is supplied, the heavy return-field recital is not required for completeness — it is surplus rather than a gap — so the description is complete, if unevenly allocated.

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 parameter descriptions already carry the mode gating, defaults, ceilings (10 outlines/streams, 110s timeout) and the meaning of `has_stream`. The prose adds only light intent — why you would ask for outlines or streams — so it sits at the baseline for a fully documented schema rather than adding substantive new semantics.

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?

Opens with a specific verb+resource ('Read sub-catchments') and immediately splits the tool's two distinct behaviors: listing a project's delineation sets vs. reading one set while waiting on cloud compute. An agent can tell what it gets in each mode, though it never names a sibling tool (e.g. get_delineation, create_sub_catchments) to disambiguate the read from the create/edit family.

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?

The 'Without sub_catchments_id / With it' framing gives clear conditions for each mode, and it adds operational guidance such as '`timed_out` is normal: read again later' and 'aim a divide at one' for streams_of. What is missing is explicit routing to alternatives — it never says when to use this instead of get_delineation or adopt_catchments — so the agent must infer sibling boundaries.

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