Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Adopt a confirmed line's catchments as a layer

adopt_catchments

Adopt a confirmed line's catchments as a GeoNode layer to style and share, replacing an existing adopted layer only after user approval and marking it unreviewed.

Instructions

Adopt a confirmed line's catchments as a GeoNode layer of the project: a snapshot to style and share.

Refused unless a person has confirmed the line (ask them to, in the browser). When the line already has an adopted layer, the call is refused with that layer and its 'the line has changed since' mark: ask the user, and call again with replace=true only if they say yes. The layer you adopt is marked as made by an agent and unreviewed. The same mark is on get_delineation's adopted_layer. Give the user the link (ui_url): the layer is on the map in Adopted catchments.

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

Input Schema

NameRequiredDescriptionDefault
replaceNoTrue only after the user said yes to replacing the contents of the line's adopted layer with the catchments as they are now (maps that show the layer then show the new catchments).
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 (Editor rights)
delineation_idYes`delineation_id` of a line a person has confirmed
authored_methodNoOne short phrase saying why you are adopting these catchments. Shown to the person who reviews it.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.5

TDQS

A4.4/5.0
Behavior5/5

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

Goes well past the annotations by disclosing refusal conditions, the 'agent-made and unreviewed' provenance mark, the 'line has changed since' mark returned on refusal, that the same mark appears on get_delineation's adopted_layer, and the ui_url the user should be given. It also makes clear that replace overwrites the existing adopted layer's contents, which is the one nuance an agent could otherwise miss given destructiveHint=false.

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?

Purpose is front-loaded in the opening clause, then refusal conditions, then the required user-facing action. Slightly fragmented by line breaks and repeats the 'refused' construction twice, but no sentence is wasted.

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?

An output schema exists, yet the description still tells the agent what to do with the result (hand the user ui_url) and how provenance is signaled across tools. For a guarded mutation with refusal paths, that covers everything needed to call it correctly.

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 replace, sources, authored_method and the two required IDs are already documented in the schema. The description only reinforces the replace confirmation workflow and the sources/method pairing, adding little new parameter meaning beyond the baseline.

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: adopt a confirmed line's catchments as a GeoNode layer of the project, and clarifies the result is 'a snapshot to style and share'. That distinguishes it from use_catchments_as_boundary and get_delineation without opening a schema.

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?

Gives explicit preconditions and exclusions: refused unless a person has confirmed the line, and refused when an adopted layer already exists, with the remedy (ask the user, retry with replace=true). What is missing is any pointer to the sibling that handles the non-adoption case (e.g. use_catchments_as_boundary).

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