Skip to main content
Glama

Hochwasserlage

get_flood_situation
Read-onlyIdempotent

Current flood situation: stations with an active LHP flood class (1 small … 4 very large), optionally per federal state. Every result names the data provider in sourceNotice (search and flood situation: sourceNotices, keyed by sourceNoticeId); show that notice with any value, class or forecast you pass on, and the licence terms of the API require it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_flood_situation"
  }
}

Input Schema

NameRequiredDescriptionDefault
localeNoLanguage for classification text (headline/description); defaults to German
federalStateNoISO 3166-2 code, e.g. DE-BY

Output Schema

NameRequiredDescriptionDefault
stationsYes
countByClassYesStation count per flood class name
sourceNoticesYesDistinct notices of the listed gauges by key; a gauge names its own in sourceNoticeId
stationsWithFloodYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed26 schema fields changed
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / fetchedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / fetchedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / fetchedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / fetchedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / stampedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / stampedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / stationLink / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / stationLink / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / textShort / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / parts / items / properties / textShort / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / stampedAt / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / stampedAt / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / stationLink / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / stationLink / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / sourceNotices / additionalProperties / properties / textShort / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / sourceNotices / additionalProperties / properties / textShort / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / stations / items / properties / federalState / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / stations / items / properties / federalState / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / stations / items / properties / lhpClass / anyOf
      Removed value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / stations / items / properties / lhpClass / type
      Added value: +[
      +  "number",
      +  "null"
      +]
    • removedOutput schema / properties / stations / items / properties / lhpClassName / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / stations / items / properties / lhpClassName / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / stations / items / properties / sourceNoticeId / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / stations / items / properties / sourceNoticeId / type
      Added value: +[
      +  "string",
      +  "null"
      +]
    • removedOutput schema / properties / stations / items / properties / water / anyOf
      Removed value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "null"
      -  }
      -]
    • addedOutput schema / properties / stations / items / properties / water / type
      Added value: +[
      +  "string",
      +  "null"
      +]
  2. Changed4 schema fields changed
    • addedOutput schema / properties / sourceNotices
      Added value: +{
      +  "additionalProperties": {
      +    "additionalProperties": {},
      +    "properties": {
      +      "fetchedAt": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "When the values were fetched, UTC"
      +      },
      +      "form": {
      +        "description": "full-only: show the full text, never shorten; short-allowed",
      +        "type": "string"
      +      },
      +      "id": {
      +        "description": "Key of the source record",
      +        "type": "string"
      +      },
      +      "licence": {
      +        "anyOf": [
      +          {
      +            "additionalProperties": {},
      +            "properties": {},
      +            "type": "object"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ]
      +      },
      +      "parts": {
      +        "items": {
      +          "additionalProperties": {},
      +          "properties": {
      +            "fetchedAt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "When the values were fetched, UTC"
      +            },
      +            "form": {
      +              "description": "full-only: show the full text, never shorten; short-allowed",
      +              "type": "string"
      +            },
      +            "id": {
      +              "description": "Key of the source record",
      +              "type": "string"
      +            },
      +            "licence": {
      +              "anyOf": [
      +                {
      +                  "additionalProperties": {},
      +                  "properties": {},
      +                  "type": "object"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ]
      +            },
      +            "permissionBasis": {
      +              "type": "string"
      +            },
      +            "rightsHolder": {
      +              "type": "string"
      +            },
      +            "sourceName": {
      +              "type": "string"
      +            },
      +            "sourceUrl": {
      +              "type": "string"
      +            },
      +            "stampedAt": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "The provider's own time stamp, UTC"
      +            },
      +            "stationLink": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Origin page of this gauge where one is required"
      +            },
      +            "text": {
      +              "description": "The full notice as plain text",
      +              "type": "string"
      +            },
      +            "textShort": {
      +              "anyOf": [
      +                {
      +                  "type": "string"
      +                },
      +                {
      +                  "type": "null"
      +                }
      +              ],
      +              "description": "Shortened notice; null where it must never be shortened"
      +            }
      +          },
      +          "required": [
      +            "id",
      +            "form",
      +            "permissionBasis",
      +            "licence",
      +            "sourceName",
      +            "sourceUrl",
      +            "rightsHolder",
      +            "fetchedAt",
      +            "stampedAt",
      +            "stationLink",
      +            "text",
      +            "textShort"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "permissionBasis": {
      +        "type": "string"
      +      },
      +      "rightsHolder": {
      +        "type": "string"
      +      },
      +      "sourceName": {
      +        "type": "string"
      +      },
      +      "sourceUrl": {
      +        "type": "string"
      +      },
      +      "stampedAt": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "The provider's own time stamp, UTC"
      +      },
      +      "stationLink": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Origin page of this gauge where one is required"
      +      },
      +      "text": {
      +        "description": "The full notice as plain text",
      +        "type": "string"
      +      },
      +      "textShort": {
      +        "anyOf": [
      +          {
      +            "type": "string"
      +          },
      +          {
      +            "type": "null"
      +          }
      +        ],
      +        "description": "Shortened notice; null where it must never be shortened"
      +      }
      +    },
      +    "required": [
      +      "id",
      +      "form",
      +      "permissionBasis",
      +      "licence",
      +      "sourceName",
      +      "sourceUrl",
      +      "rightsHolder",
      +      "fetchedAt",
      +      "stampedAt",
      +      "stationLink",
      +      "text",
      +      "textShort",
      +      "parts"
      +    ],
      +    "type": "object"
      +  },
      +  "description": "Distinct notices of the listed gauges by key; a gauge names its own in sourceNoticeId",
      +  "propertyNames": {
      +    "type": "string"
      +  },
      +  "type": "object"
      +}
    • addedOutput schema / properties / stations / items / properties / sourceNoticeId
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "description": "Key into sourceNotices; the flood class is delivered under this notice"
      +}
    • changedOutput schema / properties / stations / items / required
      Previous value: -[
      -  "id",
      -  "name",
      -  "water",
      -  "federalState",
      -  "lhpClass",
      -  "lhpClassName"
      -]New value: +[
      +  "id",
      +  "name",
      +  "water",
      +  "federalState",
      +  "lhpClass",
      +  "lhpClassName",
      +  "sourceNoticeId"
      +]
    • changedOutput schema / required
      Previous value: -[
      -  "stationsWithFlood",
      -  "countByClass",
      -  "stations"
      -]New value: +[
      +  "stationsWithFlood",
      +  "countByClass",
      +  "sourceNotices",
      +  "stations"
      +]
  3. Changed1 schema field changed
    • addedInput schema / properties / locale
      Added value: +{
      +  "description": "Language for classification text (headline/description); defaults to German",
      +  "enum": [
      +    "de",
      +    "en"
      +  ],
      +  "type": "string"
      +}
  4. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is covered. The description adds genuinely non-obvious behavior: every result carries a provider attribution in sourceNotice (keyed by sourceNoticeId, also used by search), and licence terms oblige the agent to surface that notice alongside any value passed on — an operational constraint found nowhere in the structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences, both front-loaded: the first defines what is returned, the second states the attribution obligation. No filler, and the scale (1 small … 4 very large) is compressed into the opening line where it is most useful.

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?

An output schema exists, so return structure needn't be explained, and the description still adds the one thing the schema cannot: the sourceNotice attribution requirement and its licence basis. The only minor gap is that locale's effect on the returned classification text is left entirely to the schema.

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 description coverage is 100%, so the enum for locale (de/en, German default) and the ISO 3166-2 example DE-BY are already fully documented. The description only echoes the federal-state filter and adds no format or edge-case detail beyond the schema, so baseline 3 applies.

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 resource (current flood situation) plus the exact selection criterion — stations with an active LHP flood class 1–4 — and notes the optional federal-state narrowing. This is distinguishable at a glance from get_forecast (predictive) and get_readings (raw measurements) without opening any schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

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

Usage is implied rather than stated: 'Current flood situation' tells the agent this is the present-state tool, and 'optionally per federal state' hints at the filtering case. There is no explicit when-to-use/when-not framing and no named alternative for related needs such as forecasts.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources