Skip to main content
Glama
GIS MCP Server
by mahdin75

morans_i

Computes Moran's I to measure global spatial autocorrelation in a shapefile, helping identify whether values cluster, disperse, or appear random.

Instructions

Compute Moran's I Global Autocorrelation Statistic.

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

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: -"morans_iArguments"
    • 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?

No annotations are provided, so the description carries the full behavioral burden, yet it says nothing about whether the tool only reads data, what running it produces (I statistic, z-score, p-value, pseudo p-value from permutations), or whether any permutation/simulation step is involved. Beyond restating the operation, it discloses no behavioral traits.

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?

The single sentence is tight and front-loaded with the operation, so nothing is wasted. However, the brevity comes at the cost of under-specification rather than economy, since the space it saves is space an agent needs filled.

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 four-parameter spatial statistics tool with no annotations, no output schema, and no schema descriptions, the definition is far too thin. Key facts an agent needs in order to call it correctly, such as distance_threshold units, CRS expectations, and what the result contains, are absent entirely.

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?

Schema description coverage is 0% across four parameters, and the description compensates for none of them. It gives no meaning for shapefile_path, dependent_var, target_crs, or the units and role of distance_threshold, which an agent would need to choose sensibly.

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 verb and a specific statistic ('Compute Moran's I Global Autocorrelation Statistic'), so an agent knows exactly which computation is performed. The word 'Global' implicitly contrasts with local autocorrelation siblings such as dynamic_lisa, but no sibling is named explicitly, so it stops short of a 5.

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 guidance on when to use this versus gearys_c, dynamic_lisa, or gamma_statistic, and no prerequisites are given. It does not state that the data should be projected, that a spatial weights concept is implied, or what the output should be interpreted against.

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