Skip to main content
Glama

Satellite before/after: two clearest Sentinel-2 scenes, images and NDVI change for any place

satellite_compare
Read-onlyIdempotent

Use when checking what changed at a place between two dates (construction, deforestation, flooding, crops). Input: lat, lon, radius_m (200-10000), before and after dates (20+ days apart). Output: JSON per date: clearest scene, area cloud %, NDVI mean/median, true color, NDVI and false color PNG URLs; NDVI change and reliability. No scene: 404, not charged. Behavior: each date is matched to the clearest Sentinel-2 L2A scene within ±window_days (default 15) by cloud share inside your square, not the whole tile; dates under 20 days apart: 400, not charged. NDVI is not cloud-masked, so reliability=low when either scene is over 20% cloud in the area. PNG URLs are rendered on open by Microsoft Planetary Computer, not stored by us; scene statistics are cached 30 days. Can take several seconds. Use instead: satellite_image for one date or other bands (NDWI, moisture); satellite_trend for month-by-month numbers. Example: ?lat=37.5665&lon=126.978&before=2026-04-15&after=2026-10-08 Price: $0.018 per call, paid in USDC (Base, Monad, Polygon, Arbitrum or Solana) via x402.

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": {
      "lat": "<lat>",
      "lon": "<lon>",
      "before": "<before>",
      "after": "<after>"
    },
    "name": "satellite_compare"
  }
}

Input Schema

NameRequiredDescriptionDefault
latYesLatitude, WGS84 decimal degrees
lonYesLongitude, WGS84 decimal degrees
sizeNoImage width/height in px (default 768)
afterYesLater date YYYY-MM-DD, at least 20 days after before
beforeYesEarlier date YYYY-MM-DD (2017-01-01 or later)
radius_mNoHalf-width of the square area in meters (default 2000)
window_daysNoSearch ± days around each date (default 15)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  2. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  3. Changed1 schema field changed
    • removedInput schema / additionalProperties
      Removed value: -false
  4. Added

TDQS

A4.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so safety is covered; the description still adds substantial non-obvious behavior: 404/400 responses are not charged, PNGs are rendered on open by Microsoft Planetary Computer rather than stored, scene stats cached 30 days, NDVI is NOT cloud-masked (making reliability=low above 20% area cloud), and calls may take several seconds. It does not disclose rate limits or the exact shape of the 'reliability' field, which keeps it below the top of the scale.

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 trigger, then Input/Output/Behavior/Use instead in a scannable labeled structure; a single example query and price line close it. It is dense and telegraphic (colons, fragments) and longer than average, but nearly every clause carries operational information rather than restating the name.

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

Completeness5/5

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

For a 7-parameter, no-output-schema tool with real failure modes, the definition covers return fields (scene, cloud %, NDVI mean/median, PNG URLs, change, reliability), error codes with billing consequences, latency, caching, and pricing. An agent has everything needed to decide, call, and interpret a failure without guessing.

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

Parameters4/5

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

Schema coverage is 100%, so baseline would be 3, but the description adds genuine meaning: window_days selects the clearest Sentinel-2 L2A scene by cloud share inside the user's square rather than the whole tile, radius_m bounds 200-10000, and before/after must be 20+ days apart. It omits guidance on the size parameter (image px dimensions), which the schema documents only minimally.

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?

Opens with a specific use case (before/after change detection at a place) covering construction, deforestation, flooding and crops, then names the exact inputs and outputs. An agent can immediately distinguish this from satellite_image (single date) and satellite_trend (month-by-month series).

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

Usage Guidelines5/5

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

Explicit when-to-use framing ('Use when checking what changed ... between two dates') plus a dedicated 'Use instead' clause routing to satellite_image for a single date or other bands and satellite_trend for month-by-month numbers, with the discriminating condition stated for each.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources