Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Create sub-catchments from a line's catchments

create_sub_catchments

Create sub-catchments from a line's High-resolution catchments, each draining to a node with area, slope, flow length, node totals, and reaches; use a target count or stream threshold.

Instructions

Create sub-catchments from a line's catchments: each sub-catchment drains to a node, with its measured facts (area, slope, flow length...), the nodes' total catchments and the reaches between nodes.

The line must have a High resolution result: a fast-screen result is refused with the sentence 'High res only' (run the line at High resolution first). Creating is by a target number (about 20 by default) or a stream threshold, not both. On a terrain too large for the web server it is done on cloud compute: the answer is creating and get_sub_catchments waits for it. The result is a draft: tell the user a person confirms it on the map (you cannot), and give them the link (ui_url). Shapes stay on the map. With estimate_only, nothing is created: the answer is the threshold and number Create would make (the number made can differ from the one asked for).

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>",
      "delineation_id": "<delineation_id>"
    },
    "name": "create_sub_catchments"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoA short name for a new set (up to 200 characters)
project_idYesThe project ID (Editor rights)
target_countNoAbout how many sub-catchments to make (1 to 500). The default is about 20. Not with threshold_m2.
threshold_m2NoInstead of a target number: the stream threshold in square metres (a stream starts where this much ground drains to it). Not with target_count.
catchment_idsNoThe line's catchments to cover (get_delineation's catchment ids). Default: all of them (or the set's own).
estimate_onlyNoTrue: create nothing, and answer what Create would make with these choices (the stream threshold and the number of sub-catchments and nodes, the engine's own figures), as the step shows before Create.
forced_pointsNoPlaces that must be a node, as [[lon, lat], ...] (WGS84), for example a gauge or a road crossing.
delineation_idYes`delineation_id` of a line run at High resolution (read it with get_delineation)
sub_catchments_idNoTo create a set again (its draft, or a new draft after a confirmed version): its `sub_catchments_id`. Omit it to create a new set. An agent creates again only a set an agent made.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.6

TDQS

A4.6/5.0
Behavior4/5

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

Goes well past the annotations by disclosing the async cloud path (answer is `creating` and get_sub_catchments waits), the draft state that requires human confirmation on the map, the returned `ui_url`, and that shapes stay on the map. The only shortfall is that it doesn't say what happens to an existing draft when a set is re-created or how long a cloud run typically takes; annotation coverage keeps the bar low, so this is strong.

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 core action and hard prerequisite are front-loaded in the first two sentences, and every later sentence carries real information. It runs long with stacked parentheticals and quotes, which slows scanning for an agent, but no sentence is pure filler.

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 9-parameter mutation with async cloud execution, the description covers the prerequisite, the parameter trade-off, the preview mode, the draft/human-confirmation handoff, and the follow-up tool for polling. An output schema exists, so not explaining return shapes in detail is acceptable, and the async status vocabulary is still given.

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

Parameters4/5

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

With 100% schema coverage the baseline is 3, and the description adds genuine meaning beyond it: that the produced count can differ from the requested target count, that catchment_ids defaults to all of the line's catchments, and the policy that an agent only re-creates a set it made itself. It largely restates the target_count/threshold_m2 mutual exclusion already documented in the schema, which keeps it from a 5.

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 ("Create sub-catchments from a line's catchments") and immediately states what the output contains: sub-catchments draining to nodes, measured facts, total catchments, and reaches. This is clearly distinguishable from get_sub_catchments and edit_sub_catchments named among siblings.

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?

Explicit preconditions and exclusions: the line must have a High resolution result, fast-screen is refused with the literal message 'High res only', and creation is either by target number or stream threshold, never both. It also states when to use estimate_only (preview, create nothing) and when sub_catchments_id applies (re-creating an agent-made set).

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