Skip to main content
Glama

dem_aspect

Computes terrain aspect (slope direction) for a bounding box using selectable DEM sources, returning a raster with values in degrees from 0 to 360.

Instructions

Compute aspect (slope direction) for a bounding box.

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

Returns: Aspect raster artifact with values in degrees (0-360)

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

Input Schema

NameRequiredDescriptionDefault
bboxYes
sourceNocop30
flat_valueNo
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 carries the full burden. It does disclose valuable behavior: output is a raster artifact in degrees 0-360 and flat areas receive a configurable sentinel value. It says nothing about data fetching latency, bbox size limits, whether the artifact is inline or a URL, or any permission/rate considerations for a tool that likely pulls remote DEM tiles.

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-liner followed by clearly labeled Args and Returns blocks, with no filler. The structure is exactly what an agent needs to map arguments, and 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 five parameters, no output schema, and no annotations, the definition covers argument semantics well but leaves return-value handling underspecified — 'raster artifact' does not clarify whether the agent receives a path, URL, or binary payload. For a compute tool that may be slow or size-limited, that omission matters.

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 largely does: it gives the bbox axis order and CRS (EPSG:4326), enumerates all six valid source values, names the two output formats, and explains flat_value's default. Gaps remain on constraints such as bbox size or source resolution differences.

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 opens with a specific verb and resource ('Compute aspect (slope direction) for a bounding box'), and the parenthetical gloss removes any ambiguity about what 'aspect' means. It is distinguishable from siblings like dem_slope or dem_hillshade by resource name, though it never explicitly contrasts with them.

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 guidance on when to choose aspect over dem_slope, dem_curvature, or dem_hillshade, nor on when to pick a particular DEM source or resolution. Usage is only inferable from the one-line purpose; the Args block documents parameters, not decision criteria.

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