Skip to main content
Glama

Elevation profile of a path

elevation_profile
Read-onlyIdempotent

Elevation profile along a path of two or more points: distance, ascent, descent, the lowest and the highest point, and up to 100 points along the way (distance from the start, height, lat, lon). The path is sampled every 90 m unless samples or interval_m is set. Each sample counts as one lookup, up to the plan maximum per call.

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": {
      "path": "<path>"
    },
    "name": "elevation_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesthe points of the path in order, each with lat and lon
samplesNonumber of samples along the path
interval_mNometres between samples, at least 10

Output Schema

NameRequiredDescriptionDefault
max_mNo
min_mNo
pointsYesup to 100 samples, evenly spread
lookupsYes
samplesYes
ascent_mYes
descent_mYes
distance_mYes
interval_mYes
attributionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ascent_m": {
      +      "type": "number"
      +    },
      +    "attribution": {
      +      "type": "string"
      +    },
      +    "descent_m": {
      +      "type": "number"
      +    },
      +    "distance_m": {
      +      "type": "number"
      +    },
      +    "interval_m": {
      +      "type": "number"
      +    },
      +    "lookups": {
      +      "type": "integer"
      +    },
      +    "max_m": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "min_m": {
      +      "type": [
      +        "number",
      +        "null"
      +      ]
      +    },
      +    "points": {
      +      "description": "up to 100 samples, evenly spread",
      +      "items": {
      +        "properties": {
      +          "distance_m": {
      +            "type": "number"
      +          },
      +          "elevation_m": {
      +            "type": [
      +              "number",
      +              "null"
      +            ]
      +          },
      +          "lat": {
      +            "type": "number"
      +          },
      +          "lon": {
      +            "type": "number"
      +          }
      +        },
      +        "required": [
      +          "distance_m",
      +          "elevation_m",
      +          "lat",
      +          "lon"
      +        ],
      +        "type": "object"
      +      },
      +      "type": "array"
      +    },
      +    "samples": {
      +      "type": "integer"
      +    }
      +  },
      +  "required": [
      +    "distance_m",
      +    "ascent_m",
      +    "descent_m",
      +    "samples",
      +    "interval_m",
      +    "lookups",
      +    "points"
      +  ],
      +  "type": "object"
      +}
  2. First observed

TDQS

A4.3/5.0
Behavior4/5

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

The annotations already establish read-only, idempotent, non-destructive, open-world behavior, and the description adds important quota/cost context: each sample counts as one lookup up to the plan maximum per call. It also discloses the default sampling interval, which materially affects invocation behavior.

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

Conciseness4/5

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

The description is compact and front-loads the main purpose and output shape. It includes a few details about returned sample fields that may be less essential given the output schema, but the text remains efficient overall.

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

Completeness4/5

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

For a read-only profile tool with an output schema, the description covers the essential behavior: path requirement, default sampling, override parameters, output contents, and lookup cost. It is nearly complete, with only the lack of explicit sibling routing as a minor gap.

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

Parameters4/5

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

Schema coverage is 100%, so the parameters are already documented, but the description adds useful meaning by explaining that the path is sampled every 90 m by default and that samples or interval_m overrides this. This clarifies parameter interaction beyond the raw schema.

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

Purpose5/5

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

The description states a specific operation on a specific resource: an elevation profile along a path of two or more points. It also names the key outputs, including distance, ascent, descent, lowest/highest point, and sampled points, so the tool is distinguishable from a point-elevation tool.

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

Usage Guidelines4/5

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

The description makes the usage context clear by specifying a path of two or more points and explaining the default 90 m sampling unless samples or interval_m is set. It does not explicitly name when to use elevation_points instead, but the path-based scope gives strong implicit guidance.

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.

Resources