Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Read ground levels at points

sample_terrain
Read-onlyIdempotent

Read the ground level of a terrain at points, to place a culvert, inflow or boundary on the ground.

Instructions

Read the ground level of a terrain at points, to place a culvert, inflow or boundary on the ground.

Returns samples: for each point you gave, in order, lon, lat and level (the terrain's own height in metres, on the terrain's vertical datum: see get_terrain vertical_datum). level is null where the terrain has no data or the point lies outside it: say so, never treat it as zero. These are the same values the browser's Profile panel reads. Read-only; changes nothing.

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>",
      "points": "<points>"
    },
    "name": "sample_terrain"
  }
}

Input Schema

NameRequiredDescriptionDefault
pointsYesUp to 500 [longitude, latitude] pairs in WGS84 degrees (longitude FIRST), e.g. [[149.1, -35.28]]
project_idYesThe project ID
terrain_idYesThe terrain ID (get_terrain, or the `terrain` on get_scenario)

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent and non-destructive behavior, yet the description still adds real value: the null semantics ("never treat it as zero") for missing or out-of-extent points, and the vertical datum reference to get_terrain. "Read-only; changes nothing" merely repeats the 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-loads the verb, resource and purpose in the first clause, then explains the return value and the null pitfall. A few phrases are redundant with structured fields ("Returns `samples`" alongside an output schema, "Read-only; changes nothing" alongside readOnlyHint).

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?

Annotations and a rich schema cover most behavior, and the description fills the key remaining gap – what a null level means and which datum the heights are on. Little is missing for an agent to call this 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 coverage is 100% and the schema already documents the 500-point cap, WGS84 degrees, longitude-first ordering. The description only reinforces "for each point you gave, in order", so baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Read the ground level of a terrain at points") plus the downstream purpose (placing culverts, inflows, boundaries). It does not name a sibling such as terrain_profile to disambiguate point-sampling from profile-reading, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Gives a clear motivating context (grounding culverts/inflows/boundaries) and notes these are the same values the browser Profile panel reads, which implies parity with the UI. There is no explicit when-not guidance or named alternative for related sampling tasks.

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