Skip to main content
Glama

dem_profile

Extract an elevation profile along a line between two points, including distance, elevation gain and loss, and per-point samples for terrain analysis.

Instructions

Extract an elevation profile along a line between two points.

Args: start: Start point [lon, lat] end: End point [lon, lat] source: DEM source (cop30, cop90, srtm, aster, 3dep, fabdem) num_points: Number of sample points (default 100, minimum 2) interpolation: Sampling method (nearest, bilinear, cubic) output_mode: "json" or "text"

Returns: Elevation profile with distance, gain, loss, and per-point data

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": {
      "start": "<start>",
      "end": "<end>"
    },
    "name": "dem_profile"
  }
}

Input Schema

NameRequiredDescriptionDefault
endYes
startYes
sourceNocop30
num_pointsNo
output_modeNojson
interpolationNobilinear

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It does disclose the return contents (distance, gain, loss, per-point data) and the num_points minimum, which is useful. However, it says nothing about source resolution differences, no-data behavior over water or gaps, units, or error conditions, so the behavioral picture is only partially covered.

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 purpose is front-loaded in one sentence, followed by a compact Args/Returns listing with no filler. The structured format is easy to scan, though the Args block is essentially a restatement of the schema that could have carried richer per-parameter meaning.

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?

There are no annotations and no output schema, so the description is the only source of behavioral and return information. It covers parameters and the shape of the return well, but for a geospatial sampling tool with six parameters it omits failure modes, data-coverage caveats, and source-selection consequences, leaving meaningful gaps.

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 0%, so the description must do all the work, and it largely does: it documents all six parameters, gives the [lon, lat] coordinate order for start/end, and enumerates the accepted values for source, interpolation, and output_mode that the schema leaves as unconstrained strings. It stops short of explaining what the source options mean (resolution/coverage trade-offs) or what interpolation choice changes.

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 opening sentence states a specific verb and resource: 'Extract an elevation profile along a line between two points.' An agent can tell this computes a sampled profile, not a chart or a single-point fetch. It does not explicitly name the sibling dem_profile_chart or explain how the two differ, so sibling differentiation is only implied by output_mode being json/text.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance and no named alternative. An agent must infer that this is for line-based sampling and that dem_fetch_point or dem_profile_chart cover other cases. Only the structural requirement (two endpoints) hints at appropriate usage.

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