Docs navigation
Reference
Weather MCP
Agents
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_dataFreeA 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>"}.
| Parameter | Type | Required | Description |
|---|---|---|---|
dataset_id | string | Yes | A 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 keyWhere 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.
| Parameter | Type | Required | Description |
|---|---|---|---|
location | string | No | Place name, ZIP, venue/address or "lat,lon" (1-200 characters); not with lat/lon. |
lat | number | No | Latitude (-90 to 90), with lon; not with location. |
lon | number | No | Longitude (-180 to 180), with lat. |
fuzzy | boolean | No | Text only: autosuggest for partial or misspelled input. Default false. |
limit | integer | No | Text only: how many candidates (1-10). Default 5. |
near_lat | number | No | Text only: rank near this point (-90 to 90); with near_lon. |
near_lon | number | No | Longitude of near_lat (-180 to 180). |
include | ("boundaries")[] | No | boundaries: 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 keyValues, 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}.
| Parameter | Type | Required | Description |
|---|---|---|---|
select | string[], >= 1 items | Yes | What 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). |
location | string | No | Space: one place (place text, ZIP or lat,lon). EDR position; nearest on a feature product (non-empty). |
locations | string[], >= 1 items | No | Space: up to 25 places; one result element per place (at most 25 items). |
bbox | number[] | No | Space: [west, south, east, north] in degrees. Items on a feature or text product; a grid needs stats (exactly 4 items). |
area | object | No | Space: 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.product | string | No | The referenced product (one that declares query.area_as_reference), or omitted with geometry. |
area.feature_id | string | No | The referenced product's portable feature id (FIPS geoid, UGC zone, alert id) (non-empty). |
area.feature_ids | string[], >= 1 items | No | Up to 25 feature ids; one result element per feature (at most 25 items). |
area.filter | string[], >= 1 items | No | Selects 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.geometry | object | No | An inline MultiPolygon, <= 10,000 vertices; send a Polygon as a one-member MultiPolygon. |
path | object | No | Space: 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.geometry | object | No | The route as a LineString (or send polyline). |
path.polyline | string | No | The route as an encoded polyline, instead of geometry (non-empty). |
path.polyline_precision | 5 | 6 | No | Polyline decimal places; 6 for polyline6. |
path.times | string[] | No | The time at each vertex, in vertex order (instead of departure + speed). |
path.departure | string | No | Start time: RFC 3339 with seconds and an offset (2026-11-04T07:00:00-07:00); ETAs follow from speed. |
path.departures | string[], >= 1 items | No | Up to 3 start times to compare; one result element per departure (at most 3 items). |
path.speed | number | No | Travel speed for departure, in the request units (km/h, or mph with imperial) (> 0). |
hours | integer | No | Time: a rolling window of this many hours (ahead for a forecast, back for an analysis) (>= 1). |
start | string | No | Time: window start (with end), a date or RFC 3339. |
end | string | No | Time: window end (with start), inclusive. |
at | string | No | Time: one instant. |
run | string | No | Time: a model run (reference time), or latest (non-empty). |
step | string | No | Bucket size for stats: PT15M, PT1H, PT3H, PT6H or P1D. |
stats | string[], >= 1 items | No | Reducers 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. |
filter | string[], >= 1 items | No | On a feature product or derived id: expressions over its filterable properties (describe_data), applied before aggregation. |
where | string[], >= 1 items | No | Value 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. |
windows | object | No | Window search over where: consecutive runs of at least min_hours. |
windows.min_hours | integer | No | Shortest run of consecutive hours meeting every where expression (>= 1). |
windows.light | "day" | "night" | "any" | No | Restrict windows to daylight (day), darkness (night) or neither (any). |
windows.max_windows | integer | No | Most windows to return, earliest first (>= 1). |
windows.activity | string | No | What 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). |
criteria | object[] | No | What 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[].key | string | No | A 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[].label | string | No | Words for people (Wind, Fresh snow). Default: the variable's catalog title, else the key humanized (at most 24 characters). |
criteria[].source | "model" | "user" | "memory" | No | Who 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[].glyph | string | No | The 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[].var | string | No | A selected variable's standard_name (one of select). Exactly one of var, expr, daylight or hours_of_day. |
criteria[].expr | string | No | A 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" | No | A 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_day | object | No | A 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[].unit | string | No | With expr: the unit word for the chart (kt, °F) (at most 12 characters). |
criteria[].window | object | No | Score 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[].low | string | No | The words for an hour this criterion limits from below (light wind, no new snow, cold). Default: '<label> low' (at most 16 characters). |
criteria[].high | string | No | The 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[].before | string | No | Clock 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[].after | string | No | Clock 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[].ideal | object | No | The range that scores +1. An absent side is open (ideal: {max: 30} is 'the lower the better, 30 or less is ideal'). |
criteria[].ok | object | No | The acceptable range, containing ideal; its edges score 0. Required with ideal. |
criteria[].bad | object | No | Where the score reaches -1, outside ok. Default: as far beyond each ok edge as ideal lies inside it. |
criteria[].utility | array[] | No | The 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[].must | boolean | No | true (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" | No | imperial (default), metric or si (each variable's catalog units). |
view | "concise" | "detailed" | No | concise (default): values and feature properties with a centroid and bbox; detailed adds simplified geometry, provenance and raw encodings. |
sort | string | No | Order the rows by one key from the product's query.sort (describe_data): -key descending, key ascending, nulls last; limit: rows, max 50. |
limit | integer | No | Frames per series element (default and max 168), or features per element (max 50); next_cursor continues (>= 1). |
cursor | string | No | next_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_statusFreeData 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: {}.
| Parameter | Type | Required | Description |
|---|---|---|---|
include_ok | boolean, default false | No | true: 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 keyRender 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}.
| Parameter | Type | Required | Description |
|---|---|---|---|
kind | "map" | "sounding" | Yes | map: weather layers over a basemap; sounding: the nearest radiosonde as a skew-T and hodograph chart. |
select | string[] | No | Map 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. |
location | string | No | Map center or sounding place: place text, ZIP or lat,lon; not with bbox. |
bbox | number[] | No | Map extent [west, south, east, north] in degrees, instead of location and zoom. |
area | object | No | Map: an outline over the layers, by reference or inline; with no location or bbox, the extent. |
area.product | string | No | A boundary product (get_context include boundaries names one), with feature_id, feature_ids or filter. |
area.feature_id | string | No | Its feature id. |
area.feature_ids | string[] | No | Several feature ids. |
area.filter | string[] | No | Its features to outline, as filter expressions. |
area.geometry | object | No | An inline MultiPolygon. |
at | string (date-time) | No | Map: RFC 3339 instant with an offset; each layer draws its closest frame (default: latest). A forecast layer honors a future time. |
filter | string[] | No | Map: narrows feature overlays declaring the property, e.g. "event == Tornado Warning": <property> <op> <value>, op == != > >= < <= in (a comma list). |
zoom | number | No | Map zoom with location, 2-14: 5 regional, 8 metro, 10 city (default 7). |
width | integer | No | Map image width in pixels, 300-2000 (default 720). |
height | integer | No | Map image height in pixels, 200-2000 (default 440). |
units | "imperial" | "metric", default "imperial" | No | Map 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_dataFreeSearch 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"}.
| Parameter | Type | Required | Description |
|---|---|---|---|
query | string | No | The question in the user's words (2-200 chars); omit to list. |
location | string | No | "City, ST", ZIP or "lat,lon" (up to 200 chars); not with lat/lon. |
lat | number | No | Latitude (-90 to 90), with lon. |
lon | number | No | Longitude (-180 to 180), with lat. |
domain | "conus" | "alaska" | "hawaii" | "carib" | "global" | No | Coverage filter without a place; global = no filter. |
kind | "grid" | "snapshot" | "feature" | "text" | "index" | No | grid: 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. |
family | string | No | Source family, describe_data's family (1-40 chars). |
limit | integer | No | Rows (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.