Skip to main content
Glama

dem_contour

Generates contour lines at specified elevation intervals for a bounding box from a DEM source, producing GeoTIFF or PNG output with contour count and elevation range.

Instructions

Generate contour lines at specified elevation intervals for a bounding box.

Contour lines are rasterised: contour pixels contain their elevation level value, non-contour pixels are NaN. PNG output shows contours overlaid on a terrain-coloured background.

Args: bbox: Bounding box [west, south, east, north] in EPSG:4326 source: DEM source (cop30, cop90, srtm, aster, 3dep, fabdem) interval_m: Elevation interval between contour lines in metres (default 100) output_format: Output format (geotiff or png) output_mode: "json" or "text"

Returns: Contour raster artifact with contour count and elevation range

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": {
      "bbox": "<bbox>"
    },
    "name": "dem_contour"
  }
}

Input Schema

NameRequiredDescriptionDefault
bboxYes
sourceNocop30
interval_mNo
output_modeNojson
output_formatNogeotiff

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description must carry the full behavioral burden, and it does disclose genuinely useful rendering semantics: contour pixels carry elevation values, non-contour pixels are NaN, and PNG overlays contours on a terrain-coloured background. However, it omits operational behavior an agent needs, such as whether a remote source is fetched (latency/failure), how missing coverage is handled, and whether output resolution or file size scales with bbox.

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?

Front-loaded purpose sentence, then a short behavioral paragraph, then structured Args and Returns blocks — no filler and easy to scan. The Args/Returns skeleton is slightly verbose, but with no output schema the Returns note about contour count and elevation range earns its place.

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 five-parameter tool with no annotations and no output schema, the definition covers inputs, raster output encoding, and return contents, which is most of what an agent needs. It is short only on failure modes and on routing to dem_check_coverage or dem_list_sources before generating contours over an unverified bbox.

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

Parameters5/5

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

Schema description coverage is 0%, yet the args block documents all five parameters, adding meaning the schema lacks entirely: bbox ordering and CRS ([west, south, east, north] in EPSG:4326), the allowed source identifiers (cop30, cop90, srtm, aster, 3dep, fabdem), interval units in metres, and the geotiff/png output options. Only output_mode is merely value-listed ('json' or 'text') without explaining its effect, which is a minor residual gap on otherwise full compensation.

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 gives a specific verb and resource ('Generate contour lines') plus the controlling input ('at specified elevation intervals for a bounding box'), which is enough to separate it from raster-derived siblings like dem_slope or dem_hillshade. It never explicitly contrasts itself with a named alternative, so it stops just short of a 5.

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?

Usage is only implied by the artifact described: an agent can infer this is the tool for vector-style elevation isolines. There is no statement of when to prefer it over dem_map, dem_classify_landforms, or dem_check_coverage, and no exclusions or prerequisites (e.g. checking source availability before requesting a large bbox).

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