Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_add_external

Projects a revision-checked edge from another object into a sketch, optionally as defining or construction geometry, and can import the support intersection instead.

Instructions

Project one revision-checked edge from another object into this sketch.

Contract: explicit internal names recommended. Length mm, area mm^2, volume mm^3; field units override defaults. Errors: invalid_arguments, document_not_found, object_not_found, transaction_conflict, operation_failed, execution_timeout; transport failures are possible. Timeout is not cancellation: never blindly retry mutations. Legacy return shape preserved.

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": {
      "sketch_name": "<sketch_name>",
      "selection": "<selection>"
    },
    "name": "sketch_add_external"
  }
}

Input Schema

NameRequiredDescriptionDefault
definingNoTrue imports external geometry as defining geometry; false uses construction geometry.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
selectionYesComplete revision-checked subelement selection issued by a Stage 4 geometry query.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
intersectionNoTrue imports the support intersection; false projects the selected edge.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does substantial work: it enumerates error classes (invalid_arguments, transaction_conflict, operation_failed, execution_timeout), warns that timeout is not cancellation and mutations must not be blindly retried, and states unit conventions with field-level overrides. It stops short of saying what the created external entity looks like or whether repeated projections deduplicate.

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 with the action, then a compact contract covering naming, units, errors, and retry safety. Dense but nearly every clause carries operational information; 'Legacy return shape preserved' is terse but signals output stability.

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?

An output schema exists, so return-value detail is unnecessary, and the description fills the remaining gaps: units, error taxonomy, retry semantics, and naming rules for a 5-parameter nested tool. Only minor gaps remain around idempotency and the post-call state of the sketch.

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 100%, so the baseline is 3; the description adds real value by recommending explicit internal names and clarifying that field units override defaults, which affects how doc_name/sketch_name and selection must be supplied. The one-revision-per-call constraint for the selection is useful framing beyond the schema's field-level notes.

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?

States a specific verb and resource: 'Project one revision-checked edge from another object into this sketch.' The scope ('one', 'revision-checked', 'external') clearly separates it from the sketch_add_line/arc/circle siblings, though no sibling is named explicitly.

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?

Usage context is implied through the 'defining' and 'intersection' parameter descriptions (construction vs defining geometry, projection vs support intersection), which do inform when each mode applies. There is no explicit statement of when to choose this tool over sketch_add_line or sketch_delete_external, leaving the routing to inference.

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