Skip to main content
Glama
652036

ArcGIS Pro MCP

by 652036

Upsert Definition Query

arcgis_pro_upsert_definition_query
Idempotent

Create or update a named definition query on an ArcGIS Pro layer or table, and optionally set it as the only active query.

Instructions

创建或更新图层/表的命名定义查询,并可将其设为唯一活动查询。

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes
nameYes
map_nameYes
aprx_pathYes
is_activeNo
member_nameYes
member_typeNoLAYER

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, destructiveHint=false and openWorldHint=false. The description adds one genuine behavioral detail beyond them: is_active makes the query the only/exclusive active query, which is not in the annotations. It does not cover permissions, side effects on other queries, or error behavior.

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 front-loaded sentence with no filler. Efficient, though its brevity contributes to the under-specification noted elsewhere.

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?

An output schema exists so return values need not be described, and the mutation semantics align with annotations. However, for a 7-parameter, 0%-coverage write tool, the description is too thin to let an agent invoke it confidently without opening the schema for every field.

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 7 parameters, so the description must compensate. It only loosely implies name (named query), is_active (set as active), and member (layer/table); sql, aprx_path, map_name, member_name, and member_type are 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 (create/update, i.e. upsert) and resource (a named definition query on a layer/table), plus the optional active designation. This distinguishes it from siblings like list_definition_queries and delete_definition_query. It stops short of explicitly naming the closest sibling set_definition_query.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It implies usage — upserting a named definition query and optionally making it the sole active one — but offers no explicit when-to-use, when-not, or routing to set_definition_query. Usage context must be inferred from the verb.

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