Skip to main content
Glama
Hydrata MCP Server

Hydrata MCP Server

Official
by Hydrata

Edit a scenario's name, size or attached inputs

update_scenario
Idempotent

Edit a scenario: its name, description, resolution, duration, terrain sampling, solver, or which input rows it points at.

Instructions

Edit a scenario: its name, description, resolution, duration, terrain sampling, solver, or which input rows it points at.

A thin PATCH of scenarios/{id}/ with only the fields you pass. It NEVER builds or runs anything: a changed scenario is marked stale and you call build_scenario when the person agrees. Keep the name true: a scenario named '... - 10m' whose resolution you set to 30 must be renamed in the same call. Attaching an input row changes only THIS scenario; to vary an input for a variant, clone_scenario first, then attach the new row to the clone.

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

Input Schema

NameRequiredDescriptionDefault
nameNoNew name. Keep it true: if it states a resolution or duration, change it too.
inflowNoInflow row id to attach
culvertNoCulvert row id to attach
terrainNoTerrain id to attach
boundaryNoBoundary row id to attach
buildingNoBuilding row id to attach
durationNoSimulation duration in seconds
frictionNoFriction row id to attach
rainfallNoRainfall row id to attach (write_input_layer with a target returns one)
project_idYesThe project ID
resolutionNoMesh resolution as a LENGTH in metres (smaller = finer, more triangles)
descriptionNoNew description
mesh_regionNoMeshRegion row id to attach
scenario_idYesThe scenario ID
flow_algorithmNoSolver (the ANUGA flow algorithm): 'DE0', 'DE1' or 'DE_ader2'. DE0 = standard (default); DE1 = second-order, about 2x compute and price; DE_ader2 = second-order, experimental (still being validated upstream), about 1.25x price. A non-default solver raises the quote_estimate, so tell the user and ask before choosing one. Say which one the model used.
elevation_samplingNoTerrain sampling, how the model reads the ground under each mesh triangle: 'footprint' or 'centroid'. footprint = area-weighted average of DEM cells under each triangle (default); centroid = the DEM cell at the triangle centre (plain-ANUGA style). Say which one the model used.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.2.2

TDQS

A4.3/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so safety and idempotence are covered. The description adds genuine value beyond that: thin PATCH semantics (only passed fields change), the scenario being marked stale, and cost implications of solver choice. It stops short of clarifying the null-vs-omitted distinction for clearing a field, which is the remaining behavioral ambiguity.

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?

Scope is front-loaded in the first sentence and the hard constraints follow in descending priority. It is dense with useful obligations, though the 'keep the name true' rule is repeated almost verbatim in both the description and the name parameter doc, and the paragraph could break more cleanly into constraint vs workflow.

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?

For a 16-parameter mutation tool with an output schema, the description covers the important downstream effects (staleness, build follow-up, cost, attachment scope) and the variant workflow. The notable gap is that optional fields defaulting to null are never explained, so an agent cannot tell from the description whether passing null clears a value or is a no-op.

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 adds cross-field meaning the schema cannot express: a name stating a resolution must be renamed in the same call, and resolution behaves as a length in metres. The solver and terrain-sampling guidance reinforces the schema's enum documentation with cost and reporting obligations.

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?

Opens with a specific verb and resource plus an enumerated set of editable fields (name, description, resolution, duration, terrain sampling, solver, attached input rows), and immediately contrasts with build_scenario and clone_scenario. An agent can distinguish this from sibling edit tools without opening the 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?

Explicitly states what the tool does NOT do ('NEVER builds or runs anything') and names the follow-up tool (build_scenario) plus the trigger condition ('when the person agrees'). It also routes variant work to clone_scenario first, and tells the agent to ask the user before selecting a non-default solver because it raises quote_estimate.

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