Skip to main content
Glama

Weather

weather
Read-onlyIdempotent

Use when you need a weather forecast for a latitude/longitude anywhere in the world: hourly temperature, wind speed and direction, humidity, pressure, cloud cover. Returns the paid x402 request for your input (GET /weather, $0.001 per call; schema linked). Call that URL with an x402 or MPP client to get the data. Bad input is refused before any charge. Forecast and US alerts for one point; for earthquakes and open natural events near a site use hazards_near. First call each day returns the data itself, free; later calls return the paid request.

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": {
      "lat": "<lat>",
      "lon": "<lon>"
    },
    "name": "weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYeslatitude in decimal degrees
lonYeslongitude in decimal degrees
hoursNoforecast horizon in hours, 1..240 (default 48); steps are hourly first, then 6-hourly as MET publishes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / hours / description
      Previous value: -"forecast horizon in hours (hourly steps first, then 6-hourly as MET publishes)"New value: +"forecast horizon in hours, 1..240 (default 48); steps are hourly first, then 6-hourly as MET publishes"
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, and the description adds genuinely new behavior: the tool returns a paid x402 request rather than data on later calls, priced at $0.001 per call against GET /weather, the first call each day is free and returns data directly, and invalid input is refused before any charge. Cost and charge-ordering are exactly the operational facts an agent cannot infer from 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?

Front-loaded with the use case and covered fields, and every sentence carries information (fields, billing model, client requirement, validation, sibling routing, free-tier rule). It is slightly dense and the important 'first call each day is free' detail is deferred to the final sentence rather than surfaced earlier.

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 3-parameter tool with no output schema, the description covers input scope, the two-stage return mechanism, cost, and validation behavior. The residual gap is that it never characterizes the shape/units of the forecast payload that eventually comes back, only saying 'get the data', though it does point to a linked 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%, with lat/lon ranges and the hours default (48, 1..240, hourly then 6-hourly) already documented in the schema. The description mentions latitude/longitude scope but adds no new meaning about parameters, so the 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 verb and resource ('weather forecast for a latitude/longitude anywhere in the world') and enumerates the returned fields: hourly temperature, wind speed and direction, humidity, pressure, cloud cover. It also names the sibling it is not ('for earthquakes and open natural events near a site use hazards_near'), so an agent can separate it from hazards_near without opening schemas.

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?

Explicit when-to-use ('Use when you need a weather forecast for a latitude/longitude anywhere in the world') plus an explicit alternative and the condition that selects it (hazards_near for earthquakes/open natural events). It also documents the non-obvious two-step flow (this returns a paid request; call the URL with an x402/MPP client) and the free-first-call-each-day rule that governs when to call at all.

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