Skip to main content
Glama

Weather forecast

weather_forecast
Read-onlyIdempotent

Weather now and forecast for any place: current conditions, the next 24 hours hourly and up to 10 days of daily min/max temperature, precipitation, wind and conditions, from MET Norway. Pass a city or address, or lat and lon. Costs $0.003 USDC on Base via x402.

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": "weather_forecast"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude instead of place
lonNoLongitude instead of place
daysNoDaily forecast days, 1-10 (default 7)
placeNoCity or address (Toronto, Paris France)

Output Schema

NameRequiredDescriptionDefault
nowNoobject
dailyNoarray
placeNoobject
unitsNoobject
hourlyNoarray
sourceNostring, e.g. "MET Norway (CC BY 4.0); geocoding © OpenStreetMap contribut
updatedAtNostring, e.g. "2026-11-05T05:17:50Z"

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "$schema": "http://json-schema.org/draft-07/schema#",
      +  "additionalProperties": true,
      +  "properties": {
      +    "daily": {
      +      "description": "array"
      +    },
      +    "hourly": {
      +      "description": "array"
      +    },
      +    "now": {
      +      "description": "object"
      +    },
      +    "place": {
      +      "description": "object"
      +    },
      +    "source": {
      +      "description": "string, e.g. \"MET Norway (CC BY 4.0); geocoding © OpenStreetMap contribut"
      +    },
      +    "units": {
      +      "description": "object"
      +    },
      +    "updatedAt": {
      +      "description": "string, e.g. \"2026-11-05T05:17:50Z\""
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds genuinely new behavioral context beyond that: the data source (MET Norway), the forecast horizon limits, and, importantly, a paid-usage cost of $0.003 USDC on Base via x402, which materially affects whether an agent should call it. It stops short of covering units, timezone handling, or failure modes.

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 tight sentences: the capability and coverage come first, the input options second, and the payment terms last. Every clause carries information — no restatement of the title and no filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With an output schema present, return-value shape needn't be explained, and annotations cover the safety profile. Given that, the definition supplies what's missing for correct invocation: input modes, forecast horizons, data source, and cost. Only minor gaps remain (units, timezone), which are not essential to deciding to call it.

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 baseline is 3. The description adds meaning on top by framing place vs. lat/lon as alternative input modes ('Pass a city or address, or lat and lon') and by restating the forecast horizon tied to the days parameter, which helps an agent choose an input strategy rather than just fill fields.

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?

The description names a specific resource (weather) and enumerates exactly what it returns: current conditions, 24-hour hourly, and up to 10 days of daily min/max, precipitation, wind and conditions. It also names the upstream source (MET Norway), so an agent knows the data provenance and granularity 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 Guidelines3/5

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

Usage is implied by the purpose statement — ask for weather now or a forecast — and the definition gives a usable input rule (city/address or lat+lon). However, there is no explicit when-to-use/when-not framing, no statement about which input form is preferred when both could be supplied, and no error guidance for unresolvable places.

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