Skip to main content
Glama

spatial_create_field

Add a field to a spatial layer for indexing, search, or tabulation, then reload the intersect configuration.

Instructions

Add a field to a layer (wiki step 5); starts FieldCreation, then reloads the intersect config [changes spatial-service]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
descNo
indbNoInclude in the biocache (SOLR) index
sdescNoContextual: DBF column describing each object
snameNoContextual: DBF column naming each object (see inspect_layer_zip suggestedSname)
dryRunNoPreview only (default). Set false, together with confirm:true, to really do it
confirmNoMust be true (and dryRun false) to really do it
layerIdYes
fieldNameNoField name (default: the layer display name)
intersectNoInclude in tabulations
namesearchNoObjects searchable in the gazetteer
defaultlayerNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the readOnlyHint=false annotation, the description discloses meaningful side effects: it "starts FieldCreation" and "reloads the intersect config", explicitly noting that it "changes spatial-service". This is valuable behavioral context that the annotations and schema do not provide.

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?

The description is compact and front-loaded with the primary action, followed by side effects. The parenthetical "wiki step 5" is somewhat cryptic but does not add unnecessary length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description communicates the core operation and important side effects, but with 11 parameters and no output schema, an agent still lacks guidance on required fields, return behavior, or how the asynchronous FieldCreation result is surfaced. It is adequate but not fully self-sufficient.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description adds no parameter-level meaning, but schema coverage is 73% and the input schema already documents key parameters like dryRun, confirm, sname, and indb. The description names no parameters itself, so it neither improves nor harms the schema's semantic baseline.

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

Purpose5/5

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

The description uses a specific verb and resource: "Add a field to a layer", which clearly distinguishes it from sibling tools like spatial_create_layer, spatial_get_field, and spatial_update_field. The parenthetical "wiki step 5" adds workflow context without obscuring the core action.

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 explicit guidance about when to choose this tool over alternatives, nor any mention of prerequisites or exclusions. The "wiki step 5" hint implies a workflow sequence but does not tell the agent when this is the right tool versus spatial_update_field or spatial_create_layer.

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