Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

techdraw_set_layout

Adjust a drawing view's position, rotation, or custom scale, or update page scale and existing title-block text fields to refine FreeCAD TechDraw layouts.

Instructions

Partially edit a view's position/custom scale/rotation or page scale and existing title-block fields.

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>",
      "page_name": "<page_name>"
    },
    "name": "techdraw_set_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
xNoView center x in paper mm from bottom left.
yNoView center y in paper mm from bottom left.
scaleNoPositive paper/model scale ratio; null leaves unchanged.
textsNoExisting SVG editable-text keys to strings; null leaves unchanged.
doc_nameYesExplicit internal document or drawing object Name.
rotationNoView rotation on paper in degrees; requires view_name.
page_nameYesExplicit internal document or drawing object Name.
view_nameNoInternal Name of a view belonging to this page; omitted for page scale/title fields.

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.5/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 and does add real value: an error taxonomy, the warning that timeout is not cancellation and mutations should not be blindly retried, and a note that the legacy return shape is preserved. It omits permission/auth requirements and says nothing about what happens when view-only fields are supplied without view_name. Strong on failure semantics, thin on everything else.

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 purpose is front-loaded in one sentence, then a compact contract block. Every clause is short and scannable. The only waste is the area/volume unit clause, which no parameter in this schema uses.

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 mutation-failure guidance covers the riskiest part of an 8-parameter partial-update tool. Gaps remain around the interaction between view_name omission and view-scoped fields, and around what valid 'texts' keys look like. Adequate for the complexity, but not airtight.

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 schema already documents every parameter including units and null semantics, making 3 the baseline. The description adds the "explicit internal names recommended" convention and the unit-override rule, which is genuinely useful. However, citing area mm^2 and volume mm^3 is irrelevant to a layout tool and reads as boilerplate leaking from a generic contract.

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 ("partially edit") plus the exact resources touched: view position, custom scale, rotation, page scale, and existing title-block fields. That is far more informative than the tool name alone. It stops short of naming how it differs from sibling setters such as techdraw_update_page or set_view, so an agent must infer the partial-update split.

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?

"Partially edit" implies use this when changing a few fields rather than rewriting the page, and the schema's null-leaves-unchanged default reinforces that. No explicit when-not or named alternative is given, so routing against techdraw_update_page is left to inference. Usage is implied rather than stated.

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