Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Merge project terrains into one

merge_terrains

Merge two or more of the project's terrains into one new terrain, in the priority order given.

Instructions

Merge two or more of the project's terrains into one new terrain, in the priority order given.

Use it when no single terrain covers the site well, e.g. a fine LiDAR survey over the channel and a coarser terrain around it. The first terrain's heights are kept as they are; the ones below can be shifted slightly so they meet it without a step at the seams (the same as the map's merge). Gaps in a higher terrain are filled from the ones below. The reply gives the size estimate (grid cells) and analysis_surface_id; the merge takes minutes, so follow it with get_terrain_merge until ready, then use the merged terrain like any other. A refusal (too large for the resolution, a coarser terrain above a finer one) comes back as outcome: refused with Hydrata's reply unchanged in hydrata_reply; nothing is kept.

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_ids": "<terrain_ids>",
      "target_resolution_m": "<target_resolution_m>"
    },
    "name": "merge_terrains"
  }
}

Input Schema

NameRequiredDescriptionDefault
titleNoName of the merged terrain (default: 'Merged terrain')
project_idYesThe project ID (the key needs Contributor rights; a launch-level key, since the merge can run on AWS Batch)
terrain_idsYesTwo or more of the project's terrain IDs, highest priority FIRST (the one whose heights win where they overlap, usually the finest survey), then the ones that fill in around and under it
merge_extent_wgs84NoOptional area to keep, [min_lon, min_lat, max_lon, max_lat] in WGS84 degrees; omit for the whole of the terrains' combined area
target_resolution_mYesCell size of the merged terrain in metres, e.g. 2
acknowledge_coarser_above_finerNoTrue only after the user agreed to put a coarser terrain above a finer one (a design surface over a survey); Hydrata refuses that order otherwise

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A4.4/5.0
Behavior5/5

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

Annotations only declare that this is a non-read-only, non-destructive, non-idempotent write; the description adds the substantive behavior: heights of the first terrain are kept, lower terrains are shifted to avoid seam steps, higher-terrain gaps are backfilled, the merge is asynchronous and takes minutes, and refusals (too large for resolution, coarser above finer) leave nothing behind. That is exactly the extra context annotations cannot 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-loaded with purpose, then behavior, then the async/follow-up contract, then failure handling. Dense but nearly every sentence carries operational information; the parenthetical examples are useful rather than filler, though the block is longer than typical for a single tool.

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 multi-minute asynchronous merge with a refusal path, the description supplies what an agent needs: the polling contract, the failure output shape (`outcome: refused`, `hydrata_reply`), and the fact that nothing is retained on refusal. Return fields are partly mentioned but a output schema exists, so that is not a gap.

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 launch-level key requirement and acknowledge_coarser_above_finer) are already documented in the schema. The description reinforces priority ordering and the refusal semantics but adds no parameter-level detail the schema lacks; 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 and resource: 'Merge two or more of the project's terrains into one new terrain, in the priority order given.' The scope (project terrains, ordered priority) is explicit and an agent can distinguish it from siblings like create_terrain_from_source or get_terrain_merge without reading 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete condition for use ('when no single terrain covers the site well, e.g. a fine LiDAR survey over the channel and a coarser terrain around it') and routes the agent to get_terrain_merge for polling. It does not state an explicit when-not or name a competing merge alternative, but the use case and follow-up path are clear.

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