Skip to main content
Glama
x402-data-mcp

x402-data-mcp

Current weather and a 3-day forecast for a place name or latitude and longitude ($0.003)

get_weather

Retrieves current weather conditions and a 3-day forecast for any place name or coordinates, with metric or imperial units.

Instructions

Current conditions (temperature, humidity, wind, cloud, pressure, rain next hour) and a 3-day daily forecast for a place name or lat/lon anywhere. Metric or imperial units. Data from MET Norway, geocoding from OpenStreetMap. Not charged on bad input, unknown place or upstream failure. No API key. Price: $0.003 USDC per call, paid over x402 on Base from the wallet in X402_PRIVATE_KEY (not charged when the call fails).

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_weather"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNoLatitude -90 to 90
lonNoLongitude -180 to 180
placeNoPlace name, e.g. "Cincinnati, OH" (use this or lat and lon)
unitsNometric (default) or imperial

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing price ($0.003 USDC per call), the x402/Base payment rail, the X402_PRIVATE_KEY wallet requirement, and — critically — that failed calls, bad input, unknown places and upstream failures are not charged. That billing-side-effect context also explains why readOnlyHint is false despite this being a data read, and the upstream sources (MET Norway, OpenStreetMap) are named.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The capability statement is well front-loaded and dense, but pricing information is repeated three times ($0.003 in the body's opening, in the closing 'Price:' clause, and again in the title) and the no-charge-on-failure guarantee appears twice in near-identical wording. Trimming that duplication would lose nothing.

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 four-parameter, output-schema-less tool this covers what an agent needs to call it correctly: what is returned, both location input modes, unit handling, cost, and payment/auth mechanics. Only minor gaps remain, such as forecast date/wind-unit formatting and whether partial location input errors are rejected.

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%, so lat/lon/place/units are already fully documented, including the metric default and the either-place-or-coordinates rule. The description only restates 'place name or lat/lon' and 'metric or imperial', adding no format or precedence detail beyond the schema; 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?

Names a specific verb+resource (current conditions plus a 3-day daily forecast) and enumerates the returned measurements: temperature, humidity, wind, cloud, pressure, rain next hour. It also states the two accepted location modes and the unit choice, so an agent can tell exactly what this tool delivers 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 ('for a place name or lat/lon anywhere') and the location-mode choice is repeated from the schema, but there is no explicit when-to-use framing, no prerequisite statement, and no exclusions or alternatives called out. Adequate but leaves routing entirely to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.