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

Create Line

entity_create_line

Create a line from (x1,y1) to (x2,y2) with optional color, layer, and linetype settings. Returns entity info including handle.

Instructions

Create a line from (x1,y1) to (x2,y2). Returns entity info with handle.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1YesStart X coordinate
x2YesEnd X coordinate
y1YesStart Y coordinate
y2YesEnd Y coordinate
z1NoStart Z coordinate (default 0)
z2NoEnd Z coordinate (default 0)
colorNoACI color code 1-255, 256=ByLayer, 0=ByBlock
layerNoLayer name (default: current layer)
linetypeNoLinetype name (e.g. 'DASHED', 'CENTER')

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior3/5

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

Annotations indicate readOnlyHint=false, so the tool is a write operation. The description adds that it returns entity info with handle, which provides some behavioral context. However, it does not mention that it modifies the drawing or requires an active document. With annotations already covering the safety profile, the description adds moderate value.

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 sentence that front-loads the action and key parameters. Every word is necessary and there is no extraneous information.

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?

For a simple line creation tool with a complete input schema and output schema, the description is mostly sufficient. It covers the essential purpose and return value. A minor gap is not explicitly stating that the line is created in the current drawing.

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 all parameters are already documented. The description does not add any semantic detail beyond the schema (e.g., coordinate system, units). Baseline of 3 is appropriate as the schema does the heavy lifting.

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 states the verb 'Create' and resource 'line', and specifies the parameters as coordinates (x1,y1) to (x2,y2). It distinguishes from sibling tools like 'entity_create_circle' or 'entity_create_arc' by explicitly mentioning line creation.

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 guidance on when to use this tool versus alternatives such as polyline or rectangle. It only states what the tool does, without any context about prerequisites, when-not-to-use, or references to other tools.

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