Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Read the ground along a line

terrain_profile
Read-onlyIdempotent

Read the ground along a line (a cross-section) to find where a channel runs and snap a structure to it.

Instructions

Read the ground along a line (a cross-section) to find where a channel runs and snap a structure to it.

Returns profile: samples ordered along the line, each with distance_m from the start, lon, lat and level (the terrain's height in metres, on its vertical datum: see get_terrain). lowest is the sample with the minimum level: across a channel it is the invert candidate, and its lon/lat is where the channel is. level is null where there is no data or the line leaves the terrain: those samples are never lowest. The same values the browser's Profile panel draws for the same line. Read-only.

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>",
      "line": "<line>"
    },
    "name": "terrain_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
lineYesThe line to read along: 2 to 150 [longitude, latitude] pairs in WGS84 degrees (longitude FIRST); simplify a longer line, it rides in the request URL
step_mNoMetres between samples (default 5). One call returns at most 500 samples: use a larger step for a long line.
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.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and destructiveHint=false, so the safety profile is covered. The description adds real value beyond that: null-level semantics, that null samples are never 'lowest', and the datum reference to get_terrain. However, it does not restate the 500-sample cap or URL-length constraint that live in the schema, so it is additive but not comprehensive.

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 purpose in the first sentence, then explains the return shape. Dense but each sentence carries information; the parenthetical datum pointer is efficient. Slightly long but no filler.

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?

An output schema exists, yet the description still usefully explains profile/lowest/null semantics and the datum caveat, which is more than required. Combined with 100% schema coverage and full annotations, an agent has what it needs to call it correctly; only the sample-cap/URL constraint is left to the schema.

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 the schema already documents line ordering, step_m default and the 500-sample limit. The description adds little parameter-level meaning beyond the schema; its extra detail concerns output fields (distance_m, level, lowest) rather than inputs. 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 along a line (a cross-section)') plus the downstream intent ('find where a channel runs and snap a structure to it'). It implicitly distinguishes itself from point sampling by emphasizing a line/cross-section, but never names a sibling such as sample_terrain, so it stops short of full differentiation.

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 clear usage context: use it to locate a channel and snap a structure to it, and notes the result matches the browser's Profile panel. It does not state when NOT to use it or name an alternative tool for point reads, so no explicit exclusions.

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