Skip to main content
Glama
GIS MCP Server
by mahdin75

tile_raster

Split a raster into square tiles by pixel size and save them to a target directory for tiled processing or display.

Instructions

Split a raster into square tiles of tile_size pixels and save them.

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>",
      "tile_size": "<tile_size>",
      "destination_dir": "<destination_dir>"
    },
    "name": "tile_raster"
  }
}

Input Schema

NameRequiredDescriptionDefault
sourceYes
tile_sizeYes
destination_dirYes

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. Changed5 schema fields changedv1.0.0
    • removedInput schema / properties / destination_dir / title
      Removed value: -"Destination Dir"
    • removedInput schema / properties / source / title
      Removed value: -"Source"
    • removedInput schema / properties / tile_size / title
      Removed value: -"Tile Size"
    • removedInput schema / title
      Removed value: -"tile_rasterArguments"
    • 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 supplied, so the description carries the entire behavioral burden, and it discloses only that tiles are written to disk. It says nothing about output file naming, format, overwrite behavior, handling of partial edge tiles, or whether the operation is idempotent. For a write-producing tool with zero annotation coverage this is a substantial gap.

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?

A single sentence with the operation and the size parameter front-loaded; nothing is wasted. It is arguably over-terse given the mutation involved, but the structure itself is clean.

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?

With no annotations, no output schema, and three parameters at 0% schema description coverage, the definition should say more about what the caller gets back (e.g., count or paths of created tiles) and the side effects on the destination directory. The current sentence leaves an agent unable to predict results or failure modes.

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% across three required parameters, so the description must compensate. It usefully clarifies that tile_size is measured in pixels and that the third parameter is a destination directory where results are saved, but it leaves 'source' unqualified (path vs. in-memory dataset) and gives no constraints such as valid tile sizes or path forms.

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 gives a specific verb and resource ('Split a raster into square tiles') plus the key parameter that governs the operation ('tile_size pixels'), and it tells the agent the tiles are saved rather than returned. It is clearly distinct from siblings like resample_raster or clip_raster_with_shapefile, though it does not explicitly say so.

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 choose tiling over clipping, resampling, or write_raster, nor any stated prerequisites such as the source being readable or the destination existing. The only implied usage is that the agent supplies a raster and a size and gets saved tiles.

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