Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Fetch terrain from a Hydrata source

create_terrain_from_source

Fetches terrain from a Hydrata source by key, imports and reprojects the DEM, seeds project input rows, and polls until the import completes or times out.

Instructions

Have Hydrata fetch a terrain from one of its own sources, then wait for the import (like get_terrain).

Never fetch terrain from outside Hydrata where a Hydrata source covers the site; if none does, the person uploads their own DEM in the project map.

Use a key from list_terrain_sources. Hydrata fetches, reprojects and publishes the DEM and seeds the project's default input rows; the DEM's datum is stamped by the source. The result is get_terrain's envelope (outcome ready | error | timed_out, terrain, polls) plus terrain_source: the source's key, name, resolution_m, licence, credit and vertical_datum. timed_out is normal for a large area: keep calling get_terrain(project_id, terrain_id). A refusal (the box is over the source's size cap, the source has no data there, an unknown source) comes back as outcome: refused with the reason in say_to_user and nothing is created.

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>",
      "bbox": "<bbox>",
      "source": "<source>",
      "levels_datum": "<levels_datum>"
    },
    "name": "create_terrain_from_source"
  }
}

Input Schema

NameRequiredDescriptionDefault
bboxYesThe site as [min_lon, min_lat, max_lon, max_lat] in WGS84 degrees
titleNoTerrain title (default: the source name and box)
sourceYesA source `key` from list_terrain_sources, e.g. `ga_lidar_5m` or `copernicus_glo30`
project_idYesThe project ID (the key needs Contributor rights; a launch-level key since the import can start AWS Batch)
levels_datumYesREQUIRED. The datum the PERSON'S levels (study, survey, tailwater) are on: `AHD`, `NAVD88`, `Ordnance Datum Newlyn`, or an EPSG vertical code such as `EPSG:5711`. Ask the user; never guess. Recorded on the project, NOT as the terrain's own datum.
timeout_secondsNoHow long this call keeps polling the import before it returns `timed_out` (default 110, ceiling 110). 0 = start it and return at once; then call get_terrain.
poll_interval_secondsNoSeconds between polls (default 5)

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: -180New value: +110
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long this call keeps polling the import before it returns `timed_out` (default 180, ceiling 200). 0 = start it and return at once; then call get_terrain."New value: +"How long this call keeps polling the import before it returns `timed_out` (default 110, ceiling 110). 0 = start it and return at once; then call get_terrain."
  2. Changed2 schema fields changedv0.2.2
    • addedInput schema / properties / levels_datum
      Added value: +{
      +  "description": "REQUIRED. The datum the PERSON'S levels (study, survey, tailwater) are on: `AHD`, `NAVD88`, `Ordnance Datum Newlyn`, or an EPSG vertical code such as `EPSG:5711`. Ask the user; never guess. Recorded on the project, NOT as the terrain's own datum.",
      +  "type": "string"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "project_id",
      -  "bbox",
      -  "source"
      -]New value: +[
      +  "project_id",
      +  "bbox",
      +  "source",
      +  "levels_datum"
      +]
  3. Addedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, openWorldHint=false and idempotentHint=false; the description goes far beyond them by describing fetch/reproject/publish, seeding of default input rows, the datum-stamping rule, and the refusal path that creates nothing. It also makes clear that timed_out is not a failure and that a refusal carries its reason in say_to_user.

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 core action, then the exclusion, then the mechanics and return shape — a logical order. It is dense and parenthetical-heavy, but nearly every clause carries operational information.

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 mutation tool with an output schema, it covers the gaps that matter: what gets created, the refusal and timeout semantics, and how to resume polling. Nothing an agent needs in order to call it safely is missing.

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 bbox, source, levels_datum and the timeout/poll knobs are already fully documented in the schema. The description reinforces the source-key requirement but adds little that is not already in the structured fields; 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?

Opens with a specific verb+resource: "Have Hydrata fetch a terrain from one of its own sources, then wait for the import." It immediately distinguishes itself from get_terrain (waiting) and from the upload path, so an agent can tell what it does 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 explicit when-to-use and when-not-to-use: "Never fetch terrain from outside Hydrata where a Hydrata source covers the site; if none does, the person uploads their own DEM." It also points to list_terrain_sources for the key and to get_terrain for continued polling, covering the alternatives and the fallback.

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