Skip to main content
Glama

add_sketch_geometry

Append geometric primitives like lines, circles, arcs, or points to a sketch, returning indices for constraints.

Instructions

Append geometric primitives to a sketch.

items is a list of dicts:

  • {type: 'line', start: [x,y], end: [x,y], construction?: bool}

  • {type: 'circle', center: [x,y], radius: float}

  • {type: 'arc', center: [x,y], radius, start_angle, end_angle} (radians)

  • {type: 'point', pos: [x,y]} Returns {indices: [...]} — Sketcher-assigned indices for use in constraints.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
itemsYes
sketchYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

No annotations exist, so the description must carry the full behavioral burden. It discloses that the operation is an append (a mutation) and that it returns Sketcher-assigned indices, but omits prerequisites such as requiring an active sketch/document, transaction requirements, failure modes, and reversibility.

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?

Purpose is front-loaded in one sentence; the item formats are presented as a compact bullet list; the return note is a single terse line. No sentence is redundant.

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?

For a CAD tool with 0% schema coverage and no annotations, the description covers the critical items payload and return value, but leaves the sketch parameter undefined and omits required context such as active document/sketch state and transaction handling.

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 description coverage is 0% and the items parameter is an untyped array. The description compensates by specifying the full shape of each item type (line, circle, arc, point) with coordinates and fields, though it does not explain the sketch parameter.

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 begins with a specific verb and resource: append geometric primitives to a sketch, and enumerates the supported primitive types. It clearly distinguishes from siblings like add_sketch_constraint and add_sketch_external, which add different sketch elements.

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?

It implies usage for adding geometry before constraints and gives the return indices for that purpose, but does not explicitly state when to use this versus alternatives such as add_sketch_external or close_sketch. No prerequisites (active sketch, transaction) or exclusions are given.

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

Deploy Server

Other Tools