Skip to main content
Glama

slope

Idempotent

Calculate slope gradient from a DEM GeoTIFF and output a GeoTIFF, with units in degrees, percent, or radians. Rejects geographic CRS DEMs to avoid incorrect values; requires projected CRS.

Instructions

Slope gradient from a DEM: GeoTIFF in, GeoTIFF out.

units: degrees (default), percent or radians. DEMs in a geographic CRS are refused — degree cells with meter elevations give plausible but wrong values everywhere; reproject to a projected CRS first. The CRS decision is recorded in the provenance manifest. Requires the [whitebox] extra.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
unitsNodegrees
dem_pathYes
z_factorNo
output_pathYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Install Server

TDQS

A4.4/5.0
Behavior5/5

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

The description goes well beyond annotations by disclosing supported units, refusal of geographic CRS with a rationale about plausible but wrong values, provenance recording, and the whitebox dependency. These traits are not visible in the annotations or schema.

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?

The purpose is front-loaded in the first sentence, and the remaining sentences contain only high-value caveats and dependencies. There is no filler or redundancy.

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?

The description covers purpose, units, CRS restriction, provenance, and dependency, and an output schema exists for return details. The only notable gap is the unexplained z_factor parameter, which has a default and is likely optional for typical calls.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

With 0% schema property descriptions, the description must carry parameter meaning. It explains units values/default and implies dem_path/output_path roles via the GeoTIFF in/out wording, but z_factor remains undefined, leaving one of four parameters semantically opaque.

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 states a specific operation (slope gradient from a DEM) with clear input/output format (GeoTIFF in, GeoTIFF out). This makes it easy to distinguish from sibling terrain tools like hillshade or aspect.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives clear usage context and crucial preconditions: geographic CRS DEMs are refused and must be reprojected, and the whitebox extra is required. It doesn't name alternative tools, but it provides enough guidance on when to invoke slope correctly.

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

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mapsmith-ai/mapsmith'

If you have feedback or need assistance with the MCP directory API, please join our Discord server