Skip to main content
Glama

ExchangeRebel — pay-per-call APIs for AI agents (x402 on Solana)

weather_current

Current conditions (metric + imperial). Source: Open-Meteo. $0.002 per call — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: GET https://exchangerebel.com/toll/weather/current.

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

Input Schema

NameRequiredDescriptionDefault
latYesLatitude
lonYesLongitude

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior5/5

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

Annotations declare readOnlyHint=false and openWorldHint=true but say nothing about cost or auth; the description fills exactly that gap with a per-call price ($0.002 USDC on Solana), the x402 payment flow including the retry mechanism, and a direct HTTP equivalent endpoint. That is the kind of beyond-schema behavioral context the annotations cannot express.

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?

The core purpose is front-loaded in the first clause, followed by source, pricing, and the HTTP fallback in a tight sequence. The payment parenthetical is dense but every clause carries operational information the agent needs; nothing is padding.

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

Completeness3/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 some burden for describing what comes back, and it only gestures at this with '(metric + imperial)' — it never says which fields or observation timestamp are returned. For a simple 2-parameter read tool with full schema coverage this is adequate, but the response shape is a remaining gap.

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 both required parameters (lat, lon) are already documented in the schema, setting the baseline at 3. The description adds nothing about coordinate format or string encoding, so it does not earn above baseline.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names the resource and scope ('Current conditions (metric + imperial)') and the data source ('Open-Meteo'), which implicitly separates it from weather_forecast and weather_alerts without naming them. The verb is implicit rather than stated ('fetch'/'get' is never written), but an agent can still tell this is a point-in-time observation lookup.

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?

There is no explicit when-to-use vs. when-not-to-use guidance relative to weather_forecast or weather_alerts; the distinction is only implied by 'current'. However, the description does provide concrete invocation guidance for the payment handshake (call once, receive PaymentRequired, retry with _meta['x402/payment']), which is genuinely useful procedural context.

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