Skip to main content
Glama
GIS MCP Server
by mahdin75

join_counts

Counts spatial joins between features in a shapefile within a specified distance threshold to analyze binary spatial relationships.

Instructions

Global Binary Join Counts.

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": {
      "shapefile_path": "<shapefile_path>"
    },
    "name": "join_counts"
  }
}

Input Schema

NameRequiredDescriptionDefault
target_crsNoEPSG:4326
dependent_varNoLAND_USE
shapefile_pathYes
distance_thresholdNo

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. Changed6 schema fields changedv1.0.0
    • removedInput schema / properties / dependent_var / title
      Removed value: -"Dependent Var"
    • removedInput schema / properties / distance_threshold / title
      Removed value: -"Distance Threshold"
    • removedInput schema / properties / shapefile_path / title
      Removed value: -"Shapefile Path"
    • removedInput schema / properties / target_crs / title
      Removed value: -"Target Crs"
    • removedInput schema / title
      Removed value: -"join_countsArguments"
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "additionalProperties": true,
      +  "type": "object"
      +}
  3. First observed

TDQS

D1.5/5.0
Behavior1/5

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

No annotations exist, so the description carries the full burden of behavioral disclosure, and it discloses nothing: no indication of cost, whether a distance threshold makes this O(n^2), whether it assumes projected data, or what the statistic output looks like. For a spatial-statistics tool with zero annotation coverage, this is an empty behavioral profile.

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

Conciseness2/5

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

It is short, but the brevity is under-specification rather than economy: a four-word title-like fragment with no front-loaded statement of action, input, or result. There is no structure to speak of.

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

Completeness1/5

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

A four-parameter statistical tool with no annotations, no output schema, and no documented parameters needs a description that explains inputs, units, and output; the definition provides none of that. An agent would have to guess at nearly every call decision.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters1/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All four parameters (shapefile_path, target_crs, dependent_var, distance_threshold) have 0% schema description coverage, and the description must compensate but adds no information. Critically, distance_threshold defaults to 100000 and its units, and dependent_var's expected field values, are entirely undocumented.

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

Purpose2/5

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

"Global Binary Join Counts" restates the tool name as a fragment and never supplies a verb or says what is being computed on what input. It hints at a spatial-autocorrelation statistic and at global (not local) scope, but an agent cannot tell what the tool actually produces or how it differs from join_counts_local from the text alone.

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 when-to-use, when-not-to-use, or prerequisite guidance. The word "Global" weakly implies a contrast with join_counts_local, but the description never states that boundary or when a global join-count statistic is the right choice.

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