Skip to main content
Glama
GIS MCP Server
by mahdin75

reclassify_raster

Replace raster cell values by mapping old values to new ones and save the result to a specified output path. Use it to reclassify land cover, scores, or categorical grids.

Instructions

Replace raster cell values using a mapping of old value to new value and save the raster.

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": {
      "raster_path": "<raster_path>",
      "reclass_map": "<reclass_map>",
      "output_path": "<output_path>"
    },
    "name": "reclassify_raster"
  }
}

Input Schema

NameRequiredDescriptionDefault
output_pathYes
raster_pathYes
reclass_mapYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.16.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed5 schema fields changedv1.0.0
    • removedInput schema / properties / output_path / title
      Removed value: -"Output Path"
    • removedInput schema / properties / raster_path / title
      Removed value: -"Raster Path"
    • removedInput schema / properties / reclass_map / title
      Removed value: -"Reclass Map"
    • removedInput schema / title
      Removed value: -"reclassify_rasterArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden. It discloses that values are replaced and the raster is saved, but it does not say whether the input raster is modified, whether output_path is overwritten, what happens on missing mapping keys, or what the call returns. Those are material gaps for a mutating file-output tool.

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?

The description is a single front-loaded sentence with no redundant wording. It is efficient, though its brevity contributes to the broader specification gaps rather than being a structural flaw in itself.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a mutating raster tool with a nested reclass_map, no annotations, no output schema, and 0% schema description coverage, this one-sentence description is under-specified. It does not cover overwrite behavior, input preservation, output format, or error handling for unmapped values.

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?

Schema description coverage is 0%, so the description must compensate. It meaningfully explains reclass_map as a mapping of old value to new value, which clarifies the nested-object parameter. However, raster_path and output_path receive no added semantics beyond their names, and output overwrite or format expectations are unstated.

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 states a specific verb and resource: 'Replace raster cell values' and 'save the raster.' It also names the mechanism, a value mapping, which distinguishes it from sibling raster operations like resample or reproject. It does not explicitly contrast with write_raster, but the core purpose is readily identifiable.

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 explicit when-to-use guidance, no exclusions, and no named alternatives among the many sibling raster tools. The use case is only implied by the word 'mapping' and the purpose statement, so an agent must infer when reclassification is appropriate rather than being told.

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