Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Correct a time series

update_time_series
Idempotent

Correct a time series you created (PATCH; only the fields you pass change).

Instructions

Correct a time series you created (PATCH; only the fields you pass change).

Use it to fix a series instead of leaving a wrong one behind. The same rules as create_time_series apply to new rows (units match the type, a hydrograph or hyetograph ends at 0 unless hold_last_value, at least 2 rows, no negative rain or flow, not all zero) and Hydrata refuses with the reason in plain words. A series already used by a built scenario changes the scenario: it needs a rebuild and the user reviews it again. Returns a compact record, not the rows.

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

Input Schema

NameRequiredDescriptionDefault
dataNoReplacement rows: {"rowData": [{"timestamp": "<ISO 8601>", "value": <number>}, ...]}. Validated here before anything is sent; Hydrata refuses fewer than 2 rows, negative rain or flow values and an all-zero rain or flow series. Time zones: a stamp with no offset is a wall clock in the series timezone; a stamp with Z or +hh:mm is that instant, stored in UTC and shown in the series timezone; one series never mixes the two (Hydrata refuses it with MIXED_TIMESTAMP_FORMS). How the simulation reads the rows: for rainfall and flow, each value holds from its timestamp until the next row's (a step: no straight line between rows), so send ONE row per interval, at its START (e.g. every 5 minutes), and end with a 0 row at the end of the last interval; never add a row just before the next one, it changes nothing. Rainfall values are rates (mm/hr): the depth of an interval is rate x its length. Use whole-second timestamps. A stage series is the exception: the level goes in a straight line between rows.
nameNoNew name (a rainfall polygon binds to its gauge by this exact name)
unitsNoNew units (must match the series_type, as in create_time_series)
methodNoOne short phrase saying how you got the new numbers. Replaces the earlier account.
sourcesNoThe documents this came from, so the engineer can click through to them: a list of {title, url, locator}, e.g. [{title: 'GHD 2015 Sullivans Creek Flood Study', url: 'https://...', locator: 'Table 5-2'}]. Limits: title (1-200 characters) and url (http or https, at most 2000 characters) are required; locator (a page or table, e.g. 'p. 42' or 'Table 5-2') is optional, at most 100 characters. At most 20 entries. Pass it beside the method whenever you cite a document. Replaces the earlier list.
series_idYesThe time series id (from list_time_series or create_time_series)
project_idYesThe project ID
descriptionNoNew description
series_typeNoNew series_type: hyetograph, hydrograph, stage or generic
rainfall_basisNoState what a rainfall series' numbers are: `excess` (rain after losses) or `gross` (before losses). Use it to correct a series that was saved without a basis.
hold_last_valueNoSet true only when you mean the last value not to be 0. How the simulation reads the last row: a rainfall's last row rains for one more interval (as long as the step before it) and then stops at 0; an inflow's last value is held to the end of the run.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.2.2
    • changedInput schema / properties / data / description
      Previous value: -"Replacement rows: {\"rowData\": [{\"timestamp\": \"<ISO 8601>\", \"value\": <number>}, ...]}. Validated here before anything is sent; Hydrata refuses fewer than 2 rows, negative rain or flow values and an all-zero rain or flow series."New value: +"Replacement rows: {\"rowData\": [{\"timestamp\": \"<ISO 8601>\", \"value\": <number>}, ...]}. Validated here before anything is sent; Hydrata refuses fewer than 2 rows, negative rain or flow values and an all-zero rain or flow series. Time zones: a stamp with no offset is a wall clock in the series timezone; a stamp with Z or +hh:mm is that instant, stored in UTC and shown in the series timezone; one series never mixes the two (Hydrata refuses it with MIXED_TIMESTAMP_FORMS). How the simulation reads the rows: for rainfall and flow, each value holds from its timestamp until the next row's (a step: no straight line between rows), so send ONE row per interval, at its START (e.g. every 5 minutes), and end with a 0 row at the end of the last interval; never add a row just before the next one, it changes nothing. Rainfall values are rates (mm/hr): the depth of an interval is rate x its length. Use whole-second timestamps. A stage series is the exception: the level goes in a straight line between rows."
    • changedInput schema / properties / hold_last_value / description
      Previous value: -"Set true only when the last value is meant to be held"New value: +"Set true only when you mean the last value not to be 0. How the simulation reads the last row: a rainfall's last row rains for one more interval (as long as the step before it) and then stops at 0; an inflow's last value is held to the end of the run."
    • addedInput schema / properties / rainfall_basis
      Added value: +{
      +  "default": "",
      +  "description": "State what a rainfall series' numbers are: `excess` (rain after losses) or `gross` (before losses). Use it to correct a series that was saved without a basis.",
      +  "type": "string"
      +}
    • addedInput schema / properties / sources
      Added value: +{
      +  "anyOf": [
      +    {
      +      "items": {
      +        "additionalProperties": true,
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null,
      +  "description": "The documents this came from, so the engineer can click through to them: a list of {title, url, locator}, e.g. [{title: 'GHD 2015 Sullivans Creek Flood Study', url: 'https://...', locator: 'Table 5-2'}]. Limits: title (1-200 characters) and url (http or https, at most 2000 characters) are required; locator (a page or table, e.g. 'p. 42' or 'Table 5-2') is optional, at most 100 characters. At most 20 entries. Pass it beside the method whenever you cite a document. Replaces the earlier list."
      +}
  2. Addedv0.2.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnly=false, idempotent=true, destructive=false; the description adds substantial context beyond that: partial-update semantics, server-side validation rules that trigger plain-language refusals, the downstream effect on built scenarios (rebuild plus user re-review), and that the return is a compact record rather than the rows. That side-effect disclosure about built scenarios is exactly the kind of consequence annotations cannot convey.

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 verb, resource and PATCH semantics, then usage, then validation, then consequences, then return shape – a sensible order. It is a dense paragraph rather than broken out, and the validation-rule clause is long, but no sentence is filler.

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 an 11-parameter mutation with an output schema, the description covers what an agent needs: mutation style, validation failure behavior, downstream scenario impact, and return shape (the output schema handles the rest). Nothing material for correct invocation is missing.

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; the description still adds value by framing every field as optional-and-replacing ("only the fields you pass change") and by summarizing the rules that govern `data` and `hold_last_value` (units must match type, series ends at 0 unless held, at least 2 rows, no negatives). Some of this overlaps the `data` schema text, which keeps it from a 5.

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 ("Correct a time series you created") and immediately pins down the mutation semantics ("PATCH; only the fields you pass change"). The reference to create_time_series for new rows lets an agent distinguish this from the creation sibling 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 Guidelines4/5

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

Gives a clear when: use it to fix a wrong series rather than leaving it. It also provides the decision-relevant context that a series already used by a built scenario forces a rebuild and user re-review, which may steer an agent toward a different route. It stops short of an explicit "do not use this when..." or naming the sibling to use instead (e.g. delete and recreate for structural problems).

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