Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Record the datum of the user's levels

set_levels_datum
Idempotent

Record which height datum the user's own levels are on, for a project that already has its terrain.

Instructions

Record which height datum the user's own levels are on, for a project that already has its terrain.

Use it when get_terrain or get_project says the project has no levels datum, or the user corrects it. For a new terrain, pass levels_datum to create_terrain_from_source instead. This is a fact about the person's numbers, not about the terrain: it never changes the terrain's own datum. Hydrata compares the two and returns levels_datum_mismatch when they differ: relay it.

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

Input Schema

NameRequiredDescriptionDefault
project_idYesThe project ID (the key's person needs Editor rights on it)
levels_datumYesThe datum the PERSON'S levels (study, survey, tailwater) are on, in their words: `AHD`, `NAVD88`, `Ordnance Datum Newlyn`, or an EPSG vertical code such as `EPSG:5711`. Ask the user; never guess.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare this is a non-read-only, idempotent, non-destructive, closed-world write; the description adds what they cannot: that only the person's datum is recorded, that the terrain's datum is deliberately untouched, and that the server compares the two and surfaces a `levels_datum_mismatch` value the agent is expected to relay. That downstream consequence is the most important behavioral fact and is absent from any structured field.

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 the purpose in the first sentence, then trigger, then alternative, then scope. The clause 'This is a fact about the person's numbers, not about the terrain' overlaps with the following sentence about the terrain's datum never changing, so one of the two could be trimmed without losing meaning.

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 two-parameter write with annotations and an output schema, the definition covers the remaining gaps: precondition, scope of effect, the mismatch field to relay, and where a sibling handles the adjacent case. Nothing an agent needs to invoke it correctly 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 coverage is 100%, so both parameters are already documented in structured data, including the 'Ask the user; never guess' instruction. The description reinforces the ownership semantics ('the user's own levels') but adds no formats, validation rules, or edge cases beyond what the schema states, so the baseline of 3 is right.

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 — recording the height datum of the user's own levels — and immediately scopes it against the two nearby confusions: the terrain's own datum and the levels_datum argument of create_terrain_from_source. An agent can distinguish it from convert_terrain_datum and create_terrain_from_source without opening either 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 an explicit trigger ('when get_terrain or get_project says the project has no levels datum, or the user corrects it') plus a named alternative for the other case ('For a new terrain, pass levels_datum to create_terrain_from_source instead'). It also implies a precondition — the project must already have its terrain — which rules out premature calls.

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