Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sketch_constrain_angle_to_axis

Sets a sketch line's angle in degrees relative to the sketch-local positive X axis, adding an angle constraint for precise geometry.

Instructions

Set a line angle in degrees relative to the sketch-local positive X axis.

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>",
      "geo_idx": "<geo_idx>",
      "angle": "<angle>"
    },
    "name": "sketch_constrain_angle_to_axis"
  }
}

Input Schema

NameRequiredDescriptionDefault
angleYesangle: deg, sketch_local.
geo_idxYesSketch geometry index, zero-based; FreeCAD external axis indices may be negative.
doc_nameNoInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
sketch_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden; it does disclose a useful error taxonomy (invalid_arguments, document_not_found, transaction_conflict, operation_failed, execution_timeout) and warns that timeout is not cancellation and mutations should not be blindly retried. That is real value, but the contract reads as generic boilerplate applicable to every sibling and says nothing specific here, such as whether over-constraining the sketch is detected or whether the sketch must be in edit mode.

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?

The opening sentence is short, front-loaded and earns its place. The trailing contract is denser boilerplate than the tool warrants, and the closing 'Legacy return shape preserved' is cryptic given an output schema already exists.

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?

Error codes, unit defaults and retry caution cover the failure surface, and an output schema exists so return values need not be explained. What is missing for a mutation tool with no annotations is the effect on sketch state (what changes, whether conflicts are rejected), which is the context an agent would most need.

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 the baseline is 3. The description restates the angle's degrees/sketch-local frame, which the schema already encodes via x-unit and x-coordinate-system, and adds no meaning for geo_idx (including its negative external-axis values) or doc_name/sketch_name naming conventions.

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?

Names a specific verb and resource: 'Set a line angle in degrees relative to the sketch-local positive X axis.' That reference frame implicitly separates it from a generic angle-between-entities constraint, though it never names sketch_constrain_angle, so the differentiation from its closest sibling has to be inferred.

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?

The 'relative to the sketch-local positive X axis' phrasing hints at the case where this tool applies rather than sketch_constrain_angle, but there is no explicit when-to-use/when-not-to-use statement and no named alternative. The agent must reason from the axis framing 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