Elevation, profile and contour lines
Elevation of points, a profile along a path, or a DEM, hillshade, slope and contour lines for an area, worldwide at 30 m.
| MCP tool | get_elevation on https://mcp.terra-lab.ai/mcp |
| Group | Terrain and routes |
Use it
Connect the MCP server to your assistant and ask in plain words: the assistant picks get_elevation when the request fits and fills the arguments below. These are valid arguments:
{"mode":"point","points":["Annecy, France"]}
{"mode":"path","points":["Chamonix, France",{"latitude":45.8786,"longitude":6.8873,"name":"Aiguille du Midi"}]}
{"mode":"area","area":{"place":"Chamonix, France","radius_m":2000},"interval_m":50}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
mode | string | No | point: elevation of each point; path: profile along the points; area: DEM, hillshade and slope GeoTIFFs, plus contour lines and slope statistics for small areas. One of "point", "path", "area". Default "point". |
points | array of string or object | No | For point and path: points or place names. The place the user asks about, not the user's own location. 1 to 100 items. |
samples | integer | No | For path: number of samples along the path. From 10 to 500. Default 200. |
area | object | No | For area: The area: a bbox, or a place (name, address or coordinates) with an optional radius in metres. The place the user asks about, not the user's own location. |
area.bbox | array of number | No | [west, south, east, north] in decimal degrees (WGS 84). Exactly 4 items. |
area.place | string or object | No | A place name or address, or a point. |
area.radius_m | number | No | Radius around the place in metres. From 1 to 100000. |
interval_m | number | No | For area: vertical interval between contour lines, in metres. From 1 to 1000. Default 20. |
Response
structuredContent holds the result, content the same result as text for a model, and isError is true when the tool refused the request or failed; then structuredContent.code, message and hint say what to change.
{
"structuredContent": {
"sources": [{ "name": "...", "licence": "...", "url": "..." }],
"downloads": [{ "label": "...", "format": "...", "url": "...", "name": "..." }]
},
"content": [{ "type": "text", "text": "..." }],
"isError": false
}
Every result lists its sources with their licence. File results come as downloads: each link builds its file when opened.
Errors
A missing key answers 401, an empty balance 402, too many calls 429. A call that fails or finds nothing is not counted. See Errors and rate limits.
Description for agents
The text the server gives an agent to decide when to call this tool:
Use this when the user asks how high a place is (altitude, height above sea level), wants an elevation profile or the climb between places (elevation gain and loss, highest and lowest points, cross-section; the profile follows straight lines between the points given, so for a hike, a ride or a road pass the points along the way, not only its two ends), or asks about the terrain of an area, anywhere in the world: a DEM, relief or hillshade GIS file, contour lines (topographic lines) and how steep or flat it is (slope). Place names work directly, for example a town and a summit. Reads the values from Copernicus DEM, a 30 m surface model of the whole world, and returns the numbers, a profile chart, the path or contours on a map and files. mode "point": up to 100 points. mode "path": 2 to 100 points, sampled into at most 500 samples. mode "area": a bbox, a place or a place with a radius, limited to 36 one-degree DEM tiles and 4 million cells: returns the DEM clipped to the area as a GeoTIFF (30 m, coarser for very large areas), a hillshade GeoTIFF and a slope GeoTIFF, which open directly in QGIS or any GIS; for areas up to about 10 x 10 km it also returns contour lines (interval_m between lines; Shapefile, GeoJSON, KML) and slope statistics, so one call answers how steep a site is. If area_too_large returns retry_with, try that smaller area once and report the reduced coverage; do not repeat a rejected call. Not for routes or travel times. Needs a place, coordinates or an area: to explain what a DEM, a DSM or contour lines are, answer without this tool. Never use the user's current location unless they type it. Give the place as the user names it (place name, address or coordinates): this tool locates it, so find_places is not needed first. Download links build their file when opened; no file is saved. The user opens the file in QGIS or any GIS: this server cannot load it into the user's own QGIS or any app on their computer. Never pass these links to open_gis_file.
Call it over HTTP
The same tool is also callable over HTTP with an API key: POST https://mcp.terra-lab.ai/v1/tools/get_elevation with the arguments as the JSON body.
curl -X POST https://mcp.terra-lab.ai/v1/tools/get_elevation \
-H "Authorization: Bearer $TERRALAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{"mode":"point","points":["Annecy, France"]}'
import os
import requests
response = requests.post(
"https://mcp.terra-lab.ai/v1/tools/get_elevation",
headers={"Authorization": f"Bearer {os.environ['TERRALAB_API_KEY']}"},
json={
"mode": "point",
"points": ["Annecy, France"],
},
timeout=120,
)
response.raise_for_status()
print(response.json()["structuredContent"])
const response = await fetch('https://mcp.terra-lab.ai/v1/tools/get_elevation', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.TERRALAB_API_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"mode": "point",
"points": [
"Annecy, France"
]
}),
});
const data = await response.json();
console.log(data.structuredContent);
Was this page helpful?
Updated Nov 24, 2026