Skip to main content
Glama

iafri x402 APIs

weather

Read-only

Live global weather & 3-day forecast by city via Open-Meteo: current temp, humidity, wind, conditions & daily highs/lows (?city=London). Price $0.005 per call via x402, USDC on Base.

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

Input Schema

NameRequiredDescriptionDefault
cityYesCity name for live weather & 3-day forecast (e.g. London).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses two behaviorally significant facts: the data source is Open-Meteo and each call costs $0.005 via x402 in USDC on Base. The paid-per-call nature is exactly the kind of context an agent needs before invoking. It stops short of covering failure modes or rate limits, which keeps it below a 5.

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?

It is a single dense sentence that front-loads the capability and appends the fields, provider, and pricing. Nothing is redundant, though the colon-chained clause structure is slightly run-on and could be split for faster scanning.

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?

With no output schema, the description carries the burden of describing return values and does so by enumerating the reported fields and the 3-day horizon. Payment mechanics are covered, leaving only error behavior and latency unaddressed, which is minor for a one-parameter read tool.

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 single city parameter is already documented as a city name with a London example. The description repeats that example format rather than adding new meaning such as accepted city formats, ambiguity handling, or whether coordinates are supported. Baseline 3 is appropriate.

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 gives a specific resource (live global weather plus 3-day forecast by city) with the concrete fields returned: current temp, humidity, wind, conditions, and daily highs/lows. It also names the upstream provider (Open-Meteo), so an agent can distinguish this from any other data lookup in the sibling list, none of which cover weather.

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: the agent can infer it should call this for a city's current weather or short forecast, and the '?city=London' example shows the invocation shape. There is no explicit when-to-use or when-not guidance, and no alternative is named, though no weather sibling exists to route away from.

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