Skip to main content
Glama

Tool Compute Spectral Changes

tool_compute_spectral_changes

Computes multitemporal ΔMNDWI, ΔBSI, and ΔNDVI between T0/T1 Sentinel-2 scenes with SCL masks and native 10/20 m resolution to assess river-channel hydrometric change.

Instructions

Calcula diferencias espectrales multitemporales ΔMNDWI, ΔBSI y ΔNDVI entre T0 y T1.

Respeta resoluciones nativas Sentinel-2 (10 m VNIR y 20 m SWIR/SCL), aplica máscara SCL y evalúa la variación hidrométrica global del tramo en coordenadas POSGAR 2007.

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": {
      "t0_path": "<t0_path>",
      "t1_path": "<t1_path>"
    },
    "name": "tool_compute_spectral_changes"
  }
}

Input Schema

NameRequiredDescriptionDefault
t0_pathYes
t1_pathYes
t0_swir_20m_pathNo
t1_swir_20m_pathNo

Output Schema

NameRequiredDescriptionDefault
statsNoEstadísticas descriptivas (min, max, mean, std y métricas hidrológicas) del tramo.
statusYesEstado del procesamiento espectral (ej. 'success').
crs_epsgYesCódigo EPSG métrico POSGAR 2007.
resolution_mYesResolución espacial de grilla en metros.
bounds_posgarYesExtensión métrica (minx, miny, maxx, maxy).
delta_bsi_pathYesRuta al GeoTIFF Float32 de ΔBSI (BSI_T1 - BSI_T0).
delta_ndvi_pathYesRuta al GeoTIFF Float32 de ΔNDVI (NDVI_T1 - NDVI_T0).
delta_mndwi_pathYesRuta al GeoTIFF Float32 de ΔMNDWI (MNDWI_T1 - MNDWI_T0).
valid_pixel_fractionNoFracción de píxeles válidos tras aplicar máscara SCL en T0 y T1.
effective_resolution_swir_mNoResolución física nativa de las bandas SWIR (B11/B12) en metros.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations supplied, the description carries the burden and does add real behavioral context: native Sentinel-2 resolutions (10 m VNIR, 20 m SWIR/SCL), SCL mask application, and POSGAR 2007 coordinates for the hydrometric evaluation. What is missing is failure behavior (what happens on grid/CRS mismatch or missing 20 m inputs) and whether any intermediate artifacts are written; return values are covered by the output schema.

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 with the core computation in the first sentence, followed by processing constraints; no filler. The three-line layout is readable, though the second paragraph mixes resolution, masking, and CRS concerns that could be split more cleanly.

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?

For a moderately complex geospatial computation with an output schema and four simple string parameters, the description covers inputs, processing assumptions, and coordinate system. The residual gaps are the optional 20 m path semantics and error/precondition behavior, which matter for correct invocation.

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

Parameters2/5

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

Schema description coverage is 0% across four parameters, so the description must compensate and largely does not. It conveys that T0 and T1 are the two temporal inputs and alludes to 20 m SWIR handling, but never explains what t0_swir_20m_path / t1_swir_20m_path are, why they are nullable/defaulted to null, or what happens when they are omitted.

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+resource and enumerates exactly what is computed (ΔMNDWI, ΔBSI, ΔNDVI between T0 and T1), so an agent can tell this is a multitemporal index-differencing tool. It does not distinguish itself from siblings that are clearly adjacent in the pipeline (resolve_posgar_crs, search_multitemporal_pair), so it falls short of a 5.

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

Usage Guidelines3/5

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

Usage is only implied: the mention of T0/T1 and multitemporal comparison suggests the change-detection step of a workflow, but there is no explicit when-to-use, when-not-to-use, or prerequisite ordering (e.g., whether the pair must be resolved to POSGAR 2007 or pre-masked beforehand). No alternative sibling is named.

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