Skip to main content
Glama

create_line

Draw a line on the active sketch between two points, returning geometry for building non-rectangular profiles prior to extrusion.

Instructions

Draw a line on the active sketch.

Args: x1_mm, y1_mm: Start point in mm (sketch-local frame). x2_mm, y2_mm: End point.

Returns the line's geometry (endpoints + length). Used as a building block for non-rectangular profiles before extrusion.

Caveat: requires an active sketch (call create_sketch first).

Caveat (paramétrico): el croquis NO es paramétrico. modify_dimension NO puede mover los endpoints ni cambiar la longitud post-hoc — solo la profundidad de extrusión es paramétrica. Para cambiar la línea, reconstruye desde una pieza nueva. [en: Sketch geometry has NO driving dimension — modify_dimension cannot move endpoints or resize length post-hoc; only extrude depth is parametric. To resize, rebuild from a fresh part.]

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
x1_mmYes
x2_mmYes
y1_mmYes
y2_mmYes
Behavior4/5

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

Discloses return value (geometry endpoints+length), non-parametric nature of sketch, and that modify_dimension only affects extrusion depth. No annotations provided so description carries full burden; could mention if line can be edited by other means.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Well-structured with purpose, args, return, usage, caveats. However, includes redundant bilingual text (Spanish and English) for the same caveat, making it longer than necessary.

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?

Covers prerequisites (active sketch), return value (geometry), param semantics, and key limitation (non-parametric). No output schema but return described. Sufficient for a simple line tool.

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?

0% schema coverage, so description compensates by explaining x1_mm/y1_mm as start point, x2_mm/y2_mm as end point, units in mm, and sketch-local frame. Adds meaningful context beyond 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?

Clear verb 'Draw' and resource 'line on active sketch'. Distinguishes from sibling tools like create_rectangle, create_arc by specifying it's for lines.

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

Usage Guidelines5/5

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

Explicitly states prerequisite (active sketch via create_sketch), use case (building block for non-rectangular profiles before extrusion), and limitation (not parametric, must rebuild for resizing). Provides alternative action.

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/danielproxd2/MCP_CAD'

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