Skip to main content
Glama
Hydrata

Hydrata MCP Server

Official
by Hydrata

Edit one flood observation

update_observation
Idempotent

Edits a flood observation by patching only supplied fields; validation rejects invalid merged data and names bad fields.

Instructions

Edit one flood observation (PATCH; only the fields given change).

The API checks the stored observation merged with changes and refuses (400, every bad field named) rather than store a half-valid one. Photos are not fields: attach a link with add_observation_photo_link.

Input Schema

NameRequiredDescriptionDefault
fidYesThe observation's fid (from list_observations / add_observations)
changesYesOnly the fields to change, in the add_observations write shape (e.g. {"stage_m": 2.5} or a new geometry); validated by the API against the stored observation (a flood_mark or dry_point must keep a date window or a flood_name)
layer_idYesThe flood observation layer id
project_idYesThe project ID

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.1

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only carry the safety profile (readOnly=false, idempotent=true, destructive=false, openWorld=false); the description adds genuinely new behavior: PATCH merge semantics, atomic validation against the stored observation, the 400 failure mode with all bad fields named, and the explicit exclusion of photos. This tells an agent what happens on failure and why no half-valid state is stored.

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?

Purpose and mutation mode are front-loaded in the first clause, followed by the two details an agent actually needs (validation failure behavior, photo routing). Slightly prose-heavy wrapping but every sentence carries information.

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 four-parameter mutation tool with an output schema and full annotation coverage, the description supplies the missing pieces: idempotent partial-update semantics, validation/refusal behavior, and where photo attachments belong. Nothing needed to call it correctly is absent.

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 coverage is 100%, so the baseline is 3, but the description reinforces the meaning of 'changes' as a merge patch (only supplied fields change, merged with the stored record) and explicitly scopes photos out of the field set, which is not stated in 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 ('Edit one flood observation') and immediately qualifies it as PATCH-style partial mutation, which cleanly separates it from add_observations, delete_observation, and add_observation_photo_link in the sibling list.

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?

Explains the operative rule (only fields given change) and routes photos to add_observation_photo_link, which is real alternative-selection guidance. It stops short of stating when a partial edit is preferred over delete+re-add, so it is clear context without explicit exclusions.

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