Skip to main content
Glama
GIS MCP Server
by mahdin75

overlay_gpd

Perform spatial overlays on two vector files with intersection, union, identity, symmetric difference, or difference to combine geometries and analyze shared or differing areas.

Instructions

Spatial overlay of two vector files. how is intersection, union, identity, symmetric_difference, or difference.

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": {
      "gdf1_path": "<gdf1_path>",
      "gdf2_path": "<gdf2_path>"
    },
    "name": "overlay_gpd"
  }
}

Input Schema

NameRequiredDescriptionDefault
howNointersection
offsetNo
columnsNo
gdf1_pathYes
gdf2_pathYes
precisionNo
output_pathNo
max_featuresNo
include_geometryNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv0.16.0
    • addedInput schema / properties / columns
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "string"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • addedInput schema / properties / include_geometry
      Added value: +{
      +  "default": true,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / max_features
      Added value: +{
      +  "default": 5,
      +  "type": "integer"
      +}
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "type": "integer"
      +}
    • addedInput schema / properties / precision
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed8 schema fields changedv1.0.0
    • removedInput schema / properties / gdf1_path / title
      Removed value: -"Gdf1 Path"
    • removedInput schema / properties / gdf2_path / title
      Removed value: -"Gdf2 Path"
    • removedInput schema / properties / how / title
      Removed value: -"How"
    • addedInput schema / properties / output_path / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / output_path / title
      Removed value: -"Output Path"
    • removedInput schema / properties / output_path / type
      Removed value: -"string"
    • removedInput schema / title
      Removed value: -"overlay_gpdArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.8/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden and largely fails it. It never says whether results are written to disk via output_path, whether a preview limited by max_features is returned, or how precision/offset affect output — all material for a tool that may both compute and write files.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Very short and front-loaded, which is good, but the second sentence is grammatically broken ('how is intersection, union, ...'), reading as a schema fragment rather than a sentence. Nothing is wasted, but the brevity comes at the cost of under-specification.

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?

For a 9-parameter, no-annotation, no-output-schema tool that likely writes files, the description is far too thin. An agent could pick a mode but could not confidently set the remaining parameters or predict side effects.

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 description coverage is 0% across 9 parameters, so the description must compensate and does not. It clarifies only the 'how' values (implicitly including the default intersection) and says nothing about offset, columns, precision, max_features, include_geometry, or output_path, leaving seven parameters with no semantic guidance.

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?

Names a specific verb+resource ('Spatial overlay of two vector files') and enumerates the overlay modes, so the agent knows the operation. It does not distinguish itself from siblings that perform the same single operations (difference, intersection, union, symmetric_difference), leaving the agent to guess which entry point to prefer.

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

Usage Guidelines3/5

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

Usage is only implied: the 'how' parameter selects among the enumerated operations, which hints at the tool's role as a multi-mode overlay. There is no statement of when to use this instead of the dedicated per-operation siblings, no prerequisites, and no exclusions.

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