Skip to main content
Glama

dem_curvature

Computes surface curvature for a bounding box from DEM data, helping identify ridges, valleys, and planar areas for terrain analysis.

Instructions

Compute surface curvature (profile curvature) for a bounding box.

Curvature measures the rate of change of slope. Positive values indicate convex surfaces (ridges), negative values indicate concave surfaces (valleys), and near-zero values indicate planar surfaces.

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: Curvature raster artifact with value range in 1/m

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

Input Schema

NameRequiredDescriptionDefault
bboxYes
sourceNocop30
output_modeNojson
output_formatNogeotiff

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.3

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the whole burden; it does disclose the output nature (raster artifact), the value units (1/m), and how to read positive vs negative values, which is genuinely useful. It omits operational behavior such as cost, resolution dependence on source, timeouts for large bboxes, or what happens on unsupported areas.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded one-line purpose followed by a useful interpretation sentence and clean Args/Returns blocks; no filler and no repetition of the title.

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?

It covers the parameters and gives a rough return description, but with no output schema the agent still cannot tell how the artifact is delivered (path, URL, inline bytes) or what "text" mode returns. For a compute tool whose output is a file, that delivery detail is 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 the description must compensate, and it does: bbox is documented as [west, south, east, north] in EPSG:4326, and all three optional params list their allowed values (cop30/cop90/srtm/aster/3dep/fabdem, geotiff/png, json/text). Only the distinction between output_mode json and text remains undefined.

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: "Compute surface curvature (profile curvature) for a bounding box," which an agent can distinguish from siblings like dem_slope or dem_aspect by the named terrain derivative. It does not explicitly differentiate itself from those siblings in text, but the operation is unambiguous.

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?

The description explains what curvature values mean but never says when to choose curvature over slope, aspect, or terrain ruggedness, nor any preconditions such as checking coverage or source availability first. No exclusions or alternatives are named.

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