Skip to main content
Glama
GIS MCP Server
by mahdin75

gamma_statistic

Calculates the Gamma statistic to assess spatial autocorrelation in a shapefile, helping identify clustered or dispersed spatial patterns.

Instructions

Compute Gamma Statistic for spatial autocorrelation.

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

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

TDQS

C2.1/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 behavioral burden, yet it discloses nothing about cost, return values, required permissions, or what the computation assumes about the input data. About all an agent can infer is that this is an analysis/read-style computation rather than a mutation.

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 front-loaded and free of padding, but its brevity stems from under-specification rather than efficiency. It leaves no room for the essential details an agent needs.

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 4-parameter geospatial computation with zero schema documentation, no annotations, and no output schema, the description is far too thin. It omits parameter meanings, expected data assumptions, and the interpretation of the resulting statistic, leaving the agent unable to invoke the tool correctly.

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 4 parameters, so the description must compensate and instead mentions none of them. Critical inputs such as shapefile_path, dependent_var, target_crs, and distance_threshold receive no explanation of meaning, units, or expected format (e.g. that distance_threshold defaults to 100000 in a projected unit tied to target_crs).

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

Purpose3/5

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

The description names a verb and resource ('Compute Gamma Statistic') and adds a one-phrase domain hint ('spatial autocorrelation'), so the broad purpose is inferable. However, it essentially restates the tool name 'gamma_statistic' and does nothing to distinguish it from spatial-analysis siblings such as gearys_c, adbscan, or dynamic_lisa.

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 tool versus alternatives, no prerequisites, and no exclusions. An agent choosing among the many spatial-statistics siblings gets no routing signal beyond the name.

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