Skip to main content
Glama

Elevation Line

elevation_line
Read-onlyIdempotent

"Elevation profile along a route" / "hiking trail elevation gain" / "topographic profile of [path]" / "how hilly is this route", elevation samples along a geometry (linestring). Pass geojson / polyline / encodedpolyline5 / encodedpolyline6. Use for hiking elevation gain, cycling grade analysis, trail planning, terrain profiles.

Example tool call

This call uses example arguments supplied in the tool’s input schema.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "geometry": {
        "type": "LineString",
        "coordinates": [
          [
            8.681495,
            49.41461
          ],
          [
            8.687872,
            49.420318
          ]
        ]
      },
      "format_in": "geojson"
    },
    "name": "elevation_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
geometryYesPer format_in
format_inYesgeojson | polyline | encodedpolyline5 | encodedpolyline6

Output Schema

NameRequiredDescriptionDefault
versionNo
geometryNoLineString (or polyline in the requested format_out); geojson coordinates are [lon, lat, elevation_m]
timestampNo
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedOutput schema / description
      Previous value: -"Elevation along line response from OpenRouteService"New value: +"The input line with an elevation (meters) added to every coordinate."
    • addedOutput schema / properties
      Added value: +{
      +  "attribution": {
      +    "type": "string"
      +  },
      +  "geometry": {
      +    "description": "LineString (or polyline in the requested format_out); geojson coordinates are [lon, lat, elevation_m]",
      +    "properties": {
      +      "coordinates": {
      +        "items": {
      +          "items": {
      +            "type": "number"
      +          },
      +          "type": "array"
      +        },
      +        "type": "array"
      +      },
      +      "type": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "timestamp": {
      +    "type": "number"
      +  },
      +  "version": {
      +    "type": "string"
      +  }
      +}
  2. Changed2 schema fields changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "format_in": "geojson",
      +    "geometry": {
      +      "coordinates": [
      +        [
      +          8.681495,
      +          49.41461
      +        ],
      +        [
      +          8.687872,
      +          49.420318
      +        ]
      +      ],
      +      "type": "LineString"
      +    }
      +  },
      +  {
      +    "format_in": "polyline",
      +    "geometry": "u{~vFvyys@fS"
      +  }
      +]
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "description": "Elevation along line response from OpenRouteService",
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.3/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the safety profile is covered. The description adds little beyond that — no mention of sampling resolution, maximum geometry length, rate limits, or whether vertical gain is computed versus raw samples returned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The opening slash-separated list of quoted search phrases is keyword stuffing that delays the actual statement of purpose. The remaining sentences are efficient and front-load the format guidance, but the preamble costs the reader real parsing effort.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists and both parameters are fully documented, so the description needn't explain return values. Still, for a geometry-consuming tool the description omits practical constraints an agent needs — coordinate order, point limits, and whether the result is per-vertex samples or an interpolated profile.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents both parameters and the four accepted format_in values. The description restates the same format list ('geojson / polyline / encodedpolyline5 / encodedpolyline6') without adding syntax, coordinate-order, or validation detail — baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a concrete resource and operation: 'elevation samples along a geometry (linestring)'. The 'along a geometry (linestring)' qualifier implicitly separates it from the point-elevation sibling, but the sibling elevation_point is never named, so the agent must infer the distinction.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It lists concrete scenarios ('hiking elevation gain, cycling grade analysis, trail planning, terrain profiles'), which gives usable context for when to reach for it. However, there is no exclusion guidance or explicit pointer to elevation_point for single-point lookups, leaving alternative selection to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.