Skip to main content
Glama

dem_classify_landforms

Classify terrain into landforms like ridges, valleys, plateaus, and plains using DEM slope, curvature, and ruggedness to support terrain analysis and mapping.

Instructions

Classify terrain into landform types (ridge, valley, plateau, etc.).

Rule-based classification using slope, curvature, and terrain ruggedness. Landform classes: plain, ridge, valley, plateau, escarpment, depression, saddle, terrace, alluvial_fan.

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

Returns: Landform classification map with class distribution

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

Input Schema

NameRequiredDescriptionDefault
bboxYes
methodNorule_based
sourceNocop30
output_modeNojson
output_formatNogeotiff

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A3.5/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 and does disclose the deterministic rule-based algorithm and the terrain derivatives it uses, plus the output payload (classification map plus class distribution). It does not state whether the DEM is fetched automatically, what happens on coverage gaps, or whether the classification is deterministic/reproducible across sources.

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 one-line purpose followed by supporting detail, all of which is load-bearing given the 0% schema coverage. The list of landform classes is verbose but genuinely informative since the schema exposes no enums.

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?

No annotations and no output schema, so the description must explain everything; it covers parameters and a rough return shape but omits error/coverage behavior, where output files are written when output_format is geotiff, and expected cost for large bboxes. Adequate but not complete for a five-parameter geospatial tool.

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%, and the Args block compensates well: it gives the bbox CRS (EPSG:4326), enumerates the six DEM sources, names the only valid method value, and explains output_format and output_mode. It falls short of explaining resolution implications of source choice or bbox size limits.

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?

States a specific verb and resource: 'Classify terrain into landform types' and enumerates the nine possible classes plus the inputs it derives them from (slope, curvature, ruggedness). This clearly separates it from sibling analysis tools like dem_slope or dem_terrain_ruggedness, though it never names an alternative to disambiguate against dem_interpret or dem_detect_features.

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 implied rather than stated: an agent can infer this is the landform-mapping step, but there is no explicit when-to-use, when-not-to-use, or comparison to sibling tools such as dem_interpret. The note that method is 'currently rule_based only' gives a useful constraint but not routing guidance.

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