Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Propose a drainage barrier, opening or excluded ground

propose_drainage_correction

Propose a drainage barrier, opening, or excluded ground so a terrain's drainage analysis matches where water really goes; the fix stays pending until a person accepts it on the map.

Instructions

Propose a drainage barrier, a drainage opening or excluded ground for a terrain. It is stored as a PROPOSAL and is NOT applied: a person accepts it on the map, and only then does the drainage analysis use it.

Use it when a delineation warning names a fix (a drainage_analysis_changed_ground warning's fix is drainage_barrier or drainage_opening, with fix_sentence, where and the cut or fill geometry), or when you can say exactly where water really goes and the terrain does not show it. Read the ground first with terrain_profile. Tell the user the proposal is waiting and give them the link (ui_url): it opens a line on this terrain (line_to_open, named in the sentence) with the proposal. Lines on the terrain change only after the person accepts it and they run again.

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>",
      "terrain_id": "<terrain_id>",
      "kind": "<kind>",
      "reason": "<reason>"
    },
    "name": "propose_drainage_correction"
  }
}

Input Schema

NameRequiredDescriptionDefault
areaNoFor excluded ground drawn by you: the ring as [[lon, lat], ...] (at least 3 points; it is closed for you).
kindYesdrainage_barrier: a line water cannot cross (an embankment the terrain does not hold); drainage_opening: a line water passes through (a culvert or gap the terrain does not show), which can grow a catchment; excluded_ground: ground left out of the drainage analysis.
lineNoFor a barrier or an opening: the line as [[lon, lat], ...] (at least 2 points, WGS84). For an opening, from where the water is to where it goes; for a barrier, across the way the water should not go.
reasonYesOne or two sentences the person reads before accepting: what you saw (for example the warning's sentence) and why this fixes it.
project_idYesThe project ID (Editor rights)
terrain_idYesThe terrain the correction belongs to (a delineation's `line.terrain_id`)
delineation_idNoThe line the person should look at; the link opens it when it is on this terrain. Omit it and Hydrata picks a line on the terrain (the newest confirmed, else the newest).
from_import_checkNoFor excluded ground: propose the extrapolated ground the terrain's import check marked (no `area`).

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A4.5/5.0
Behavior3/5

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

Adds substantial behavior beyond the annotations: the object is stored as a PROPOSAL and is not applied, a human must accept it on the map, and terrain lines change only after acceptance plus a re-run. That human-in-the-loop gating is the single most important fact here and is not in the annotations. However, it omits failure modes for a non-idempotent (idempotentHint=false) write — e.g. what happens if you propose twice, or what happens when the delineation_id is not on the terrain.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose plus the non-negotiable proposal-only behavior in the first two sentences, then the trigger conditions and workflow. Dense with backticked field names but every clause carries operational information rather than restating the name.

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 an 8-parameter, 4-required mutation with a full output schema, the description supplies exactly what the schema cannot: the human-acceptance gate, the upstream warning workflow, the prerequisite profiling call, and the user-facing follow-up. Nothing an agent needs to invoke and then correctly report the result 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 already 100%, so the schema carries the bulk; the description nonetheless adds real meaning by mapping the warning's `fix` values onto the `kind` enum and the warning's `geometry`/`where` onto the line/area inputs, and by explaining that `ui_url` opens `line_to_open`, which ties back to `delineation_id`. It does not explain the `from_import_check` versus `area` exclusivity that the schema handles alone.

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?

Names a specific verb (propose) and the three concrete resources it covers (drainage barrier, drainage opening, excluded ground) scoped to a terrain, and immediately separates this from the read-side sibling by pointing to terrain_profile for reading the ground.

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 explicit trigger conditions: a `drainage_analysis_changed_ground` warning whose `fix` is `drainage_barrier` or `drainage_opening`, or a case where the user can state exactly where water goes but the terrain does not show it. It also states the prerequisite (read the ground with terrain_profile first) and the follow-up obligation (tell the user a proposal is waiting and hand them the `ui_url`).

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