Icon

Weather Alert

<p>Get weather alerts for a US state.</p><p>This is an example MCP tool, closely following the quickstart example of the model context protocol (MCP) linked below.</p><p>It is described in greater detail in the blog post, also linked below.</p>

URL: Model Context Protocol Quickstart Example https://modelcontextprotocol.io/quickstart/server
URL: Blog post: KNIME Business Hub as a Model Context Protocol (MCP) Server https://www.knime.com/blog/knime-as-model-context-protocol-server

Tool: Weather Alerts

Weather data from https://api.weather.gov.

Input processing

Ensure that the "state" argument is one of the 59 US-state codes.

Data fetching

Fetch alerts for the given state.

Output preparation

Formulate a meaningful output text for the alerts. Makes sure the case of no alerts is also handled. If something went wrong, formulate a meaningful error message.

Required output format.

Only text
Column Filter
ensure table structureif there are no alerts
Table Validator
CASE Switch End
Try (Variable Ports)
top: valid inputbot: invalid input
Input validation
parse arguments
JSON Path
Catch Errors (Data Ports)
state
Table Row to Variable
on error
Table Creator
Format output
text output
Container Output (JSON)
error text (if needed)
Expression
get alerts
GeoFile Reader
Argument: state(two letters)
Container Input (JSON)
output text
Expression
endpoint
Variable Expression

Nodes

Extensions

Links