Skip to main content
Glama

dem_terrain_ruggedness

Calculate a Terrain Ruggedness Index (TRI) raster for a bounding box from a chosen DEM source, quantifying mean elevation differences from neighboring cells in metres.

Instructions

Compute Terrain Ruggedness Index (TRI) for a bounding box.

TRI measures the mean absolute elevation difference between a cell and its 8 neighbours (Riley et al. 1999). Values are in metres.

Classification: 0-80m level, 81-116m nearly level, 117-161m slightly rugged, 162-239m intermediately rugged, 240-497m moderately rugged, 498-958m highly rugged, 959+m extremely rugged.

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

Returns: TRI raster artifact with values in metres

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

Input Schema

NameRequiredDescriptionDefault
bboxYes
sourceNocop30
output_modeNojson
output_formatNogeotiff

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden. It discloses the output units and a classification rubric, but says nothing about cost/latency of the computation, the resolution each source implies, whether the 'raster artifact' is a URL, file path or inline payload, or any error conditions for oversized/out-of-coverage bboxes.

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 with the core action and metric definition, then Args/Returns, which is easy to scan. The seven-tier classification block is long but genuinely useful for interpreting results, so it mostly earns its space; the description is somewhat verbose overall but not padded.

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 four-parameter raster computation with no annotations and no output schema, the definition supplies the metric definition, units, interpretation scale, all parameter meanings and a return description. It stops short of describing the returned artifact's actual form (reference vs. embedded raster) or size/coverage limits, which an agent would still need to probe.

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 schema has no enums, yet the description documents all four parameters, crucially giving the bbox ordering and CRS ('[west, south, east, north] in EPSG:4326') and enumerating the six accepted source tokens. The only weak spot is output_mode, whose 'json' vs 'text' semantics are not explained beyond the labels.

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 names a specific verb and resource ('Compute Terrain Ruggedness Index (TRI) for a bounding box') and defines the metric precisely, including the 8-neighbour mean absolute elevation difference and metre units. That level of specificity lets an agent distinguish it from the other raster-derivative siblings (slope, aspect, curvature) without opening schemas.

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?

Applicability is only implied: an agent can infer this is the tool for ruggedness/terrain-variability analysis, and the classification table hints at interpretation use cases. There is no explicit when-to-use vs. when-not guidance, no routing toward dem_slope or dem_hillshade for related analyses, and no advice on which DEM source to pick.

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