Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Wait for a terrain import

get_terrain
Read-onlyIdempotent

Poll a terrain import until it is ready or errors, bounded by a timeout, and return outcome, status, phase, polls, elapsed time, and terrain record.

Instructions

Poll a terrain's import until it is ready (or error), bounded by timeout_seconds.

Returns outcome — exactly one of ready, error, timed_out, not_found (the project has no terrain yet; an unknown terrain_id is an API 404 error instead) — plus the last status seen (creating → styling → ready | error) and phase (that status, or not_found; never empty), polls, elapsed_seconds and the full terrain record (its gn_layer is the published elevation dataset pk once ready). An import takes minutes to tens of minutes (the SAME 32 MB 1 m DEM measured 4.5 min once and 26 min once — the worker's S3 download speed dominates), so timed_out is normal and NOT a failure: keep calling with the same arguments while status is still creating/styling; several calls in a row is expected. error is terminal — the import failed and no default input rows were seeded; upload a corrected GeoTIFF as a new terrain.

A ready terrain whose import check found extrapolated ground (flat-sided triangles padding it out to its edge, not surveyed ground) carries extrapolated_ground (state flagged or left_out) and a WARNING in say_to_user: relay it. Only the person can leave that ground out of the drainage analysis, on the map.

ready is written by the import task; the project's default input rows (Boundary 01, Friction 01, Inflow 01, Rainfall 01, Building 01, MeshRegion 01, one GeoNode layer each) are seeded by the NEXT task in the chain and appear over the following ~30 s. Poll the input-layer list until it is non-empty before attaching your own layer to a default row.

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

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project ID
terrain_idNoThe terrain ID from finalize_terrain_upload. Omit to follow the project's newest terrain.
timeout_secondsNoHow long this call keeps polling before it returns `timed_out` (default 110, ceiling 110: hydrata.com's edge cuts a longer silent call). 0 = one status read, no waiting.
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 before it returns `timed_out` (default 180, ceiling 200 — claude.ai cuts a tool call at 240 s). 0 = one status read, no waiting."New value: +"How long this call keeps polling before it returns `timed_out` (default 110, ceiling 110: hydrata.com's edge cuts a longer silent call). 0 = one status read, no waiting."
  2. Changed2 schema fields changedv0.2.0
    • changedInput schema / properties / timeout_seconds / default
      Previous value: -240New value: +180
    • changedInput schema / properties / timeout_seconds / description
      Previous value: -"How long this call keeps polling before it returns `timed_out` (default 240, ceiling 280 — the prod /mcp/ proxy cuts a call at 300 s). 0 = one status read, no waiting."New value: +"How long this call keeps polling before it returns `timed_out` (default 180, ceiling 200 — claude.ai cuts a tool call at 240 s). 0 = one status read, no waiting."
  3. First observedv0.2.1

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, but the description goes well beyond them: it enumerates the `outcome` values, distinguishes `not_found` (no terrain yet) from an API 404 on an unknown terrain_id, warns that import duration varies 4.5–26 min for the same DEM so timeout is expected, discloses the eventual-consistency window (~30 s) for default input rows, and flags that `extrapolated_ground` WARNINGs in `say_to_user` must be relayed to the 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?

Core purpose is front-loaded in the first sentence and the rest is dense, non-generic information. There is mild redundancy ('keep calling with the same arguments' followed by 'several calls in a row is expected') and hard line-wraps that split sentences mid-clause, slightly hurting scannability.

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?

Complete for a polling tool: outcome space, terminal vs. retryable states, timing expectations, downstream sequencing, and user-facing warning obligations are all covered, and an output schema exists so return-field documentation is a bonus rather than a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the baseline is 3, but the description adds meaning the schema lacks: the reason timeout_seconds is capped ('hydrata.com's edge cuts a longer silent call'), the 404 semantics for an unknown terrain_id, and the requirement to reuse the same arguments across repeated calls. It does not elaborate poll_interval_seconds beyond the schema.

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 with scope: 'Poll a terrain's import until it is `ready` (or `error`), bounded by timeout_seconds.' The state machine (creating → styling → ready | error) makes it unmistakable versus siblings like create_terrain_from_source or finalize_terrain_upload, which are separate steps in the same chain.

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 ('keep calling with the same arguments while `status` is still `creating`/`styling`; several calls in a row is expected'), an explicit non-failure condition ('`timed_out` is normal and NOT a failure'), an explicit terminal case ('`error` is terminal — upload a corrected GeoTIFF as a new terrain'), and a follow-on sequencing rule (poll the input-layer list until non-empty before attaching a layer).

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