Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Make catchments from a delineation line, or change its settings

delineate_catchments

Create catchment boundaries from a terrain line, or adjust an existing unconfirmed delineation's name, start chainage, area, or side; returns a job ID, map URL, and estimate for tracking.

Instructions

Make catchments from a delineation line on the project's terrain, or change the settings of your own.

A NEW delineation starts a job and returns AT ONCE with delineation_id, ui_url (the map on this line's Catchments pane) and the estimate (cells, resolution, where it runs, expected time range); follow it with get_delineation. It never waits on a run. Nothing is confirmed: what you make is unreviewed until a person confirms it in the browser. Only a person ticks a diversion or confirms; no tool does, and there is no tool that deletes a delineation or moves its line.

The line has an upstream side for each section (side): Hydrata adopts the side most ground arrives from unless you pass one, and ground on a section's downstream side is left out (one sentence says how much). Every reply with a result names the side used per section; relay it.

With delineation_id: changing the name, start chainage, either area or the side regroups the stored result without repeating the terrain step (no new job). A person's diversion ticks survive the change: they are re-applied and marked check again until a person checks them; say so. A delineation a person made or confirmed is refused in words. mode='full' starts High resolution: when the line's result is a fast screen (low resolution), Hydrata makes a COPY of the line, ' (high res)', and runs there, so the two can be compared; the result then names the copy's delineation_id (created_copy true): read THAT one with get_delineation.

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

Input Schema

NameRequiredDescriptionDefault
lineNoA new delineation's line: 2 or more [longitude, latitude] pairs in WGS84 degrees (longitude FIRST), put on natural ground where the water arrives (the toe of a slope or in the channel), not on a crest. Read the ground along a candidate line with terrain_profile first. Not accepted with delineation_id (the line cannot be moved by a tool).
modeNo'quick' (the default for a new delineation) is the FAST SCREEN: low resolution, coarsened to the web server's limit, seconds to a couple of minutes; a first look. 'full' is HIGH RESOLUTION: the terrain's own resolution, on AWS Batch, can take many hours (up to about 24), and the person can close the map. Do the fast screen first and offer High resolution with its estimate. With delineation_id, 'full' starts High resolution: over a fast screen it makes a COPY of the line, '<name> (high res)', and runs there (the fast screen stays, for comparison; read the copy's delineation_id with get_delineation); 'quick' runs the fast screen again.
nameNoA new delineation's name (required); with delineation_id, the new name
sideNoUpstream side looking from the line's start to its end: 'left', 'right', or 'automatic' (default: each section takes the side most ground arrives from). Pass a side only when the person said which side the water comes from. The reply names the side per section.
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.
project_idYesThe project ID (Contributor rights)
terrain_idNoA new delineation's terrain (default: the project's newest ready terrain)
min_area_haNoMinimum catchment area in hectares: smaller catchments are grouped with a neighbour
estimate_onlyNoTrue runs nothing: it returns the estimate (cells, working resolution, where it runs, expected time range, and whether it can run on this site) for the terrain, or for the delineation_id's terrain.
delineation_idNoOmit to make a NEW delineation. Give the id of YOUR OWN unconfirmed delineation to change its name, start_chainage_m, min_area_ha or max_divert_area_ha (the result is regrouped, no new job) or, with mode='full', to start High resolution (on a copy of the line when its result is a fast screen). A delineation a person made or confirmed is refused.
authored_methodNoOne short phrase saying how you placed the line and chose the settings (e.g. 'toe of the slope read with terrain_profile at 5 m'). Shown to the person who reviews it.
start_chainage_mNoChainage of the start of the line in metres (default 0); CH 5+081 is 5081
max_divert_area_haNoMaximum catchment diversion area in hectares: the largest catchment a suggested diversion may send away

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.2.5
    • addedInput schema / properties / side
      Added value: +{
      +  "anyOf": [
      +    {
      +      "enum": [
      +        "left",
      +        "right",
      +        "automatic"
      +      ],
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "Upstream side looking from the line's start to its end: 'left', 'right', or 'automatic' (default: each section takes the side most ground arrives from). Pass a side only when the person said which side the water comes from. The reply names the side per section."
      +}
  2. Addedv0.2.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare the mutation/safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false), so the description carries the rest and does so richly: the call is asynchronous and never waits on a run, results are unreviewed until a person confirms in the browser, no tool deletes a delineation or moves its line, update calls regroup without a new job, diversion ticks are re-applied and marked 'check again', and mode='full' over a fast screen creates a copy whose new delineation_id must be read instead. None of this contradicts the annotations.

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?

It is front-loaded with the core two-mode statement and the async-return contract before the details, which is the right order. It is dense but readable, though it repeats itself — mode quick/full and side adoption are each explained both in the body and again in the schema, and the body itself covers 'full' twice.

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 13-parameter async job tool with an output schema, the description covers everything an agent needs to call it correctly and act afterwards: the immediate return fields, the follow-up tool, the copy-on-high-res case, refusal conditions, and the human-review boundary. Return-value detail is rightly left to the output schema.

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 description coverage is 100%, so the schema already documents every parameter, including side, mode, sources limits and start_chainage_m conversion. The description adds the important grouping fact that name, start_chainage_m, area or side can be changed together with 'no new job', but it otherwise restates schema content (mode quick/full, side adoption, line placement) rather than extending it.

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 names a specific verb and resource ('Make catchments from a delineation line') and a second mode ('change the settings of your own'), which maps directly onto the two call shapes (new vs. with delineation_id). It is clearly distinguishable from the follow-up sibling get_delineation, which it names explicitly.

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 explicit routing: a new delineation returns at once and must be followed with get_delineation; 'Do the fast screen first and offer High resolution with its estimate'; pass a side 'only when the person said which side the water comes from'; omit delineation_id to make a new one. It also states exclusions (person-made or confirmed delineations are refused) rather than leaving them to inference.

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