Skip to main content
Glama
GIS MCP Server
by mahdin75

compute_ndvi

Calculate NDVI from red and near-infrared band indexes, then save the result as a GeoTIFF for vegetation analysis.

Instructions

Compute NDVI from red and near-infrared band indexes and save a GeoTIFF.

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": {
      "source": "<source>",
      "red_band_index": "<red_band_index>",
      "nir_band_index": "<nir_band_index>",
      "destination": "<destination>"
    },
    "name": "compute_ndvi"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
destinationYes
nir_band_indexYes
red_band_indexYes

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. Changed6 schema fields changedv1.0.0
    • removedInput schema / properties / destination / title
      Removed value: -"Destination"
    • removedInput schema / properties / nir_band_index / title
      Removed value: -"Nir Band Index"
    • removedInput schema / properties / red_band_index / title
      Removed value: -"Red Band Index"
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"compute_ndviArguments"
    • 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?

No annotations are provided, so the description carries the full behavioral burden, yet it only states that a GeoTIFF is written. It does not disclose overwrite behavior when 'destination' already exists, permission requirements, or failure modes on mismatched band indexes — the exact risks an agent needs for a write tool.

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?

One front-loaded sentence with the operation, inputs, and output side effect in that order; no filler or redundance.

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 4-required-parameter file-writing raster tool with no annotations, no output schema, and zero schema description coverage, the description leaves too much unstated — file path semantics, band index convention, and overwrite policy are all load-bearing for correct invocation.

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%, and the description implies the roles of all four parameters (source raster, red_band_index, nir_band_index, destination GeoTIFF). However it omits the critical ambiguity of band indexing convention (0-based vs 1-based, which GDAL/rasterio-style APIs differ on) and never says 'source' is a file path.

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?

Names a specific verb+resource ('Compute NDVI from red and near-infrared band indexes') and the side effect ('save a GeoTIFF'), which is enough to distinguish it from sibling raster utilities like extract_band or concat_bands. It stops short of the 5 bar because it never positions itself relative to those siblings explicitly.

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 when-to-use / when-not-to-use guidance and no prerequisites (e.g. must the source be a multi-band raster, must band counts match?). The agent must infer the workflow entirely from the name.

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