Skip to main content
Glama

Weather

get_weather
Read-onlyIdempotent

Use this when an agent needs weather, Data BitScored: current conditions (kind="intuitive", the default), a 7-day forecast (kind="stats"), go/no-go windows and location compare (kind="pro"), or severe-weather alerts (kind="signals") for a city, ZIP, lat/lon, or a route. Pass location, zip, or lat+lon; kind=pro also takes locations or origin/destination and optional wind, temperature and precipitation limits; kind=signals also takes state. Informational only, not for navigation. Examples: get_weather(kind="intuitive", location="Austin, TX"); get_weather(kind="pro", locations="Austin, TX|Dallas, TX"); get_weather(kind="signals", state="TX"). Returns JSON in the data field with source attribution. Read-only; the only side effect is the payment you choose to make. Kinds and prices:

  • kind="intuitive": 10 sats or $0.01 USDC. Use this when a user asks what the weather is now, or an agent checks conditions at a destination. Pass location (city, ZIP, or lat/lon); omit to default to Austin, TX. Returns temperature_c, temperature_f, humidity, wind_speed_mph and a text summary, with a Data BitScore.

  • kind="stats": 50 sats or $0.05 USDC. Use this when planning trips, deliveries or outdoor events: an hourly and 7-day forecast, not just current weather. Pass location, ZIP, or lat/lon; omit to default to Austin, TX. Returns period forecasts with temperature and short_forecast. Example: GET /api/v1/data/weather_stats?location=Austin,+TX or MCP get_weather(kind="stats", location="Austin, TX").

  • kind="pro": 100 sats or $0.10 USDC. Use this when a routing, delivery or travel agent must decide whether conditions stay within wind, precipitation and temperature limits at one place or along a route. Pass location or locations (pipe- or semicolon-separated) or origin and destination; optional wind_mph_max, temp_f_min, temp_f_max, precip_chance_max.

  • kind="signals": 200 sats or $0.20 USDC. Use this when a monitoring or travel agent must check for severe-weather warnings (tornado, flood, wind, winter storm) at a US point, city, ZIP or a whole state. Returns event, severity, headline, onset, expires. US coverage. Omit the parameter to default to state=TX. Payment: Pay by calling without a credential, paying the Lightning invoice or the USDC amount, then retrying with l402_credential=':' or x402_payment. One payment buys one response. Details: https://api.bittuitive.ai/pay. Informational only; not financial, investment, legal or tax advice; provided as-is, with no warranty; verify before acting. https://api.bittuitive.ai/disclaimer.

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
qNoAlias of location.
latNoLatitude, -90 to 90. Use together with lon.
lonNoLongitude, -180 to 180. Use together with lat.
zipNo5-digit US ZIP code.
kindNoProduct to fetch. Every kind, its price and when to use it are listed in the tool description. Defaults to "intuitive".
stateNoTwo-letter US state or territory (kind=alerts only), e.g. TX.
originNoRoute origin for kind=pro.
locationNoUS city ('Austin, TX') or 5-digit ZIP.
locationsNoPipe- or semicolon-separated places for kind=pro, e.g. 'Austin, TX|Dallas, TX'.
temp_f_maxNoGo/no-go maximum temperature F (kind=pro). Default 100.
temp_f_minNoGo/no-go minimum temperature F (kind=pro). Default 20.
destinationNoRoute destination for kind=pro.
credit_tokenNoPrepaid token (btf_..., from buy_credits). Pays this call from your prepaid sats or USDC balance with no invoice; a failed call is refunded. Balance is non-refundable.
wind_mph_maxNoGo/no-go wind limit in mph (kind=pro). Default 25.
x402_paymentNox402 payment (USDC on Base): base64 PaymentPayload signed for accepts[0] of the payment_required result. Alternative to l402_credential; also accepted in params._meta['x402/payment'].
l402_credentialNoL402 credential '<macaroon>:<preimage_hex>' from a paid invoice (or an active subscription). Omit it on the first call to receive the Lightning invoice and macaroon.
precip_chance_maxNoGo/no-go max precipitation chance percent (kind=pro). Default 50.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed8 schema fields changed
    • addedInput schema / properties / destination
      Added value: +{
      +  "description": "Route destination for kind=pro.",
      +  "type": "string"
      +}
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "intuitive",
      -  "stats",
      -  "signals"
      -]New value: +[
      +  "intuitive",
      +  "stats",
      +  "pro",
      +  "signals"
      +]
    • addedInput schema / properties / locations
      Added value: +{
      +  "description": "Pipe- or semicolon-separated places for kind=pro, e.g. 'Austin, TX|Dallas, TX'.",
      +  "type": "string"
      +}
    • addedInput schema / properties / origin
      Added value: +{
      +  "description": "Route origin for kind=pro.",
      +  "type": "string"
      +}
    • addedInput schema / properties / precip_chance_max
      Added value: +{
      +  "description": "Go/no-go max precipitation chance percent (kind=pro). Default 50.",
      +  "type": "number"
      +}
    • addedInput schema / properties / temp_f_max
      Added value: +{
      +  "description": "Go/no-go maximum temperature F (kind=pro). Default 100.",
      +  "type": "number"
      +}
    • addedInput schema / properties / temp_f_min
      Added value: +{
      +  "description": "Go/no-go minimum temperature F (kind=pro). Default 20.",
      +  "type": "number"
      +}
    • addedInput schema / properties / wind_mph_max
      Added value: +{
      +  "description": "Go/no-go wind limit in mph (kind=pro). Default 25.",
      +  "type": "number"
      +}
  2. Changed3 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"Product to fetch. Every kind, its price and when to use it are listed in the tool description."New value: +"Product to fetch. Every kind, its price and when to use it are listed in the tool description. Defaults to \"intuitive\"."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "now",
      -  "current",
      -  "forecast",
      -  "alerts"
      -]New value: +[
      +  "intuitive",
      +  "stats",
      +  "signals"
      +]
    • changedInput schema / required
      Previous value: -[
      -  "kind"
      -]New value: +[]
  3. Changed1 schema field changed
    • changedInput schema / properties / kind / description
      Previous value: -"Which product to fetch; see the price of each in the tool description."New value: +"Product to fetch. Every kind, its price and when to use it are listed in the tool description."
  4. Added

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, and the description usefully reconciles the read-only claim with the real side effect ('the only side effect is the payment you choose to make'). It goes further than the annotations by documenting per-kind pricing, that one payment buys one response, the pay-then-retry flow with l402_credential or x402_payment, and prepaid credit_token semantics including refunds on failed calls. What holds it below a 4-5 is the absence of any latency, rate-limit, or coverage caveats beyond 'US coverage' for signals.

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 critical routing information is front-loaded in the first sentence and the per-kind blocks are scannable. It still wastes space: the phrase 'Pass location, ZIP, or lat/lon; omit to default to Austin, TX' is repeated three times, and a raw HTTP GET example plus duplicated disclaimers and warranty boilerplate are irrelevant to an MCP caller.

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?

For a zero-required-parameter, 17-parameter, multi-product tool with no output schema, the definition supplies the return shape per kind (temperature_c/f, humidity, wind_speed_mph; period forecasts; go/no-go; event/severity/headline/onset/expires) and the full payment handshake. An agent has everything needed to pick a kind, form the call, and handle the payment challenge on the first attempt.

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 description coverage is 100%, so the baseline is 3, and the description earns an increment by mapping parameter families to kinds (kind=pro takes locations/origin/destination plus optional thresholds; kind=signals takes state) and by stating defaults such as omission falling back to Austin, TX or state=TX. It does not, however, clarify precedence among the overlapping locators (q vs location vs zip vs lat/lon) when more than one is supplied.

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 opens with a specific verb-plus-resource framing and enumerates the four distinct products (intuitive/stats/pro/signals) with what each returns, so an agent knows exactly what it is calling. It never differentiates itself from plausible siblings such as get_alerts_data or get_travel_data, which appear to overlap with kind='signals' and route weather, so the sibling boundary is left implicit.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

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

Each kind carries an explicit 'Use this when...' condition: current conditions, trip/delivery/event planning, routing go/no-go decisions, and severe-weather monitoring. It also states an explicit exclusion ('Informational only, not for navigation') and tells the agent which parameter set and price applies to each mode.

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