Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Create a time series

create_time_series

Creates rain gauge, hydrograph, or tide/stage time series in a Hydrata project for flood simulation, validating timestamps, units, and row shape before submission.

Instructions

Create a time series (rain gauge, hydrograph, tide/stage) in a project.

ASK FIRST: before you write any input, ask the person which approach they want (rain-on-grid, or an inflow hydrograph at a place they name), whether by 'hydrograph' they mean an inflow that drives the model or the flow they want out of the results, and for their design rainfall and losses; do not choose or source these yourself unless they ask you to.

POSTs /projects//time-series/ with series_type and units as top-level fields. series_type is checked against the four choices and data against the {"rowData": [{timestamp, value}, ...]} shape before any request is made — the API answers 500 (not 400) to a malformed row. Returns a compact record — id, name, series_type, units, timezone, row_count, http_status — not the echoed rows; fetch the full row with the REST API (GET /projects//time-series//) if you need to round-trip it. A rainfall polygon references its gauge by the series NAME, so create the gauges with the exact names the rainfall GeoJSON's features carry.

The units must match the series_type (see units), and a hydrograph or hyetograph must END at 0 unless hold_last_value is true. The result carries Hydrata's own summary of the series (peak, volume or depth, first and last stamp, trailing value): repeat those numbers to the user (say_to_user does) rather than computing your own.

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

Input Schema

NameRequiredDescriptionDefault
dataYesThe rows: {"rowData": [{"timestamp": "1998-08-17T00:00:00", "value": 1.5}, ...]}. Timestamps ISO 8601, values numeric. Validated here before anything is sent. 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.
nameYesSeries name, kept VERBATIM — a rainfall polygon binds to its gauge by this exact name (its `data` property), so use the name the GeoJSON features carry
unitsNoUnits of the values. REQUIRED for hyetograph ('mm/hr' or 'mm/h'), hydrograph ('m3/s', 'm^3/s' or 'cumec') and stage ('m'): the engine reads those units whatever the label says, so a mismatch is refused before anything is sent. Free for generic.
methodNoOne short phrase saying how you got these numbers (e.g. 'read off the council hydrograph PDF', 'scaled the 1% AEP peak'). Shown to the person who reviews the inputs.
sourceNoWhere the data came from, e.g. a gauge id or agency (optional)
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.
timezoneNoIANA timezone of the series, e.g. 'UTC', 'Europe/London' or 'America/Chicago': the zone its stamps with no offset are read in and its summary is shown in. Omit it to use the project's zone (Hydrata derives it from where the project is; UTC for a project with no location); the result reports the zone saved. 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).
project_idYesThe project ID
descriptionNoFree-text description (optional)
series_typeNoOne of hyetograph (rainfall depth/intensity — the default), hydrograph (flow that DRIVES an inflow boundary: an input, not a result; the flow out of a run comes from get_flow_hydrograph), stage (water level, e.g. a tide) or generic. Sent as a top-level field.hyetograph
location_nameNoHuman-readable location of the gauge (optional)
rainfall_basisNoREQUIRED for a hyetograph (rainfall): `excess` = rain AFTER losses (what you write; the simulation applies no losses) or `gross` = rain before losses (a design storm). Ignored for other series types.
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. A hydrograph or hyetograph whose last value is not 0 is refused (TRAILING_VALUE_HELD) unless this is true: end the series with a 0 row instead, unless holding is really intended.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.2.5
    • changedInput schema / properties / timezone / default
      Previous value: -"UTC"New value: +""
    • changedInput schema / properties / timezone / description
      Previous value: -"IANA timezone of the series (default 'UTC'), e.g. 'Australia/Sydney': the zone its stamps with no offset are read in and its summary is shown in. 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)."New value: +"IANA timezone of the series, e.g. 'UTC', 'Europe/London' or 'America/Chicago': the zone its stamps with no offset are read in and its summary is shown in. Omit it to use the project's zone (Hydrata derives it from where the project is; UTC for a project with no location); the result reports the zone saved. 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)."
  2. Changed6 schema fields changedv0.2.2
    • changedInput schema / properties / data / description
      Previous value: -"The rows: {\"rowData\": [{\"timestamp\": \"1998-08-17T00:00:00\", \"value\": 1.5}, ...]}. Timestamps ISO 8601 (a trailing Z is tolerated), values numeric. Validated here before anything is sent."New value: +"The rows: {\"rowData\": [{\"timestamp\": \"1998-08-17T00:00:00\", \"value\": 1.5}, ...]}. Timestamps ISO 8601, values numeric. Validated here before anything is sent. 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 after the series ends. A hydrograph or hyetograph whose last value is not 0 is refused (TRAILING_VALUE_HELD) unless this is true: end the series with a 0 row instead, unless holding is really intended."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. A hydrograph or hyetograph whose last value is not 0 is refused (TRAILING_VALUE_HELD) unless this is true: end the series with a 0 row instead, unless holding is really intended."
    • addedInput schema / properties / rainfall_basis
      Added value: +{
      +  "default": "",
      +  "description": "REQUIRED for a hyetograph (rainfall): `excess` = rain AFTER losses (what you write; the simulation applies no losses) or `gross` = rain before losses (a design storm). Ignored for other series types.",
      +  "type": "string"
      +}
    • changedInput schema / properties / series_type / description
      Previous value: -"One of hyetograph (rainfall depth/intensity — the default), hydrograph (flow, read by the Hydrographs panel and inflow boundaries), stage (water level, e.g. a tide) or generic. Sent as a top-level field."New value: +"One of hyetograph (rainfall depth/intensity — the default), hydrograph (flow that DRIVES an inflow boundary: an input, not a result; the flow out of a run comes from get_flow_hydrograph), stage (water level, e.g. a tide) or generic. Sent as a top-level field."
    • 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."
      +}
    • changedInput schema / properties / timezone / description
      Previous value: -"IANA timezone of the timestamps (default 'UTC'), e.g. 'Australia/Sydney'"New value: +"IANA timezone of the series (default 'UTC'), e.g. 'Australia/Sydney': the zone its stamps with no offset are read in and its summary is shown in. 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)."
  3. Changed1 schema field changedv0.2.0
    • addedInput schema / properties / method
      Added value: +{
      +  "default": "",
      +  "description": "One short phrase saying how you got these numbers (e.g. 'read off the council hydrograph PDF', 'scaled the 1% AEP peak'). Shown to the person who reviews the inputs.",
      +  "type": "string"
      +}
  4. First observedv0.2.1

TDQS

A4.5/5.0
Behavior4/5

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

Goes well past the annotations (readOnlyHint=false, destructiveHint=false): it discloses pre-flight validation against the four series types and the rowData shape, warns that the API answers 500 rather than 400 to a malformed row, and notes the response is a compact record rather than echoed rows. It also flags the trailing-zero refusal (TRAILING_VALUE_HELD) and that Hydrata's own summary numbers should be repeated rather than recomputed. Minor gap: non-idempotency (duplicate creates) is not discussed.

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 one-line purpose, then the ask-first protocol, then API/return behavior — a sensible reading order with no filler sentences. It is long, and a few clauses (units/series_type matching, END at 0) restate schema text that the agent will read anyway, costing some density.

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?

Rich enough for a 13-parameter, nested-object write tool: it covers validation, the 500-instead-of-400 failure mode, timezone/last-row semantics, the REST round-trip for full rows, and the reviewer-facing summary. With an output schema present it correctly does not enumerate return fields beyond the compact record names, leaving little an agent would still need to guess.

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 baseline is 3, but the description surfaces cross-parameter couplings at a glance that the schema states only per-property: series_type checked against the four choices, units that must match series_type, and the trailing-zero/hold_last_value interaction. It also adds the operational rule that rainfall polygons bind to gauges by exact series NAME, which shapes how `name` must be chosen.

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?

Names a specific verb and resource plus the concrete variants it covers (rain gauge, hydrograph, tide/stage) and, in the series_type text, explicitly draws the input-vs-result line against get_flow_hydrograph. An agent can tell this apart from update_time_series, list_time_series and create_observation_layer without opening another 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?

The ASK FIRST block gives an explicit pre-call protocol: ask which modelling approach, disambiguate 'hydrograph' as inflow vs result, and obtain design rainfall and losses rather than self-sourcing them. It also states the alternative source of truth (get_flow_hydrograph) for the flow out of a run, so the when-not case is covered, not just the when.

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