Skip to main content
Glama
GIS MCP Server
by mahdin75

sjoin_gpd

Perform a spatial join between two vector files using intersects, within, contains, crosses, overlaps, or touches, with left, right, or inner join options.

Instructions

Spatial join of two vector files. how is left, right, or inner. predicate is intersects, within, contains, crosses, overlaps, or touches.

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": {
      "left_path": "<left_path>",
      "right_path": "<right_path>"
    },
    "name": "sjoin_gpd"
  }
}

Input Schema

NameRequiredDescriptionDefault
howNoinner
offsetNo
columnsNo
left_pathYes
precisionNo
predicateNointersects
right_pathYes
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. Changed9 schema fields changedv1.0.0
    • removedInput schema / properties / how / title
      Removed value: -"How"
    • removedInput schema / properties / left_path / title
      Removed value: -"Left Path"
    • 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 / properties / predicate / title
      Removed value: -"Predicate"
    • removedInput schema / properties / right_path / title
      Removed value: -"Right Path"
    • removedInput schema / title
      Removed value: -"sjoin_gpdArguments"
    • 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 provided, so the description carries the full burden of behavioral disclosure. It says it performs a spatial join and names predicate/how values, but it does not say whether it writes a new file to output_path, overwrites inputs, requires matching CRS, or how max_features and precision affect results. For a 10-parameter operation with likely file output, this is a significant gap.

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 sentences, front-loaded with purpose and no filler. It is efficient, though its brevity is also the source of the semantic gaps scored elsewhere.

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?

There are no annotations and no output schema, and the description covers only 2 of 10 parameters. It omits output behavior, file-writing side effects, CRS/geometry assumptions, and most parameter semantics, so it is not complete enough for a tool of this complexity.

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 10 parameters. The description explains only how and predicate by listing allowed values, leaving left_path, right_path, offset, columns, precision, output_path, max_features, and include_geometry undocumented in both schema and description. It adds some meaning for two parameters but does not compensate for the coverage gap.

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?

States a specific operation and resource: 'Spatial join of two vector files.' This is enough to distinguish it from generic vector tools, but it does not distinguish it from sibling sjoin_nearest_gpd or explain how it differs from overlay_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 or when-not-to-use guidance is provided. It lists legal values for how and predicate but does not tell the agent when this tool is preferred over sjoin_nearest_gpd, overlay_gpd, or merge_gpd.

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