Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Create a flood observation layer

create_observation_layer

Creates a project-level flood observation layer for real flood evidence (marks, levels, gauge records, dry points) and waits until its map layer is ready before observations can be added.

Instructions

Create a flood observation layer in a project and wait for its map layer.

A flood observation layer holds real flood evidence (Flood marks, Timed levels, Gauge records, Dry points) that every historic run is compared with (Compare with observations). It is project-level: it is never a scenario input. POSTs /projects//flood-observations/, then polls the layer until its GeoServer layer exists (ready), usually a few seconds; until then add_observations refuses. On timed_out, call list_observations later.

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>",
      "title": "<title>"
    },
    "name": "create_observation_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleYesLayer title, e.g. 'August 1998 survey'
project_idYesThe project ID
datum_offset_mNoMetres ADDED to every stage on the layer to bring it onto the terrain datum. Required for vertical_datum=local; null means 0 otherwise
vertical_datumNoThe datum the layer's stages are on: terrain (default, 'Same as terrain'), local ('Local datum (constant offset)', needs datum_offset_m), or the vertical datum the levels were surveyed on: an EPSG vertical CRS (e.g. 'EPSG:5703') or the datum's own name (at most 32 characters). Ask the user; never assume one from the countryterrain
timeout_secondsNoHow long to wait for the map layer (clamped to 110)
poll_interval_secondsNoSeconds between layer polls

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.4
    • changedInput schema / properties / timeout_seconds / default
      Previous value: -120New value: +110
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long to wait for the map layer (clamped to 200)"New value: +"How long to wait for the map layer (clamped to 110)"
  2. Changed1 schema field changedv0.2.0
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long to wait for the map layer (clamped to 280)"New value: +"How long to wait for the map layer (clamped to 200)"
  3. First observedv0.2.1

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic non-read-only, non-destructive profile. The description adds the genuinely non-obvious behavior: it POSTs then polls until the GeoServer layer exists, typical latency is 'a few seconds', it can end in timed_out, and add_observations will reject calls until ready. That async-and-blocking semantics is exactly what an agent cannot infer from 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?

Front-loaded with the action and the definition of the resource, then the project-level constraint, then the mechanics. The parenthetical enumeration and the layered detail are slightly dense, but every sentence carries information an agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Output schema exists so return values need no explanation, and the async/polling story is fully told. What's left thin is the error surface beyond timed_out (e.g. whether a duplicate title is rejected, given idempotentHint=false) and what the caller should do after a non-timeout failure.

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 all six parameters, including the tricky datum_offset_m/vertical_datum pairing, are already documented in the schema. The description adds no parameter-level meaning beyond what the schema states, so the baseline 3 applies.

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 ('Create a flood observation layer in a project') and immediately defines what that resource holds (Flood marks, Timed levels, Gauge records, Dry points). It also draws the key boundary against the scenario-input siblings: 'It is project-level: it is never a scenario input.'

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?

Explicitly names the downstream consumer ('every historic run is compared with (Compare with observations)') and the sibling it gates ('until then add_observations refuses'). It also gives a fallback path for the failure case: 'On timed_out, call list_observations later.' When-to-use and what-to-do-when-it-doesn't-complete are both covered.

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