Weather forecast (30 sats L402 or $0.025 USDC x402)
get_weather_forecastHourly plus 7-day forecast for lat/lon or a US city/ZIP — use this to plan the next hours or days. Price: 30 sats (Lightning) or $0.025 USDC on Base (x402). Sample (illustrative, not live): {"status":"success","endpoint":"weather_forecast","data":{"coverage":"us","source":"noaa_nws","place":{"lat":30.27,"lon":-97.74,"city":"Austin","state":"TX"},"forecast":{"updated":"2026-11-15T18:00:00Z","daily":[{"name":"This Afternoon","start":"2026-11-15T13:00:00-06:00","temperature":58,"short_forecast":"Cloudy"}],"hourly":[{"start":"2026-11-15T14:00:00-06:00","temperature":57,"short_forecast":"Cloudy"}]}},"metadata":{"cost_sats":30}} Pay: Call it, get HTTP 402 (or MCP payment_required) with a Lightning invoice and macaroon, pay the invoice, then retry with Authorization: L402 <macaroon>:<preimage>. Or pay in USDC on Base via x402: sign the 402's x402 requirement (PAYMENT-REQUIRED header, or accepts in the JSON body) and retry with the PAYMENT-SIGNATURE (x402 v2) or X-PAYMENT (v1) header; only a 200 is settled.
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_forecast"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Same as location: US city or ZIP. | |
| lat | No | Latitude (−90 to 90). Use with lon. | |
| lon | No | Longitude (−180 to 180). Use with lat. | |
| zip | No | 5-digit US ZIP code. | |
| state | No | US state or territory code (alerts only), e.g. TX. | |
| location | No | US city ('Austin, TX') or 5-digit ZIP. Alias: q. | |
| x402_payment | No | Optional x402 payment (USDC on Base): base64 PaymentPayload (v2, or v1 X-PAYMENT format) signed for accepts[0] of this tool's payment_required result. Alternative to params._meta['x402/payment']. Omit both to receive the payment requirements. | |
| l402_credential | No | Optional L402 credential '<macaroon>:<preimage_hex>' (or 'L402 <macaroon>:<preimage>') from a paid invoice or an active subscription. Omit it to receive the Lightning invoice and macaroon. |