Skip to main content
Glama
GIS MCP Server
by mahdin75

metadata_raster

Extract raster grid metadata from a local path or HTTPS URL, returning size, band count, data type, nodata value, CRS, bounds, and affine transform.

Instructions

Raster grid metadata: size, band count, dtype, nodata, CRS, bounds, and affine transform. Accepts a local path or HTTPS URL.

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": {
      "path_or_url": "<path_or_url>"
    },
    "name": "metadata_raster"
  }
}

Input Schema

NameRequiredDescriptionDefault
path_or_urlYes

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. Changed3 schema fields changedv1.0.0
    • removedInput schema / properties / path_or_url / title
      Removed value: -"Path Or Url"
    • removedInput schema / title
      Removed value: -"metadata_rasterArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose a real behavioral trait: the source may be a local path or an HTTPS URL, which tells the agent a network fetch is involved. It does not disclose that the call is non-mutating, what happens on an unreachable URL or invalid raster, or whether the full raster is read or only headers.

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?

Two short sentences with no filler; the field list is front-loaded. The fragmentary noun-phrase opening is slightly awkward as a lead but stays efficient.

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?

A simple, single-parameter read tool with no output schema, and the description effectively serves as a return-value contract by enumerating the metadata fields. Sufficient for correct invocation, with only error/remote-fetch behavior left unstated.

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 0% for the single parameter (only 'type: string'), and the description compensates by specifying the two accepted forms, local path or HTTPS URL. That is meaningful information the schema does not provide, though it does not add format or validation detail.

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 names the resource precisely (raster grid metadata) and enumerates exactly what is returned: size, band count, dtype, nodata, CRS, bounds, and affine transform. That distinguishes it from write/processing siblings, but it does not differentiate from get_raster_crs, which by name appears to return a subset of the same information.

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 statement of when to pick this over the alternatives — notably get_raster_crs or raster_band_statistics — and no prerequisites or failure conditions given. Usage is only inferable from the field list.

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