Openmeteo Get Marine
openmeteo_get_marineMarine wave and ocean conditions for a coastal or ocean coordinate: wave height, wave period, wave direction, wind-wave height, swell height, sea-surface temperature. Forecast horizon up to 16 days, with optional past_days (up to 92) for recent history — or start_date and end_date together for an archive range, which returns real wave values back to at least 2022. One window per call: a date range is mutually exclusive with forecast_days and past_days, and needs both ends — a lone start_date or end_date is rejected. With models omitted the data is Open-Meteo's best_match blend, whose wave data runs about 9 days — later days come back null and the notice says where the data ends. Set models to reach further (ncep_gfswave025 runs 16 days, ecmwf_wam about 15) or to compare wave models side by side; with 2+ models every hourly and daily key carries the model name as a suffix (wave_height_ecmwf_wam). Returns per-timestamp records — each entry contains a "time" field plus one key per requested variable. Best for open-ocean and coastal exposed points — sheltered water such as a sound or bay returns near-zero wave values, and a land point well inland returns null values, which the notice reports. A land point near the coast is answered from a nearby sea cell with real values and no notice, so check the response latitude and longitude is the water you meant. Common hourly variables: wave_height, wave_direction, wave_period, wind_wave_height, wind_wave_direction, wind_wave_period, swell_wave_height, swell_wave_direction, swell_wave_period. Common daily: wave_height_max, wave_direction_dominant, wave_period_max. Note: ocean_current_velocity is null for non-open-ocean coordinates. Set current_variables for conditions at this instant — Open-Meteo serves those from 15-minute model data, and the response carries a current object plus a current_units map, alongside either window. length_unit "imperial" returns heights in ft, wind_speed_unit sets the ocean_current_velocity unit, and temperature_unit the sea_surface_temperature unit — converted upstream, with every unit read from the *_units maps. A wide window — a large past_days or date range plus many variables — produces thousands of records; these spill to a DataCanvas when canvas is enabled, returning canvas_id and table_name with truncated: true — inspect the staged columns with openmeteo_dataframe_describe, then query the full set with openmeteo_dataframe_query. With canvas disabled they return a bounded preview instead. At least one of current_variables, hourly_variables, or daily_variables is required.
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": {
"latitude": "<latitude>",
"longitude": "<longitude>"
},
"name": "openmeteo_get_marine"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| models | No | Marine models to read from — to reach past the default blend's horizon of about 9 days, or to compare wave models side by side. Documented: best_match (default, about 9 days), meteofrance_wave (global 0.08°, about 9 days), meteofrance_currents (global 0.08°, ocean currents and sea-surface temperature, no wave variables), ecmwf_wam (global 9 km, about 15 days), ecmwf_wam025 (global 0.25°, about 15 days), ncep_gfswave025 (global 0.25°, 16 days), ncep_gfswave016 (52.5°N to 15°S, 0.16°, 16 days), ewam (Europe only, 0.05°, about 3 days), gwam (global 0.25°, about 7 days), era5_ocean (global 0.5° reanalysis, about 5 days behind, so forecast days are null). Omit to use Open-Meteo's best_match blend. With 2+ models every hourly and daily column and unit key is suffixed with the model name (wave_height_ecmwf_wam, and best_match's as wave_height_marine_best_match); one model keeps plain names. A regional model serves only its own domain: when every requested model misses the coordinate the call fails as coverage_gap, and when only some do, Open-Meteo drops those and the notice names them, or, when one model is left with unsuffixed columns, says the values cannot be attributed to a model. current_variables takes at most one model. Works with either window. A name outside this list is sent upstream rather than rejected here. | |
| end_date | No | End date for the archive range (YYYY-MM-DD, inclusive). Must be on or after start_date. Requires start_date — the pair must be sent together, and neither combines with forecast_days or past_days. | |
| latitude | Yes | Latitude of a coastal or ocean point. Use openmeteo_search_locations to resolve a place name. Sheltered water returns near-zero wave values; a land point well inland returns null values, which the notice reports, while one near the coast is answered from a nearby sea cell with no notice — check the response latitude and longitude is the water you meant. | |
| timezone | No | IANA timezone or "auto". Default "auto". | auto |
| canvas_id | No | DataCanvas token for wide past_days, archive-range, or multi-variable queries. When a result is too large to return inline — driven by total payload size, so a wide multi-variable pull can spill at any row count — it spills to this canvas: pass the returned token to openmeteo_dataframe_describe to list the staged table and its columns, then to openmeteo_dataframe_query to run SQL against it. Omit to create a fresh canvas. | |
| longitude | Yes | Longitude in decimal degrees. | |
| past_days | No | Include this many days of past data before today (0–92). Use for recent history instead of a start_date/end_date range. Default 0. Must stay 0 when start_date/end_date are used. | |
| start_date | No | Start date for the archive range (YYYY-MM-DD, e.g., "2024-07-01"). Real wave values go back to at least 2022. Requires end_date — the pair must be sent together, and neither combines with forecast_days or past_days. | |
| length_unit | No | Unit for wave, wind-wave, and swell heights and sea_level_height_msl: "metric" (m) or "imperial" (ft). Periods stay in seconds and directions in degrees. Default "metric". | metric |
| forecast_days | No | Forecast horizon in days (1–16). Omit for the upstream default of 7. The default blend's wave data runs about 9 days, so later days come back null and the notice says where the data ends — set models to a model that runs longer, such as ncep_gfswave025 (16 days). Mutually exclusive with start_date/end_date — omit it entirely when pulling an archive range. | |
| daily_variables | No | Daily marine summary variables (e.g., ["wave_height_max", "wave_direction_dominant", "wave_period_max"]). Daily names only — an hourly name such as wave_height belongs in hourly_variables and is rejected here; for a daily summary use its published aggregate (wave_height_max). At least one of current_variables, hourly_variables, or daily_variables is required. | |
| wind_speed_unit | No | Unit for ocean_current_velocity: "kmh" (km/h), "mph" (labelled "mp/h" in the units maps), "ms" (m/s), or "kn" (knots). Default "kmh". | kmh |
| hourly_variables | No | Hourly marine variables (e.g., ["wave_height", "wave_direction", "wave_period", "wind_wave_height", "swell_wave_height"]). Hourly names only — a daily aggregate such as wave_height_max or wave_direction_dominant belongs in daily_variables and is rejected here. At least one of current_variables, hourly_variables, or daily_variables is required. | |
| temperature_unit | No | Unit for sea_surface_temperature: "celsius" or "fahrenheit". Default "celsius". | celsius |
| current_variables | No | Marine variables to return for the current instant (e.g., ["wave_height", "wave_period", "wave_direction", "sea_surface_temperature"]). Uses Open-Meteo's 15-minute current-conditions data, so it answers "what are the waves right now?" without requesting an hourly series and picking a row. Takes the hourly variable names — a daily aggregate such as wave_height_max belongs in daily_variables and is rejected here. Combines with past_days or a start_date/end_date range; the current block is always the present instant. Takes at most one model. Satisfies the variable requirement on its own. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| daily | No | Per-day summary records with "time" (YYYY-MM-DD) + variable keys (e.g., wave_height_max, wave_direction_dominant, wave_period_max) — per model, suffixed with the model name, when 2+ models were requested. Units are in the daily_units map; heights follow length_unit. Absent when only hourly_variables were requested. When truncated, contains only a preview — query canvas_id for the full dataset when one is present. | |
| error | No | Present when the call failed. Absent on success. | |
| hourly | No | Per-hour records with "time" (ISO 8601 with the UTC offset that instant observes in timezone, e.g. "2024-03-10T03:00-07:00"; "+00:00" for GMT) + one key per requested variable (e.g., wave_height, wave_direction, wave_period) — one key per variable per model, suffixed with the model name (wave_height_ecmwf_wam), when 2+ models were requested. Units are in the hourly_units map: heights follow length_unit, ocean_current_velocity follows wind_speed_unit, sea_surface_temperature follows temperature_unit. Absent when only daily_variables were requested. When truncated, contains only a preview — query canvas_id for the full dataset when one is present. | |
| models | No | Marine models requested — echoes the models input. Absent when models was omitted, which means the data came from Open-Meteo's best_match blend. | |
| notice | No | Everything this response needs to say beyond the data, composed into one advisory: columns the endpoint returned with the unit "undefined" (a name it parsed but does not serve, or — on a model-suffixed column, or the plain column of a call that sent models — a variable that model does not serve); requested models Open-Meteo left out for having no data at this coordinate, or the plain-named columns a multi-model request cannot attribute to one model; current values that are null under a real unit (no coverage at this location, such as a point well inland); recognized variables whose requested window or location falls outside the data's coverage (a point well inland returns nulls, and a forecast window past the model's horizon ends in nulls), with the timestamps that do carry values — a variable null across the whole window is attributed to the selected model that returned it empty when another selected model returned values for it; the daily dates whose aggregates do not run midnight to midnight local time, because Open-Meteo bounds every daily row at utc_offset_seconds and those dates observe another offset; that every time is given at utc_offset_seconds when this server cannot resolve the echoed time zone, or when its time-zone data gives that zone another offset at the moment Open-Meteo answered; and, when the result spilled, either the canvas and table holding the full row set plus the two dataframe tools that read it, or — with DataCanvas disabled — why there is no canvas_id and how to reach the rows the preview omits. | |
| current | No | Conditions at a single instant: one key per requested current variable alongside time and interval. Units are in the current_units map. Absent when current_variables was not requested. | |
| latitude | No | Latitude of the grid cell that answered — with models set, on the grid of the first listed model that covers the coordinate | |
| timezone | No | Resolved IANA timezone | |
| canvas_id | No | DataCanvas token for the staged full dataset. Present only when truncated is true AND DataCanvas is enabled (CANVAS_PROVIDER_TYPE=duckdb) — absent otherwise, in which case the preview is all this response carries. Pass to openmeteo_dataframe_describe to list the staged table and its columns, then to openmeteo_dataframe_query to run SQL against it. | |
| longitude | No | Longitude of the grid cell that answered (with models set, on the grid of the first listed model that covers the coordinate) | |
| truncated | No | True when the response was too large to return inline, so hourly and daily carry a bounded preview rather than the full set. With DataCanvas enabled the complete data is staged at canvas_id — every hourly and daily row, including any column the preview omits. With it disabled there is no canvas_id, and the omitted rows are reached only by narrowing the request. | |
| table_name | No | DuckDB table name for the staged data — use as the FROM target in openmeteo_dataframe_query SQL; openmeteo_dataframe_describe lists its columns. Present only alongside canvas_id. | |
| daily_units | No | Variable → unit string for daily data, model-suffixed like the records when 2+ models were requested. Absent when no daily_variables were requested. | |
| hourly_units | No | Variable → unit string for hourly data, as Open-Meteo labels it (e.g., {"wave_height": "ft", "wave_period": "s"} under length_unit "imperial"), keyed by the same model-suffixed names as the records when 2+ models were requested. Absent when no hourly_variables were requested. | |
| record_count | No | Total number of records (hourly + daily rows) — the full upstream total when truncated is true, not the combined length of the hourly and daily previews. | |
| current_units | No | Key → unit string for the current block, covering time and interval as well as each requested variable (e.g., {"interval": "seconds", "wave_height": "ft"}). Absent when no current_variables were requested. | |
| utc_offset_seconds | No | UTC offset in seconds that Open-Meteo applied when it answered (the zone's offset at request time). It bounds the requested window and each daily row; every timestamp carries the offset of its own instant in its suffix, unless the notice says every time is given at this offset. |