Skip to main content
Glama

entity

Create, query, and edit AutoCAD drawing objects such as lines, circles, polylines, text, and hatches; includes copy, move, rotate, scale, array, fillet, and erase operations.

Instructions

Entity creation, querying, and modification.

Create operations:
  create_line       — x1, y1, x2, y2, layer?
  create_circle     — data: {cx, cy, radius}, layer?
  create_polyline   — points: [[x,y],...], data: {closed?}, layer?
  create_rectangle  — x1, y1, x2, y2, layer?
  create_arc        — data: {cx, cy, radius, start_angle, end_angle}, layer?
  create_ellipse    — data: {cx, cy, major_x, major_y, ratio}, layer?
  create_mtext      — data: {x, y, width, text, height?}, layer?
  create_hatch      — entity_id, data: {pattern?, scale?, angle?}  (pattern SOLID for a fill)

Read operations:
  list              — layer? → list entities
  count             — layer? → count entities
  get               — entity_id → entity details

Modify operations:
  copy    — entity_id, data: {dx, dy}
  move    — entity_id, data: {dx, dy}
  rotate  — entity_id, data: {cx, cy, angle}
  scale   — entity_id, data: {cx, cy, factor}
  mirror  — entity_id, x1, y1, x2, y2
  offset  — entity_id, data: {distance}
  array   — entity_id, data: {rows, cols, row_dist, col_dist}
  fillet  — data: {id1, id2, radius}
  chamfer — data: {id1, id2, dist1, dist2}
  erase   — entity_id

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "operation": "<operation>"
    },
    "name": "entity"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1No
x2No
y1No
y2No
dataNo
layerNo
pointsNo
entity_idNo
operationYes
include_screenshotNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.2.0

TDQS

A4/5.0
Behavior4/5

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

The readOnlyHint=false annotation already signals mutation, but the description adds real value by separating non-mutating reads (list, count, get) from mutating operations and singling out erase. It still omits whether erase is permanent/undoable, how entity_id values are obtained, and what the operations return, so it stops short of full disclosure.

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?

Front-loaded one-line summary followed by a compact operation table grouped by intent; nearly every line delivers a distinct argument signature. It is long, but the length is proportionate to 20 multiplexed operations, and the alignment makes scanning cheap.

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?

Given 20 operations, zero schema description coverage, and no output schema, the operation/parameter mapping is strong and most of the calling surface is covered. Still missing: any hint about what list/get return, what entity_id looks like, the include_screenshot parameter, and whether batch or cross-layer behavior exists.

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 coverage is 0% and the schema is a flat bag of optional fields, so the description carries the entire burden — and it does, mapping each operation to its required fields and documenting nested 'data' keys (cx, cy, radius, start_angle, dx/dy, rows/cols, id1/id2) that appear nowhere in the schema. The one gap is the include_screenshot flag, which is never mentioned.

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 opening line names the resource and its three modes (creation, querying, modification), then enumerates all 20 concrete operations with their argument shapes. An agent can identify exactly which operation string to pass and what geometry parameters each one expects without any further lookup.

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?

Grouping into Create / Read / Modify sections gives implicit routing guidance, and hints like '(pattern SOLID for a fill)' and 'create_hatch — entity_id' show operation-specific prerequisites. However, there is no explicit when-to-use-this-vs-sibling guidance (e.g. entity vs. block vs. architecture), and no statement of preconditions such as requiring an active drawing.

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