Skip to main content
Glama
GIS MCP Server
by mahdin75

intersection

Computes the shared geometry where two input geometries overlap, enabling common-area analysis in GIS workflows.

Instructions

Find intersection of two geometries.

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": {
      "geometry1": "<geometry1>",
      "geometry2": "<geometry2>"
    },
    "name": "intersection"
  }
}

Input Schema

NameRequiredDescriptionDefault
geometry1Yes
geometry2Yes

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. Changed4 schema fields changedv1.0.0
    • removedInput schema / properties / geometry1 / title
      Removed value: -"Geometry1"
    • removedInput schema / properties / geometry2 / title
      Removed value: -"Geometry2"
    • removedInput schema / title
      Removed value: -"intersectionArguments"
    • 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?

No annotations are supplied, so the description carries the full disclosure burden and mostly fails it: nothing is said about what string format the geometries must be in, whether CRS mismatches are handled or error out, whether invalid/empty intersections return null or raise, or whether the result is a new geometry or an in-place mutation of an input.

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 front-loaded sentence with zero padding or redundancy. It is efficient, though the brevity reflects under-specification rather than disciplined editing.

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 0% parameter documentation, the definition leaves the agent without the input format, output shape, or failure behavior — all of which the description would need to supply. For a two-geometry operation this is materially incomplete.

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%, and the description adds no meaning to geometry1/geometry2 beyond naming the arity. Critically, the parameters are typed only as 'string' with no indication of WKT vs GeoJSON vs file path, which is the single most important fact needed to invoke this tool correctly.

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-plus-resource ('Find intersection') that unambiguously identifies the geometric operation, and the phrase 'of two geometries' fixes the arity. It stops short of differentiating itself from sibling set operations such as difference or clip_vector, so it lands at 4 rather than 5.

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 this over siblings like difference, convex_hull, or clip_vector, and no mention of preconditions such as matching CRS or valid geometry input. The agent must infer all selection logic from the tool name alone.

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