Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

create_link

Creates an App::Link to an explicitly named source object in the same or another document; save both files for external links, and source changes propagate.

Instructions

Create App::Link to an explicit source in this or another document. For external links save both documents first; source changes propagate.

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>",
      "name": "<name>",
      "source_document": "<source_document>",
      "source_object": "<source_object>"
    },
    "name": "create_link"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesExplicit internal Name; no Label or active-document fallback.
doc_nameYesExplicit internal Name; no Label or active-document fallback.
source_objectYesExplicit internal Name; no Label or active-document fallback.
source_documentYesExplicit internal Name; no Label or active-document fallback.

Output Schema

NameRequiredDescriptionDefault
dataNo
errorNo
statusYes
warningsNo
referencesNo
contract_versionNo1.0

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A3.9/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 discloses post-creation propagation ('source changes propagate'), a save precondition, unit conventions with override semantics, an enumerated error set, and the important 'timeout is not cancellation: never blindly retry mutations' warning. Gaps remain around permissions and whether the source document is touched, but the mutation behavior and failure modes are unusually well covered.

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?

Content is front-loaded, with the core action first and preconditions, contract, and errors following in compact clauses. It is somewhat telegraphic ('Contract: ... Legacy return shape preserved'), which costs a little readability but wastes no sentences.

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 values need not be explained, and the description instead covers the things schemas cannot: preconditions, propagation side effects, units, and error taxonomy. The only soft spot is the opaque 'Legacy return shape preserved' phrasing, which is not explained.

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% and all four parameters carry the same 'explicit internal Name; no Label or active-document fallback' note, so the schema already defines them. The description reinforces the explicit-name convention and implies the source_document/source_object relationship but adds no per-parameter syntax or format detail; baseline 3 applies.

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 first sentence gives a specific verb and resource ('Create App::Link') plus the scope ('in this or another document'), which is enough to distinguish it from the other create_* siblings that build containers, documents, sketches, etc. It stops short of naming or contrasting any sibling explicitly, so it sits just below the top band.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a concrete precondition ('For external links save both documents first') and a naming convention ('explicit internal names recommended'), which tells the agent how to invoke it safely. There is no explicit when-not or alternative-tool guidance, so it is clear context without exclusions.

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