Skip to main content
Glama
GIS MCP Server
by mahdin75

build_transform_and_save_weights

Build spatial weights from GIS data, apply an optional transformation, and save as a GAL or GWT file for spatial analysis.

Instructions

Build spatial weights, optionally transform them, and save a GAL or GWT file. method is queen, rook, distance_band, or knn.

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": {
      "data_path": "<data_path>"
    },
    "name": "build_transform_and_save_weights"
  }
}

Input Schema

NameRequiredDescriptionDefault
kNo
binaryNo
formatNogal
methodNoqueen
id_fieldNo
data_pathYes
overwriteNo
thresholdNo
output_pathNoweights.gal
transform_typeNo

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. Changed12 schema fields changedv1.0.0
    • removedInput schema / properties / binary / title
      Removed value: -"Binary"
    • removedInput schema / properties / data_path / title
      Removed value: -"Data Path"
    • removedInput schema / properties / format / title
      Removed value: -"Format"
    • removedInput schema / properties / id_field / title
      Removed value: -"Id Field"
    • removedInput schema / properties / k / title
      Removed value: -"K"
    • removedInput schema / properties / method / title
      Removed value: -"Method"
    • removedInput schema / properties / output_path / title
      Removed value: -"Output Path"
    • removedInput schema / properties / overwrite / title
      Removed value: -"Overwrite"
    • removedInput schema / properties / threshold / title
      Removed value: -"Threshold"
    • removedInput schema / properties / transform_type / title
      Removed value: -"Transform Type"
    • removedInput schema / title
      Removed value: -"build_transform_and_save_weightsArguments"
    • 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?

No annotations are provided, so the description carries the full behavioral burden. It discloses that a GAL or GWT file is written, but says nothing about what happens when the output file already exists (the overwrite parameter's semantics), what the tool returns (a weights object, a path, or nothing), permission requirements, or whether the input data must be a spatial dataset.

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 compact sentences with no wasted words; the core action is front-loaded. The brevity is close to under-specification given the ten parameters, but the text itself is efficiently structured.

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 10-parameter tool with no annotations, no output schema, and 0% schema coverage, the description is far too thin. It should explain how the optional transform step works, what gets written and where, and how the parameters interact, none of which it does.

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 10 parameters. The description usefully enumerates the four method values (queen, rook, distance_band, knn) and the two file formats, compensating for the missing enum on method, but it leaves k, binary, id_field, threshold, data_path, output_path, overwrite, and transform_type entirely undocumented in both schema and description.

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 states a specific verb and resource: build spatial weights, optionally transform them, and save a GAL or GWT file. It is clear what the tool does, but it does not differentiate from the sibling build_and_transform_weights or save_results, so an agent cannot tell which of these overlapping tools to pick.

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 when-to-use or when-not-to-use guidance. The phrase 'optionally transform them' implies transform_type may be left null, but nothing says when to use this tool rather than build_and_transform_weights, distance_band_weights, knn_weights, or save_results, and no prerequisites are given.

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