Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Propose a new boundary between two sub-catchments

propose_sub_catchment_boundary

Propose a new boundary between two sub-catchments when terrain does not match expected water flow, then file it for human review.

Instructions

Propose a new boundary between two sub-catchments (a dragged boundary). It is filed WAITING: the draft shows it, and only a person decides it on the map (Keep as drawn, or Make the terrain agree, where the two sub-catchments take the ground the terrain gives them with a drainage barrier on the line; the terrain itself does not change), or undoes it. The sub-catchments cannot be confirmed while it waits. Read the two outlines first (get_sub_catchments with outlines_of) and the ground (terrain_profile), and use it only when you can say why water goes this way and the terrain does not show it. Tell the user it is waiting and give them the link (ui_url).

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>",
      "sub_catchments_id": "<sub_catchments_id>",
      "sub_catchment_ids": "<sub_catchment_ids>",
      "line": "<line>",
      "reason": "<reason>"
    },
    "name": "propose_sub_catchment_boundary"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesThe new stretch of boundary as [[lon, lat], ...] (at least 2 points, WGS84). Start and end it ON the boundary the two share now; the ground between the old and the new boundary changes sides.
reasonYesOne or two sentences the person reads before deciding: what you saw (for example a road or a drain the terrain does not hold) and why the boundary goes this way.
project_idYesThe project ID (Editor rights)
preview_terrainNoTrue: also work out (without storing anything) how much of the dragged ground the terrain would send the same way with a drainage barrier along the line, and say so. It takes a little longer.
sub_catchment_idsYesThe two sub-catchments either side of the boundary (their ids)
sub_catchments_idYesThe set: its `sub_catchments_id`

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.6

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare a non-read-only, non-destructive, non-idempotent write; the description adds the crucial lifecycle fact that the proposal is filed WAITING and needs a human decision on the map, that sub-catchments cannot be confirmed meanwhile, and that the terrain itself is not modified even under 'Make the terrain agree'. This goes well beyond what the annotations convey.

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?

Front-loads the action, then the waiting-state behavior, then prerequisites and follow-up — a sensible order. It is dense with nested parentheses and a mid-sentence fork about the two decision outcomes, which costs some readability, but no sentence is 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 6-parameter, human-in-the-loop mutation with an output schema already documenting returns, the description supplies everything an agent needs: preconditions, the fact the action is not final, side effects on confirmability, and the required user communication. Nothing material is missing.

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?

Schema coverage is 100%, so baseline is 3; the description still adds workflow meaning beyond field definitions by tying `reason` to a human decision-maker, positioning outlines/terrain reads before the call, and surfacing `ui_url` as the user hand-off. It does not restate field-level mechanics such as the coordinates format, which the schema already covers.

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?

States a specific verb and resource ('Propose a new boundary between two sub-catchments') and glosses it as 'a dragged boundary', then explains the geometry consequence: the ground between the old and new boundary changes sides. An agent can distinguish this from catchment-creation or drainage-correction tools without opening the schema.

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?

Gives an explicit precondition for use ('use it only when you can say why water goes this way and the terrain does not show it') and names the prerequisite reads (get_sub_catchments with outlines_of, terrain_profile). It also states the post-call obligation: tell the user it is waiting and give them ui_url.

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