Skip to main content
Glama
GIS MCP Server
by mahdin75

spatial_markov

Computes spatial Markov transition matrices from regional value columns in a shapefile to analyze spatial dependence and value-class transitions.

Instructions

Spatial Markov transition matrix for a panel of regional values stored as columns.

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>",
      "value_columns": "<value_columns>"
    },
    "name": "spatial_markov"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
mNo
fixedNo
drop_naNo
relativeNo
target_crsNoEPSG:4326
permutationsNo
value_columnsYes
shapefile_pathYes
weights_methodNoqueen
distance_thresholdNo
fill_empty_classesNo

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. Addedv1.0.0

TDQS

C2.7/5.0
Behavior2/5

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

With no annotations, the description must carry the full behavioral burden. It does not state whether the tool is read-only, what it returns, computational cost from permutations, or how missing values are handled. For a 12-parameter spatial analysis tool, this is a significant gap.

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 sentence with no filler. However, its brevity comes at the cost of under-specification, though structurally it is front-loaded with the core concept.

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?

Given 12 parameters, no annotations, and no output schema, the definition is far too sparse. An agent cannot confidently call this tool without additional schema documentation or description detail.

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 coverage is 0% and the description only alludes to value_columns via 'panel of regional values stored as columns' and to spatial weighting via 'spatial'. It leaves 10 parameters (k, m, fixed, relative, permutations, target_crs, weights_method, distance_threshold, fill_empty_classes, drop_na) completely undocumented.

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 the analytical output — a spatial Markov transition matrix — and identifies the input as regional values stored as columns. It lacks an explicit verb (e.g., 'compute') and does not contrast with sibling spatial tools, but the concept is distinctive enough to be distinguishable.

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?

No guidance on when to use this tool versus alternatives (e.g., other spatial statistics like gearys_c or dynamic_lisa) or what prerequisites are needed. The agent must infer usage from the name alone.

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