Skip to main content
Glama
GIS MCP Server
by mahdin75

adbscan

Clusters spatial coordinates adaptively using DBSCAN with configurable eps, min samples, and distance thresholds to identify density-based groups in shapefile data.

Instructions

Adaptive DBSCAN clustering (requires coordinates, no dependent_var).

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": "adbscan"
  }
}

Input Schema

NameRequiredDescriptionDefault
epsNo
target_crsNoEPSG:4326
max_recordsNo
min_samplesNo
dependent_varNo
shapefile_pathYes
distance_thresholdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv0.16.0
    • addedInput schema / properties / max_records
      Added value: +{
      +  "anyOf": [
      +    {
      +      "type": "integer"
      +    },
      +    {
      +      "type": "null"
      +    }
      +  ],
      +  "default": null
      +}
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  2. Changed10 schema fields changedv1.0.0
    • addedInput schema / properties / dependent_var / anyOf
      Added value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "type": "null"
      +  }
      +]
    • removedInput schema / properties / dependent_var / title
      Removed value: -"Dependent Var"
    • removedInput schema / properties / dependent_var / type
      Removed value: -"string"
    • removedInput schema / properties / distance_threshold / title
      Removed value: -"Distance Threshold"
    • removedInput schema / properties / eps / title
      Removed value: -"Eps"
    • removedInput schema / properties / min_samples / title
      Removed value: -"Min Samples"
    • 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: -"adbscanArguments"
    • 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?

With no annotations provided, the description carries the full behavioral burden and falls well short: it does not define what 'adaptive' means here, whether an output file or layer is written to disk, whether the source shapefile is modified, what the return looks like, or any runtime/rate considerations. Only the input precondition is disclosed.

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 short sentence with the core purpose front-loaded and no filler. Concision is fine; the problem is under-specification rather than verbosity.

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 7-parameter geospatial clustering tool with zero annotation coverage, no output schema, and no documented parameters, this definition leaves too much unknown about inputs beyond the shapefile and about results. An agent could guess the call but not the semantics of the clustering knobs.

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 7 parameters, so the description must compensate and it barely does — it only touches dependent_var (must be null) and implies geometry is required for shapefile_path. The key tuning parameters (eps, min_samples, distance_threshold, target_crs, max_records) receive no explanation of units, effect, or defaults.

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 names a specific algorithm and resource ('Adaptive DBSCAN clustering') and adds two scoping constraints (requires coordinates, no dependent_var). It is distinguishable from the spatial-statistics siblings like dynamic_lisa or gearys_c, though it never names an alternative clustering tool explicitly.

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?

The parenthetical gives preconditions ('requires coordinates, no dependent_var') but never says when a caller should choose this over another clustering or statistics tool, nor what data shapes are appropriate. Usage must be inferred entirely.

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