Skip to main content
Glama

add_fields

Add multiple attribute fields to an ArcGIS Pro layer or table in one call, defining each field's name, type, and alias.

Instructions

Add several fields in one call.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsYese.g. [{"name": "AREA_HA", "type": "DOUBLE", "alias": "Area (ha)"}].
map_nameNoMap to act on; defaults to the active map.
layer_nameYesLayer or table name as shown by get_layers, or a full dataset path.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

C2.9/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 burden for a schema-mutating operation. It says nothing about whether the layer must be editable, whether the addition is transactional across the batch, or what happens if one field definition is invalid – all material for a write tool.

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 seven-word sentence with the verb and the batch benefit front-loaded and no filler. It is efficient, though its brevity reflects thin content rather than disciplined editing.

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?

An output schema exists, so return values need not be explained, but for a write tool with zero annotations and multiple sibling field-manipulation tools, the description omits editability requirements, batch failure semantics, and any routing to add_field or alter_field.

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?

Schema description coverage is 100%, and the schema already documents layer_name, map_name defaults, and even an example field object. The description adds no parameter meaning beyond that, so the baseline 3 applies.

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?

States a clear verb+resource (“Add several fields”) and the mechanism (“in one call”), which implicitly distinguishes it from the sibling add_field by signalling batch behavior. It stops short of naming add_field explicitly, so an agent must infer the single-vs-batch split.

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 when-to-use guidance, no mention of prerequisites, and no reference to the obvious alternative add_field for single-field additions. A reader knows what it does but not when to prefer it.

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

Deploy Server

Other Tools