get_elevation
Query terrain elevation in meters for points, bbox grids, line-of-sight intervisibility, and route profiles. Use it to check elevation gain, grade, or whether two points see each other.
Instructions
Query terrain elevation in meters above sea level using the Open-Meteo 90m Copernicus DEM API (free for non-commercial use; commercial use requires a paid key or self-hosted ELEVATION_API_URL). Supports 4 modes: 'points' (discrete coordinates), 'grid' (N×N bbox sample statistics), 'line_of_sight' (3D terrain intervisibility with WGS84 Earth curvature & atmospheric refraction between two points), and 'profile' (cumulative elevation gain/loss and max grade % along a route_geometry or path).
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_elevation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | No | A bounding box or point string to sample terrain elevation across (or SW-to-NE endpoints for 'line_of_sight'/'profile'). | |
| mode | No | Elevation query mode: 'points' (discrete coordinates), 'grid' (N×N bbox sample), 'line_of_sight' (3D terrain intervisibility & Earth curvature check between two points), or 'profile' (elevation gain/loss & grade profile along a path/route). | |
| origin | No | Start point ('lat,lng' or place name) for 'line_of_sight' or 'profile' mode. | |
| points | No | List of {lat, lng, label?} points to query elevation for (up to 100 points). Also accepted as [observer, target] in 'line_of_sight' or path vertices in 'profile'. | |
| location | No | A text location to sample elevation across (e.g. 'Mount Rainier', 'Denver'). | |
| grid_size | No | Grid dimension N (N x N samples, from 2 to 10) when sampling a bounding box. Defaults to 5 (25 sample points). | |
| destination | No | End/target point ('lat,lng' or place name) for 'line_of_sight' or 'profile' mode. | |
| sample_count | No | Number of elevation samples along the ray or route for 'line_of_sight' or 'profile' (5 to 100, default 25). | |
| route_geometry | No | GeoJSON LineString ({ type: 'LineString', coordinates: [[lng, lat], ...] }) from calculate_route to sample an elevation profile along. | |
| target_height_meters | No | Target height in meters above ground for 'line_of_sight' (default 0m). | |
| observer_height_meters | No | Observer height in meters above ground for 'line_of_sight' (default 1.7m). | |
| refraction_coefficient | No | Atmospheric refraction coefficient k for Earth curvature in 'line_of_sight' (default 0.13). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bbox | Yes | ||
| mode | Yes | ||
| samples | Yes | ||
| complete | Yes | ||
| warnings | Yes | ||
| share_url | Yes | ||
| provenance | Yes | ||
| sample_count | Yes | ||
| sample_stats | Yes | ||
| line_of_sight | No | ||
| matched_place | No | ||
| profile_stats | No | ||
| dem_resolution_meters | Yes |