Skip to main content
Glama
652036

ArcGIS Pro MCP

by 652036

Upsert Label Class

arcgis_pro_upsert_label_class
Idempotent

Creates or updates a label class on an ArcGIS Pro map layer, letting you define its expression, SQL filter, language, and visibility.

Instructions

创建或更新标注类的表达式、过滤 SQL、语言和可见状态。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes
visibleNo
languageNoARCADE
map_nameYes
aprx_pathYes
sql_queryNo
expressionYes
layer_nameYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3/5.0
Behavior3/5

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

Annotations already declare non-read-only, idempotent, non-destructive behavior; the description's 'create or update' aligns with that and names affected fields. It adds some field context but no auth, side-effect, or failure behavior beyond annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

A single front-loaded sentence with no filler. It is appropriately sized for the core action, though the size is due to omission rather than compression.

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 an 8-parameter mutation with 5 required parameters and no schema descriptions, the description is incomplete. It does not explain how to identify the target label class, which is critical for an upsert; the output schema does remove the need to describe return values.

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%, so the description must compensate. It names expression, SQL filter, language, and visibility, but omits required identifiers aprx_path, map_name, layer_name, and name, leaving half the parameters unexplained.

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: create or update a label class's expression, SQL filter, language and visibility. It is clear but does not differentiate from sibling tools like update_label_expression or list_label_classes.

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 alternatives, and no prerequisites are given. It only restates the action, leaving the agent to infer when this upsert is appropriate versus other label-related tools.

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