Skip to main content
Glama
GIS MCP Server
by mahdin75

moran_local

Calculate Local Moran's I to identify spatial clusters and outliers in a shapefile; set max_records to cap per-feature arrays.

Instructions

Local Moran's I. Pass max_records to cap per-feature arrays.

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

Input Schema

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

TDQS

D1.9/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 it discloses almost nothing: it never says the tool computes statistics requiring a spatial weights/distance setup, what dependent_var drives, what happens if max_records is null, or what output is produced. The one useful disclosure is that max_records caps per-feature arrays, which prevents unexpectedly large responses.

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 with no filler and the parameter tip is front-loaded after the tool name. Its brevity is not wasteful, though it reflects under-specification rather than tight writing of sufficient information.

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?

For a five-parameter spatial statistics tool with no annotations, no output schema, and zero schema coverage, the definition is far too thin: inputs, defaults, units, and result semantics are all undocumented. An agent could not reliably invoke this tool without opening the schema and guessing.

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%, so the description must compensate, but it only explains max_records (capping per-feature arrays). It says nothing about shapefile_path, dependent_var (default LAND_USE), target_crs, or distance_threshold (default 100000 — units unexplained, which matters greatly for a spatial band).

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?

The description restates the tool name as 'Local Moran's I' without saying what the tool actually does for an agent (e.g., computes local spatial autocorrelation statistics and identifies clusters/outliers per feature). The only added content is a note about per-feature arrays, which hints at output shape but never states the operation.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines1/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance at all on when to use this tool versus siblings such as getis_ord_g_local, dynamic_lisa, gearys_c, or gamma_statistic, nor any prerequisites or exclusions. An agent must guess from the name alone which local-statistic tool is appropriate.

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