Skip to content
TerraLabTerraLabDocs
Markdown

French building heights

Height in metres, floors, main use and year built of every building around an address or in a small area in France, from IGN BD TOPO.

MCP toolfrench_building_heights on https://mcp.terra-lab.ai/mcp
GroupFrance

Use it

Connect the MCP server to your assistant and ask in plain words: the assistant picks french_building_heights when the request fits and fills the arguments below. These are valid arguments:

{"area":{"place":"10 place Bellecour, Lyon","radius_m":150}}
{"area":{"bbox":[2.294,48.857,2.299,48.86]},"formats":["shapefile"]}

Parameters

NameTypeRequiredDescription
areaobjectYesThe 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.bboxarray of numberNo[west, south, east, north] in decimal degrees (WGS 84). Exactly 4 items.
area.placestring or objectNoA place name or address, or a point.
area.radius_mnumberNoRadius around the place in metres. From 1 to 100000.
formatsarray of stringNoDownload formats. Default ["geojson"].

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 tall the buildings are around an address or in a small area in France: height in metres per building, floors, main use, year built and ground altitude, from IGN BD TOPO. The area is a place with a radius (default 150 m, at most 2,000 m) or a bbox of at most 16 km². Shows the buildings on a map with a height summary (count, median, tallest) and GeoJSON, KML, Shapefile zip or CSV downloads. France only (mainland, Corsica and overseas departments). 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: list every format the user needs in formats, in this one call.

Call it over HTTP

The same tool is also callable over HTTP with an API key: POST https://mcp.terra-lab.ai/v1/tools/french_building_heights with the arguments as the JSON body.

curl -X POST https://mcp.terra-lab.ai/v1/tools/french_building_heights \
  -H "Authorization: Bearer $TERRALAB_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"area":{"place":"10 place Bellecour, Lyon","radius_m":150}}'
import os
import requests

response = requests.post(
    "https://mcp.terra-lab.ai/v1/tools/french_building_heights",
    headers={"Authorization": f"Bearer {os.environ['TERRALAB_API_KEY']}"},
    json={
        "area": {
            "place": "10 place Bellecour, Lyon",
            "radius_m": 150,
        },
    },
    timeout=120,
)
response.raise_for_status()
print(response.json()["structuredContent"])
const response = await fetch('https://mcp.terra-lab.ai/v1/tools/french_building_heights', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.TERRALAB_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    "area": {
      "place": "10 place Bellecour, Lyon",
      "radius_m": 150
    }
  }),
});
const data = await response.json();
console.log(data.structuredContent);
Explained on the blogHow Tall Is a Story? Height Chart for 1 to 12 Stories, in Feet

Was this page helpful?

Updated Nov 23, 2026