Skip to main content
Glama

insert_features

Inserts new rows into a layer or table, enabling editing when the project requires it and supporting attribute-only or geometry records from WKT, coordinates, or Esri JSON.

Instructions

Insert new rows into a layer or table. Switches editing on if the project requires it.

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": {
      "layer_name": "<layer_name>",
      "features": "<features>"
    },
    "name": "insert_features"
  }
}

Input Schema

NameRequiredDescriptionDefault
featuresYesRows, e.g. [{"attributes": {"NAME": "A"}, "geometry": "POINT (100 15)"}]. geometry accepts WKT, [x, y] or Esri JSON.
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.
save_editsNoCommit the edits immediately instead of leaving them pending.
use_edit_sessionNoWrap in an edit session (needed for enterprise/versioned data).
geometry_spatial_referenceNoWKID of the supplied geometry; defaults to the layer's.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose one meaningful side effect: editing is switched on automatically if the project requires it. It omits permissions requirements, whether the insert is atomic/rolled back on failure, and what happens on schema mismatch in supplied features.

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 sentences, front-loaded with the action and free of filler. The second sentence is useful but the overall text is arguably too terse for a write operation with side effects, keeping it from a 5.

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

Completeness4/5

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

An output schema exists and every parameter is described, so the description needn't explain returns or parameter formats. For a mutation tool with zero annotations, however, it could say more about edit-state and failure behavior, leaving a modest gap.

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%, with all six parameters documented in-schema including geometry formats and edit-session semantics, so the description rightly defers. It adds no additional meaning beyond the schema, which is the baseline expectation given full coverage.

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 specific verb and resource: 'Insert new rows into a layer or table.' The word 'rows' makes the insert-versus-update distinction reasonably clear against siblings like update_features, though no sibling is named explicitly and 'layer or table' target ambiguity is not resolved.

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 choose this over update_features or how to handle existing rows versus new ones. The second sentence addresses an internal behavior (editing toggling) rather than usage conditions, so the agent must infer the when-to-use case from the purpose statement alone.

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