Skip to main content
Glama
U-C4N
by U-C4N

Select by Window

selection_window
Read-only

Select AutoCAD entities within a rectangular area using window or crossing mode, optionally filtering by layer and entity type.

Instructions

AutoCAD's ssget window/crossing selection.

Corners may be given in any order. Selection is by drawn position, so an entity in a mirrored frame is found where entity_get reports it. A zero-area box is refused rather than answered with an empty list.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1YesFirst corner X.
x2YesOpposite corner X.
y1YesFirst corner Y.
y2YesOpposite corner Y.
modeNowindow = wholly inside only; crossing = also entities straddling the edge.window
layerNoRestrict to a layer. Empty means any.
entity_typeNoRestrict to a DXF type, e.g. CIRCLE. Empty means any.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

Beyond the readOnlyHint annotation, the description discloses non-obvious behaviors: corners accept any order, selection uses drawn position (with a mirror example), and zero-area boxes are refused rather than returning an empty list. These details add meaningful context about edge cases and coordinate interpretation, exceeding what annotations alone convey.

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 compact – three sentences – and front-loaded with the purpose. Each sentence contributes unique information: the first defines the tool, the second explains coordinate interpretation with a concrete example, and the third defines an edge case. There is no redundancy or filler, making it highly efficient.

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?

Given the 7 parameters, full schema coverage, and presence of an output schema, the description covers key behavioral aspects effectively. It explains the main selection mode, corner order, and zero-area handling. It does not mention return format or integration with the selection set, but the output schema likely handles that. Slight gap remains in not discussing how filters (layer/entity_type) interact with the selection, though these are documented in the schema. Overall, the description is well-rounded for the tool's complexity.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Although the schema already describes all parameters (100% coverage), the description adds semantic value beyond the schema. It clarifies that corners may be given in any order (so x1,y1 is not necessarily top-left), and it explains the zero-area rejection behavior. The mode parameter is not detailed in the description, but the schema covers it adequately. The description supplements, not merely restates, the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly identifies the tool as AutoCAD's ssget window/crossing selection, specifying the core action (select entities by a rectangular window) and distinguishing it from sibling tools like selection_polygon or selection_filter. The phrase 'window/crossing selection' uses a specific verb and resource, leaving no ambiguity about the tool's purpose.

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?

The description provides no explicit guidance on when to use this tool versus alternatives like selection_polygon or selection_filter. It does not state use cases, exclusions, or preferences. Usage is only implied by the name and purpose, but the description does not compare it to siblings or mention when not to use it.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/U-C4N/Autocad-MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server