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. States named in excludedStates are left out; always show coverageNote with the answer, so that their absence is not read as an all-clear. 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
coverageNoteYesSentence naming the states left out; show it with the figures
sourceNoticesYesDistinct notices of the listed gauges by key; a gauge names its own in sourceNoticeId
excludedStatesYesFederal states neither counted nor listed
stationsWithFloodYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedOutput schema / properties / coverageNote
      Added value: +{
      +  "description": "Sentence naming the states left out; show it with the figures",
      +  "type": [
      +    "string",
      +    "null"
      +  ]
      +}
    • addedOutput schema / properties / excludedStates
      Added value: +{
      +  "description": "Federal states neither counted nor listed",
      +  "items": {
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedOutput schema / required
      Previous value: -[
      -  "stationsWithFlood",
      -  "countByClass",
      -  "sourceNotices",
      -  "stations"
      -]New value: +[
      +  "stationsWithFlood",
      +  "excludedStates",
      +  "coverageNote",
      +  "countByClass",
      +  "sourceNotices",
      +  "stations"
      +]
  2. 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"
      +]
  3. 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"
      +]
  4. 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"
      +}
  5. First observed

TDQS

A3.9/5.0
Behavior5/5

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

Annotations already cover read-only, open-world, idempotent and non-destructive behavior. Beyond that, the description discloses important output obligations: always show coverageNote so absent states are not read as an all-clear, include sourceNotice with any passed-on value/class/forecast, and note the API licence requirement. This adds substantial behavioral context not present in the annotations.

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?

The description is front-loaded with the core purpose and then gives output-compliance caveats. It is reasonably tight, though the parenthetical 'search and flood situation: sourceNotices, keyed by sourceNoticeId' is compressed and slightly cryptic.

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?

Given the full schema coverage, annotations and an output schema, the definition is largely complete: it covers purpose, filtering and output-display requirements. The remaining gaps are lack of sibling routing and the unexplained excludedStates reference, which does not appear in the input 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 coverage is 100%, and the schema already documents locale as a de/en enum and federalState as an ISO 3166-2 code. The description adds only an implicit 'optionally per federal state' meaning; it does not explain locale and references excludedStates, which is not present in the input schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific resource and scope: current flood situation, stations with an active LHP flood class 1–4, optionally filtered by federal state. It is clear what the tool returns, but it does not explicitly distinguish itself from sibling tools such as get_forecast or get_readings.

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 by 'Current flood situation' and the optional federal-state filter, and it explains that excludedStates are omitted. However, it gives no explicit guidance on when to use this tool versus forecast, readings, or station-search alternatives, nor any when-not-to-use conditions.

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