Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

sheetmetal_add_wall

Adds a validated bent wall to the current sheet-metal body tip using radius, length, and angle inputs, and rolls back if geometry creation fails.

Instructions

Add a real SMBendWall to the current Body tip; validate geometry and rollback on failure.

Explicit EdgeN selectors are current-state references: reselect after topology changes.
This bounded operation is a bent wall, not stamping or arbitrary formed-sheet recognition.

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": {
      "doc_name": "<doc_name>",
      "body_name": "<body_name>",
      "base_name": "<base_name>",
      "edge_name": "<edge_name>",
      "radius_mm": "<radius_mm>",
      "length_mm": "<length_mm>"
    },
    "name": "sheetmetal_add_wall"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameNoRequested internal name for a new object/document; FreeCAD may uniquify it. Use the returned name.Bend
doc_nameYesInternal document Name, never Label/path. Omitted/null uses active document (legacy); pass explicitly.
angle_degNoBend angle in degrees, strictly between 0 and 180.
base_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
body_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
edge_nameYesInternal object Name in the selected document, never Label; must have the type required by this tool.
length_mmYesPositive length in millimetres.
radius_mmYesPositive length in millimetres.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4.1/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 load and does well: it discloses geometry validation with rollback on failure, enumerates error codes including transaction_conflict and execution_timeout, and warns that timeout is not cancellation so mutations must not be blindly retried. Remaining gap is minor — "legacy return shape preserved" is asserted but never described, so the mutation's result is opaque.

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 action is front-loaded in the first clause, followed by state/contract notes that each carry information. It is dense with generic contract boilerplate (unit table, error list) that reads as templated across the toolset, but no sentence is pure filler.

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?

For an 8-parameter mutation with no annotations and no output schema, this is close to sufficient: it covers safety semantics, rollback, error taxonomy, retry hazard, and naming/unit conventions. The one real hole is the undocumented return value, which matters precisely because no output schema exists.

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 baseline is 3, and the description adds real meaning on top: it flags that EdgeN selectors are current-state references that must be reselected after topology changes, and that explicit internal names are recommended and units override defaults. It does not add per-parameter detail for angle_deg or radius_mm, but the schema already constrains those.

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?

States a specific verb and resource ("Add a real SMBendWall to the current Body tip") and then bounds the operation by naming what it is not ("not stamping or arbitrary formed-sheet recognition"). An agent can distinguish this from sheetmetal_create_base or sheetmetal_unfold without opening a schema.

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 is implied by the scope note and the rollback/validation language, and the "not stamping" clause functions as a when-not. However, there is no explicit routing to alternatives (e.g. create_base before adding a wall) and no stated prerequisite that a base wall/body must already exist, so the agent must infer placement in the workflow.

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