Skip to main content
Glama

dem_detect_features

Detect terrain features such as peaks, ridges, valleys, cliffs, saddles, and channels from DEM data using multi-angle hillshade and edge analysis.

Instructions

Detect discrete terrain features using CNN-inspired multi-angle hillshade.

Generates 8 hillshades at different sun angles, applies Sobel edge filters to each (mimicking CNN convolutional layers), then classifies pixels into feature types based on edge consensus, slope, and curvature.

Feature types: peak, ridge, valley, cliff, saddle, channel.

Args: bbox: Bounding box [west, south, east, north] in EPSG:4326 source: DEM source (cop30, cop90, srtm, aster, 3dep, fabdem) method: Detection method (currently "cnn_hillshade") output_format: Output format (geotiff or png) output_mode: "json" or "text"

Returns: Feature map artifact with detected feature list and summary

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_detect_features"
  }
}

Input Schema

NameRequiredDescriptionDefault
bboxYes
methodNocnn_hillshade
sourceNocop30
output_modeNojson
output_formatNogeotiff

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?

No annotations exist, so the description bears the full load, and it does disclose the internal algorithm (8 hillshades, Sobel edge filters, pixel classification via edge consensus, slope and curvature) plus the return payload. That implies meaningful compute cost, but it never states runtime expectations, input size limits, caching, or failure modes for this heavier pipeline.

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 definition is front-loaded with the purpose, then the algorithm, then Args/Returns blocks, which is easy to parse. The CNN-mimicry explanation is slightly indulgent but earns its place by explaining the detection heuristic; nothing is redundant.

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?

With no output schema, the Returns line ('Feature map artifact with detected feature list and summary') is the only description of results, and it is vague about whether the artifact is a file path, URL, or inline payload. For a 5-parameter, computationally heavy tool, missing size limits and return-handle details leave a real 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 description coverage is 0%, so this section must compensate and largely does: bbox is defined as [west, south, east, north] in EPSG:4326, source lists all six accepted values (cop30, cop90, srtm, aster, 3dep, fabdem), and output_format and output_mode enumerate their permitted values. The only gap is that no constraints are stated for bbox extent or resolution interplay.

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 uses a specific verb and resource ('Detect discrete terrain features') and enumerates the exact output classes (peak, ridge, valley, cliff, saddle, channel), so the agent knows precisely what is produced. It does not explicitly differentiate itself from close siblings such as dem_classify_landforms or dem_detect_anomalies, which keeps it 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 Guidelines2/5

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

There is no statement of when to choose this over dem_classify_landforms, dem_detect_anomalies, dem_curvature, or dem_hillshade, all of which overlap conceptually. The note that method is 'currently cnn_hillshade' implies this is the only detection method, but that is not usage guidance and no preconditions (input resolution, bbox size limits) are given.

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