Skip to main content
Glama
GIS MCP Server
by mahdin75

resample_raster

Resample a raster by a chosen scale factor and resampling method, then save the output to a destination file for subsequent geospatial analysis.

Instructions

Resample a raster by a scale factor 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": {
      "source": "<source>",
      "scale_factor": "<scale_factor>",
      "resampling": "<resampling>",
      "destination": "<destination>"
    },
    "name": "resample_raster"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
resamplingYes
destinationYes
scale_factorYes

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 / resampling / title
      Removed value: -"Resampling"
    • removedInput schema / properties / scale_factor / title
      Removed value: -"Scale Factor"
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / title
      Removed value: -"resample_rasterArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden, but it only says the result is saved. It does not disclose overwrite behavior, resampling algorithm choices, CRS/extent implications, or what happens to existing destination files.

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 single sentence is front-loaded and wastes no words. It is concise, though the brevity contributes to the missing behavioral and parameter detail.

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?

This is an I/O-mutating raster tool with four required parameters, no annotations, and no output schema. The description leaves critical details undocumented, including resampling method options and destination behavior.

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 coverage is 0% and the description explains only 'scale_factor' implicitly. The required 'source', 'resampling', and 'destination' parameters receive no meaning, allowed values, or format guidance beyond their names.

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: 'Resample a raster', plus the key operation (scale factor) and outcome (save result). It is clear what the tool does, but it does not differentiate itself from siblings like reproject_raster or write_raster.

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 guidance on when to use this versus alternatives such as reproject_raster, write_raster, or tile_raster. No preconditions, exclusions, or usage context are provided.

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