Skip to main content
Glama
GIS MCP Server
by mahdin75

union

Combines two input geometries into one shape for spatial analysis and GIS data preparation.

Instructions

Combine 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": "union"
  }
}

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: -"unionArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

C2.4/5.0
Behavior2/5

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

With no annotations provided, the description carries the full burden, but it only restates the name. It does not say whether the result is a new geometry, what happens with mismatched CRS or invalid inputs, whether inputs are mutated, or what the return type is.

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 with no wasted words, but the brevity is under-specification rather than efficiency; a single sentence cannot cover format, semantics, and result behavior for a geometry operation.

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 two-parameter geometry operation with no annotations and no output schema, the agent needs input format, CRS assumptions, and result semantics; none are provided, leaving the caller to guess how to construct a valid call.

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% for two required string parameters, so the description must compensate — yet it says nothing about the expected format of geometry1/geometry2 (WKT, GeoJSON, file path?) or the order/role of each. Only the schema's type declaration is available to the caller.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a verb and resource ("Combine two geometries"), so the operation is identifiable, but "combine" is ambiguous for a geometry tool — it could mean geometric union, concatenation, or merging — and nothing distinguishes it from siblings like unary_union_geometries, difference, or append_gpd.

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 when-to-use guidance at all: no mention of choosing union over unary_union_geometries or difference, no prerequisites (matching CRS, valid geometries), and no indication of when the operation is inappropriate.

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