Skip to main content
Glama
GIS MCP Server
by mahdin75

get_raster_crs

Retrieve a raster's coordinate reference system as a PROJ dict and WKT from a local path or HTTPS URL, enabling spatial reference verification and correct geospatial use.

Instructions

Raster CRS as a PROJ dict and WKT. 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": "get_raster_crs"
  }
}

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: -"get_raster_crsArguments"
    • 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?

With no annotations supplied, the description carries the full burden: it does not state that the operation is read-only, that nothing is modified on disk, how errors surface for a nonexistent path, or what happens if the file is not a raster. Only the accepted input forms (local path or HTTPS URL) are disclosed, which is behavioral but minimal.

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 the return types front-loaded and no filler. The brevity borders on under-specification rather than being over-written, so nothing needs trimming, but more could usefully be said.

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

Completeness3/5

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

For a simple one-parameter getter with no output schema, describing the return as a PROJ dict plus WKT is the key completeness win. Gaps remain around failure modes and raster-versus-vector disambiguation, which matter because several sibling tools also deal with CRS.

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 coverage is 0% for the single required parameter, so the description must compensate; it does explain that path_or_url accepts either a local filesystem path or an HTTPS URL, which is meaning the bare string schema does not convey. It adds no detail on file-format expectations, relative path resolution, or authentication for remote URLs, so the compensation is partial.

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 specific resource (raster CRS) and the exact return types (PROJ dict and WKT), which lets an agent distinguish it from generic CRS siblings like get_available_crs or get_crs_info. It stops short of explicitly stating it is raster-only versus in-memory geometry, but the resource is unambiguous.

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?

No guidance on when to use this instead of get_crs_info or get_available_crs, and no stated prerequisites or exclusions. The agent must infer from the name that this one targets raster files rather than CRS definitions or vector layers.

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