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

Entity: Smart Select (semantic predicate)

entity_select_smart
Read-only

Select AutoCAD entities by semantic predicates (type, layer, location, length, color) to retrieve handles without memorizing IDs.

Instructions

Select entities by semantic predicate instead of memorising handles.

Uncapped. The usual next step is dimension_auto(handles), so fields=["handle"] is normally all this needs to return.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fieldsNoProject to these fields, in this order (e.g. ['handle','type','layer']); 'properties.<key>' reaches one nested value. Omit for the full record; an unknown name errors and lists the valid ones.
compactNoReturn a columnar {fields, rows, count, offset, total, truncated, next_offset} envelope instead of dicts: much cheaper per row, and the only shape that reports truncation.
predicateYesPredicate dict (all keys optional, AND-ed): type (e.g. 'LINE'), layer (name), near ([x,y,radius]), length_range ([min,max], LINE/ARC only), color (ACI int).

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

The readOnlyHint annotation already indicates safety; the description adds "Uncapped" (no result limit) and a practical tip about the typical return field, which gives useful behavioral context 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?

Exactly two sentences, each earning its place: one states the operation, the other a usage tip. No fluff or redundancy.

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

Completeness5/5

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

With a rich schema, output schema, and readOnlyHint, the description provides the essential context: semantic selection, uncapped results, and typical next step. The tool is fully usable from these instructions.

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?

Schema fully documents all parameters, so baseline is 3. The description adds the recommendation fields=['handle'] for the common dimension workflow, which provides semantic guidance beyond the raw 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?

Clear: "Select entities by semantic predicate" specifies a query operation, and "instead of memorising handles" distinguishes it from handle-based retrieval. However, it doesn't explicitly name sibling tools like entity_get or selection_filter, so it doesn't fully differentiate from them.

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

Usage Guidelines4/5

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

Gives actionable context: use when selecting by semantic criteria rather than handles, and the "usual next step is dimension_auto(handles)" pipeline tip implies a common workflow. No explicit exclusions or alternative tool names, but the guidance is concrete.

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