Skip to main content
Glama

get_selection

Report current selections per layer in ArcGIS Pro, including ObjectIDs and optional attribute rows, to inspect active map selections.

Instructions

Report what is currently selected, per layer, with ObjectIDs and optionally the attribute rows.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum ObjectIDs/rows per layer.
map_nameNoMap to act on; defaults to the active map.
layer_nameNoSingle layer; default every feature layer.
include_attributesNoAlso return the selected rows.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.1.1

TDQS

B3.3/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. 'Report' implies a read-only operation and describes the output shape, but it does not state permissions, that the selection is left unchanged, or how the limit parameter affects pagination. It adds some value but remains incomplete for a no-annotation tool.

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?

The description is a single, front-loaded sentence with no wasted words. Each clause—what is returned, per-layer grouping, ObjectIDs, and optional attributes—earns its place.

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 explained. The description covers the core output and optional attributes, but it omits usage guidance and behavioral context for a tool that sits among many selection-related siblings.

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%, so the baseline is 3. The description adds that attributes are optional and results are per layer, but it does not mention the limit or map_name parameters, which are already fully documented in the schema.

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: 'Report what is currently selected.' It distinguishes itself from selection-modifying siblings like set_selection and clear_selection by focusing on the current state, but it does not explicitly name alternative tools or scope boundaries.

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 or when-not-to-use guidance is provided. The description does not mention alternatives such as select_features or set_selection, so an agent must infer when this tool is appropriate versus its siblings.

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