Skip to content
Docs navigation

Tool reference

All 6 tools of the Weather MCP.

Every connection to https://mcp.smarterweather.com serves all 6. search_data takes a question in plain words and returns the get_data call that answers it. Full JSON Schemas, output schemas included: /.well-known/mcp-tools.json.

Credits are per call with an API key. Without a key, the tools marked free without a key cost nothing and every other call pays per call with x402.

On an MCP Apps host, get_data, render also take card, scene to shape the card they draw; see guide://smarterweather/views.

The runners on this page call https://mcp.smarterweather.com.

describe_dataFree

A dataset's variables or properties (standard names, units, categories, bands, aggregates), horizon, step, cadence, freshness, cost class, verified examples, an example_query to read values; a map layer's axes (source, region, facts), render call. Free. Call it when a grid or snapshot hit's call lacks the variable you need (with no variable, it may read only the headline one), or to check meaning, units, horizon or cost; not needed when the hit's call already names what you need: run that. Example: {"dataset_id": "<from search_data>"}.

ParameterTypeRequiredDescription
dataset_idstringYesA dataset id from search_data or get_data (1-80 chars).

Returns: dataset_id, detail, example_query, ranking_query, data_status, map, attribution

get_context1 credit per call with an API key; free without a key

Where a place is and what time it is there. location or lat+lon to ranked candidates with lat/lon, timezone and type place|zip|address|poi|county|station; time: utc and, per distinct zone among the candidates, its local time and a 14-day calendar (join on timezone). Sun and moon are get_data reads. Example: {"location": "Pella, IA"} -> Pella, America/Chicago.

ParameterTypeRequiredDescription
locationstringNoPlace name, ZIP, venue/address or "lat,lon" (1-200 characters); not with lat/lon.
latnumberNoLatitude (-90 to 90), with lon; not with location.
lonnumberNoLongitude (-180 to 180), with lat.
fuzzybooleanNoText only: autosuggest for partial or misspelled input. Default false.
limitintegerNoText only: how many candidates (1-10). Default 5.
near_latnumberNoText only: rank near this point (-90 to 90); with near_lon.
near_lonnumberNoLongitude of near_lat (-180 to 180).
include("boundaries")[]Noboundaries: each row's state, county and zone ids for get_data's area.

One of: location, or lat + lon

Returns: query, lat, lon, candidates, partial, area, area_name, time

get_data1 credit per call with an API key

Values, totals, comparisons, best times for a purpose (criteria), people/POI counts, station observations, upper-air profiles, climate records, normals, degree days, teleconnection indices and forecaster text from any dataset (models, radar, alerts, outlooks, tropical cyclones, aircraft recon, reference layers) at places, over a bbox or area, along a path, or as items. select takes product:variable or product:property, a standard name or a concept (population), from describe_data or search_data; one space word, at most one time word (hours, start+end, at; run pins a cycle); stats reduces per step or area-wide. Example: {"select": ["temperature_2m"], "locations": ["Savannah, GA", "Macon, GA"], "hours": 36}.

ParameterTypeRequiredDescription
selectstring[], >= 1 itemsYesWhat to read: product:variable, product:*, product (a feature or text product's properties), a bare standard_name (resolved in the place's domain; alerts in effect: weather_alert), @observed:<standard_name> (conditions now, the analysis: @observed:temperature_2m; a miss lists the names it has) or @forecast:<standard_name>; or alone, a derived id: forecast (a multi-day forecast at one location; a window adds hours), forecast:hourly (hourly only), forecast:aqi, forecast_skill (accuracy), forecast_skill:map (at most 25 items).
locationstringNoSpace: one place (place text, ZIP or lat,lon). EDR position; nearest on a feature product (non-empty).
locationsstring[], >= 1 itemsNoSpace: up to 25 places; one result element per place (at most 25 items).
bboxnumber[]NoSpace: [west, south, east, north] in degrees. Items on a feature or text product; a grid needs stats (exactly 4 items).
areaobjectNoSpace: a polygon by reference ({product, feature_id | feature_ids | filter}; the product must declare query.area_as_reference) or inline ({geometry}). Over a feature product, the overlay; over a grid, zonal statistics.
area.productstringNoThe referenced product (one that declares query.area_as_reference), or omitted with geometry.
area.feature_idstringNoThe referenced product's portable feature id (FIPS geoid, UGC zone, alert id) (non-empty).
area.feature_idsstring[], >= 1 itemsNoUp to 25 feature ids; one result element per feature (at most 25 items).
area.filterstring[], >= 1 itemsNoSelects the referenced product's features; the area is their union (overlaps dissolved), one result element. Per feature: feature_ids, or select the per-feature product over this area.
area.geometryobjectNoAn inline MultiPolygon, <= 10,000 vertices; send a Polygon as a one-member MultiPolygon.
pathobjectNoSpace: a trajectory sampled at each vertex's ETA (no time word or stats): geometry or polyline with times, or departure + speed; departures fans out one element per departure.
path.geometryobjectNoThe route as a LineString (or send polyline).
path.polylinestringNoThe route as an encoded polyline, instead of geometry (non-empty).
path.polyline_precision5 | 6NoPolyline decimal places; 6 for polyline6.
path.timesstring[]NoThe time at each vertex, in vertex order (instead of departure + speed).
path.departurestringNoStart time: RFC 3339 with seconds and an offset (2026-11-04T07:00:00-07:00); ETAs follow from speed.
path.departuresstring[], >= 1 itemsNoUp to 3 start times to compare; one result element per departure (at most 3 items).
path.speednumberNoTravel speed for departure, in the request units (km/h, or mph with imperial) (> 0).
hoursintegerNoTime: a rolling window of this many hours (ahead for a forecast, back for an analysis) (>= 1).
startstringNoTime: window start (with end), a date or RFC 3339.
endstringNoTime: window end (with start), inclusive.
atstringNoTime: one instant.
runstringNoTime: a model run (reference time), or latest (non-empty).
stepstringNoBucket size for stats: PT15M, PT1H, PT3H, PT6H or P1D.
statsstring[], >= 1 itemsNoReducers per step bucket, over the whole window, or over the area's cells and features. cumulative: prefixes sum and degree_days only (a running total). per_cell:<sum|max|min|mean>: before percentile:<p>, fraction_above:<v> or fraction_below:<v> (bbox or area only) reduces each cell over the bucket first, then over the area weighted by cell area: the area's percentile of that per-cell value, or the percent of the area above or below v.
filterstring[], >= 1 itemsNoOn a feature product or derived id: expressions over its filterable properties (describe_data), applied before aggregation.
wherestring[], >= 1 itemsNoValue criteria, all must pass. On grids and snapshots: over the selected variables' standard_names, tested per sample: they mask the series, or are the predicate for windows and count reducers. On a feature product declaring query.where: grid variables, tested in the cell under each feature's point at at (required for a forecast); stats sum or count are over the passing features.
windowsobjectNoWindow search over where: consecutive runs of at least min_hours.
windows.min_hoursintegerNoShortest run of consecutive hours meeting every where expression (>= 1).
windows.light"day" | "night" | "any"NoRestrict windows to daylight (day), darkness (night) or neither (any).
windows.max_windowsintegerNoMost windows to return, earliest first (>= 1).
windows.activitystringNoWhat the windows are for (mow the lawn); where the server rates, only the best window in the request is rated for it (non-empty; at most 200 characters).
criteriaobject[]NoWhat makes an hour good or bad for the caller's purpose: one entry per condition over the selected variables. Each scores every sample from +1 (ideal) through 0 (the acceptable limit) to -1 (unacceptable); the result's suitability block carries the per-criterion scores, the combined score (the minimum over the must criteria; a must: false criterion lowers the score but never below 0), the limiting criterion per sample, the windows of acceptable hours (at least windows.min_hours, default 2; windows.max_windows caps them, windows.activity names the purpose) and the best one. Say the ranges in request units. Send location or locations. With criteria, daylight is a criterion (windows.light may only agree) (at most 8 items).
criteria[].keystringNoA short handle for the result and the chart. Default: the variable's standard name, expr_<n> for a formula (n its 1-based position), a mask's label in snake case (else daylight / hours). Unique within the call (at most 24 characters).
criteria[].labelstringNoWords for people (Wind, Fresh snow). Default: the variable's catalog title, else the key humanized (at most 24 characters).
criteria[].source"model" | "user" | "memory"NoWho asked for it: the model's own judgment (default), the user's stated preference, or a remembered preference; carried through to the chart's attribution.
criteria[].glyphstringNoThe chart's small drawn glyph for this criterion, one of: wind, gust, rain, cloud, sun, snow, visibility, temperature. Default: from the variable's standard name; give it for a formula (a gust factor: gust) or leave it out for none.
criteria[].varstringNoA selected variable's standard_name (one of select). Exactly one of var, expr, daylight or hours_of_day.
criteria[].exprstringNoA formula over selected standard_names: numbers, + - * /, unary minus, parentheses, abs(x), min(a, b), max(a, b); at most 32 tokens, depth 6 (wind_gusts_10m - wind_speed_10m). Its ranges are in the formula's own units; give unit for the chart (at most 120 characters).
criteria[].daylight"sun" | "civil" | "night"NoA mask, not a score: hours between the place's sunrise and sunset (sun), civil dawn and dusk (civil), or sunset and sunrise (night) are scored; the rest are unscored (a gap, never poor), read from the sun times at the place, no select needed. A sample counts as inside when more than half of it is. A day without a sunrise or sunset (polar) is unscored. Takes no ranges or must; before and after name its gaps.
criteria[].hours_of_dayobjectNoA mask on the local clock: hours from from to to (HH:MM, the place's zone; a span past midnight wraps) are scored, the rest unscored (a gap, never poor); a sample counts as inside when more than half of it is. Operating hours (lifts 08:30-16:00, a pool's hours). Takes no ranges or must; before and after name its gaps.
criteria[].unitstringNoWith expr: the unit word for the chart (kt, °F) (at most 12 characters).
criteria[].windowobjectNoScore a trailing reduction instead of the sample: the sum, mean, max or min over the hours ending at the sample (24 h snowfall: {hours: 24, reduce: sum}). The read looks back over the variable's observed product for the first samples where one serves the place; where none does, those samples have no score.
criteria[].lowstringNoThe words for an hour this criterion limits from below (light wind, no new snow, cold). Default: '<label> low' (at most 16 characters).
criteria[].highstringNoThe words for an hour it limits from above (gusty, too hot, cloudy). Default: '<label> high'. Not on a clock mask (at most 16 characters).
criteria[].beforestringNoClock masks only: the words for a gap that ends when the hours begin (before dawn, before opening). Defaults: daylight sun 'before sunrise', civil 'before dawn', night 'before dusk'; hours_of_day 'before opening' (at most 16 characters).
criteria[].afterstringNoClock masks only: the words for a gap that starts when the hours end (after dark, after closing). Defaults: daylight sun 'after sunset', civil 'after dark', night 'after dawn'; hours_of_day 'after closing' (at most 16 characters).
criteria[].idealobjectNoThe range that scores +1. An absent side is open (ideal: {max: 30} is 'the lower the better, 30 or less is ideal').
criteria[].okobjectNoThe acceptable range, containing ideal; its edges score 0. Required with ideal.
criteria[].badobjectNoWhere the score reaches -1, outside ok. Default: as far beyond each ok edge as ideal lies inside it.
criteria[].utilityarray[]NoThe general form instead of the ranges: control points [value, score] with values ascending and scores from -1 to 1; linear between, flat beyond the ends. Several ranges, two peaks, any direction: [[0,-1],[6,0],[10,1],[18,1],[24,0],[35,-1]] (at least 2 items; at most 8 items).
criteria[].mustbooleanNotrue (default): this criterion can make an hour unacceptable. false: a preference; it lowers the score toward 0 but never below it.
units"metric" | "imperial" | "si", default "imperial"Noimperial (default), metric or si (each variable's catalog units).
view"concise" | "detailed"Noconcise (default): values and feature properties with a centroid and bbox; detailed adds simplified geometry, provenance and raw encodings.
sortstringNoOrder the rows by one key from the product's query.sort (describe_data): -key descending, key ascending, nulls last; limit: rows, max 50.
limitintegerNoFrames per series element (default and max 168), or features per element (max 50); next_cursor continues (>= 1).
cursorstringNonext_cursor of the previous page, with the same arguments (non-empty).

Returns: unresolved, results, units, converted_to, truncated, next_cursor, data_status, attribution, _sources

Input examples

{
  "area": {
    "feature_ids": [
      "30111",
      "30031",
      "30063"
    ],
    "product": "us_counties"
  },
  "select": [
    "census_places:population"
  ],
  "stats": [
    "sum"
  ]
}
{
  "bbox": [
    -106.85,
    34.95,
    -106.45,
    35.25
  ],
  "hours": 24,
  "select": [
    "nbm_conus:gust10m"
  ],
  "stats": [
    "max"
  ],
  "units": "imperial"
}
{
  "hours": 168,
  "location": "Tucson, AZ",
  "select": [
    "temperature_2m"
  ],
  "stats": [
    "count_above:105"
  ],
  "units": "imperial"
}
{
  "hours": 168,
  "location": "Fargo, ND",
  "select": [
    "temperature_2m"
  ],
  "stats": [
    "min",
    "mean",
    "count_below:32"
  ],
  "step": "P1D",
  "units": "imperial"
}
{
  "hours": 72,
  "location": "Columbus, OH",
  "select": [
    "nbm_conus:wspd10m"
  ],
  "stats": [
    "percentile:90"
  ],
  "units": "imperial"
}
{
  "path": {
    "geometry": {
      "coordinates": [
        [
          -111.04,
          45.68
        ],
        [
          -110.8,
          45.66
        ],
        [
          -110.56,
          45.66
        ]
      ],
      "type": "LineString"
    },
    "speed": 55
  },
  "select": [
    "snowfall",
    "temperature_2m",
    "visibility"
  ],
  "units": "imperial"
}
get_statusFree

Data freshness of the weather platform (no inputs needed; refreshed about every 5 minutes): overall state, per-source states (ok / degraded / outage / no_signal), open incidents with their cause (provider outage vs internal processing delay) and active provider advisories. Use it when asked whether data is current, or when other tools return stale-looking data. If a source is degraded or in outage, say the data may be stale rather than presenting it as live. Example: {}.

ParameterTypeRequiredDescription
include_okboolean, default falseNotrue: every monitored source, healthy ones too. false (default): only sources that are not ok.

Returns: overall, generated_at, sources, advisories, note

render4 credits per call with an API key

Render a weather map or chart image for visual analysis: kind: map draws select layers (radar, satellite, outlooks, alerts and storm features overlaid) at location or bbox, and kind: sounding draws the nearest radiosonde as a skew-T and hodograph chart. With no select the map draws precipitation_hybrid (observed radar precipitation in the place's domain); at picks the closest frame, filter narrows feature overlays, area draws an outline, and search_data finds products. Example: {"kind": "map", "location": "Tulsa, OK", "select": ["nexrad_l3:TLX:N0S", "weather_alert"], "filter": ["event == Tornado Warning"], "zoom": 8}.

ParameterTypeRequiredDescription
kind"map" | "sounding"Yesmap: weather layers over a basemap; sounding: the nearest radiosonde as a skew-T and hodograph chart.
selectstring[]NoMap layers, bottom to top (at most 6): a product id with a map, a standard_name (the finest-step layer reaching at), a catalog pick <family>:<pick>[:<pick>] over a layer's axes (satellite:13, satellite:water_vapor, satellite:2:goes_west, composite:reflectivity), a feature product (alerts, storm cells, reports) over the rasters, or one radar site as nexrad_l3:{SITE}:{KEY}, KEY N0B reflectivity, N0S storm-relative velocity (rotation), N0G base velocity, N0C correlation coefficient, N0X differential reflectivity. Default precipitation_hybrid.
locationstringNoMap center or sounding place: place text, ZIP or lat,lon; not with bbox.
bboxnumber[]NoMap extent [west, south, east, north] in degrees, instead of location and zoom.
areaobjectNoMap: an outline over the layers, by reference or inline; with no location or bbox, the extent.
area.productstringNoA boundary product (get_context include boundaries names one), with feature_id, feature_ids or filter.
area.feature_idstringNoIts feature id.
area.feature_idsstring[]NoSeveral feature ids.
area.filterstring[]NoIts features to outline, as filter expressions.
area.geometryobjectNoAn inline MultiPolygon.
atstring (date-time)NoMap: RFC 3339 instant with an offset; each layer draws its closest frame (default: latest). A forecast layer honors a future time.
filterstring[]NoMap: narrows feature overlays declaring the property, e.g. "event == Tornado Warning": <property> <op> <value>, op == != > >= < <= in (a comma list).
zoomnumberNoMap zoom with location, 2-14: 5 regional, 8 metro, 10 city (default 7).
widthintegerNoMap image width in pixels, 300-2000 (default 720).
heightintegerNoMap image height in pixels, 200-2000 (default 440).
units"imperial" | "metric", default "imperial"NoMap legend and sounding: imperial (default, °F) or metric (°C); keys end in their unit.

Returns: layers, view, image_url, open_map_url, products, overlays, resolved, station_id, observed_at, level_count, indices, units

Input examples

{
  "kind": "map",
  "location": "Tulsa, OK",
  "select": [
    "nexrad_l3:TLX:N0S"
  ],
  "zoom": 8
}
{
  "kind": "map",
  "location": "Chicago, IL",
  "select": [
    "precipitation_hybrid"
  ],
  "at": "2026-07-08T21:00:00Z"
}
{
  "kind": "sounding",
  "location": "Norman, OK"
}
search_dataFree

Search the data catalog: which dataset's values answer a question about weather and the people and places it affects, or what data exists at a point. With query it ranks datasets and map layers and returns hits with the next call (a named place fills its area; add a place if note asks) and any verified example; without it, it lists datasets at the place with freshness, or all. A place or domain keeps datasets covering it; kind and family filter a listing, rank a query; describe_data lists other variables for get_data. Example: {"query": "snow depth", "location": "Erie, PA"}.

ParameterTypeRequiredDescription
querystringNoThe question in the user's words (2-200 chars); omit to list.
locationstringNo"City, ST", ZIP or "lat,lon" (up to 200 chars); not with lat/lon.
latnumberNoLatitude (-90 to 90), with lon.
lonnumberNoLongitude (-180 to 180), with lat.
domain"conus" | "alaska" | "hawaii" | "carib" | "global"NoCoverage filter without a place; global = no filter.
kind"grid" | "snapshot" | "feature" | "text" | "index"Nogrid: forecasts (incl. AQ, UV, HeatRisk, radar nowcast), normals, astronomy, observed daily extremes; snapshot: current conditions (analyses), latest radar mosaics, satellite, AQ, soil moisture; feature: station obs and normals, soundings, recon, lightning flashes, radar cell detections, reports, alerts, outlooks, places; text: forecaster text; index: climate indices, SSW.
familystringNoSource family, describe_data's family (1-40 chars).
limitintegerNoRows (1-10); default 5 with query, all without.

Returns: query, location, domain, note, hits, data_status

Input examples

{
  "query": "relative humidity this afternoon",
  "lat": 35.96,
  "lon": -83.92,
  "limit": 3
}

Errors

A failed tools/call is a result with isError: true whose first text block is an RFC 9457 Problem with the REST API's type URIs. Key on type, then status. A tool this server does not serve is not a result: it is a JSON-RPC -32602 error whose message lists the server's tools. Full rules: /errors#mcp.