Skip to main content
Glama
freecad-mcp

freecad-mcp

freecad_add_sketch_line

Adds a straight line segment between two XY coordinates in a named FreeCAD sketch, enabling precise sketch geometry creation for parametric CAD models.

Instructions

Add a line segment to a sketch

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": {
      "sketchName": "<sketchName>",
      "x1": "<x1>",
      "y1": "<y1>",
      "x2": "<x2>",
      "y2": "<y2>"
    },
    "name": "freecad_add_sketch_line"
  }
}

Input Schema

NameRequiredDescriptionDefault
x1YesStart point X coordinate
x2YesEnd point X coordinate
y1YesStart point Y coordinate
y2YesEnd point Y coordinate
sketchNameYesName of the sketch

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and discloses none of it. It does not say whether the sketch must already exist or be active, whether the new edge is created as construction geometry, whether the operation can fail on invalid coordinates, or what is returned (e.g. the new geometry index).

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?

A single front-loaded sentence with zero filler; the action is clear immediately. It is terse rather than padded, though that terseness is better scored under transparency and completeness than here.

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

Completeness2/5

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

For a five-required-parameter mutation with no annotations and no output schema, the description should establish preconditions (target sketch must exist/be editable), coordinate semantics, and the outcome. None of these are covered, leaving real gaps an agent would hit on first invocation.

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 coverage is 100% with per-property descriptions for sketchName and the four coordinates, so the baseline applies and the description adds nothing on top. Worth noting it gives no clue about the coordinate frame (sketch-local vs. global) or units, which would be the genuinely additive information here.

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?

The description gives a specific verb ('Add') and a precise resource ('line segment to a sketch'), which naturally separates it from the arc, circle, ellipse and polygon siblings that share the same verb. It stops short of any explicit sibling differentiation, but the geometric primitive named is unambiguous.

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?

There is no guidance on when to use this over the other sketch-geometry tools, no mention of prerequisites such as an existing open sketch, and no note about using construction mode or trimming afterwards. The agent must infer the whole calling context from the name alone.

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