Skip to main content
Glama
GIS MCP Server
by mahdin75

raster_algebra

Adds or subtracts two raster bands and saves the result, enabling band-level raster math for change detection and index calculations in GIS workflows.

Instructions

Add or subtract two raster bands and save the result.

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": {
      "raster1": "<raster1>",
      "raster2": "<raster2>",
      "band_index": "<band_index>",
      "operation": "<operation>",
      "destination": "<destination>"
    },
    "name": "raster_algebra"
  }
}

Input Schema

NameRequiredDescriptionDefault
raster1Yes
raster2Yes
operationYes
band_indexYes
destinationYes

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. Changed7 schema fields changedv1.0.0
    • removedInput schema / properties / band_index / title
      Removed value: -"Band Index"
    • removedInput schema / properties / destination / title
      Removed value: -"Destination"
    • removedInput schema / properties / operation / title
      Removed value: -"Operation"
    • removedInput schema / properties / raster1 / title
      Removed value: -"Raster1"
    • removedInput schema / properties / raster2 / title
      Removed value: -"Raster2"
    • removedInput schema / title
      Removed value: -"raster_algebraArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full burden, but it says nothing about alignment requirements, CRS/resolution/extent mismatches, nodata handling, or what happens if destination already exists. It only discloses the basic effect and that a file is written.

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

Conciseness3/5

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

A single compact sentence with no filler, which is structurally clean. However, the brevity is under-specification rather than economy, given a five-parameter required schema.

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?

A five-required-parameter writing tool with no annotations, no output schema, and no parameter documentation needs considerably more than one sentence. As written, an agent cannot reliably fill band_index or the operation field, or predict the output's location and format.

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

Parameters1/5

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

Schema coverage is 0% across five undocumented parameters. The description only hints at raster1/raster2, two possible operation values, and a save destination; band_index and the remaining operation values are entirely unexplained, so it does not compensate for the coverage gap.

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: add or subtract two raster bands and save the result. That is enough to separate it from siblings like reclassify_raster or extract_band, though no sibling is named as an alternative.

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?

No guidance on when to use this instead of adjacent tools such as compute_ndvi, reclassify_raster, or concat_bands, and no preconditions are given. The agent has to infer usage purely from the one-line purpose.

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