Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

connect

Establishes a session with a running FreeCAD instance that has the AI Bridge addon loaded, required before invoking any other TommeCAD FreeCAD MCP tools.

Instructions

Connect to a running FreeCAD instance with the AI Bridge addon.

Must be called before using any other tools. FreeCAD must be running
with the FreecadAIBridge addon loaded.

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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "connect"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNoTrusted local bridge host; default IPv4 loopback. No remote security or authentication promised.127.0.0.1
portNoXML-RPC TCP port; default 9875, isolated tests may use another port.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4.2/5.0
Behavior4/5

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

With no annotations present, the description does real work: it warns that transport failures are possible, that timeout is not cancellation, and that mutations should never be blindly retried. The enumerated error tokens (invalid_arguments, transaction_conflict, execution_timeout, etc.) are partly generic template boilerplate that likely does not apply to a connection handshake, which slightly dilutes the signal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first three lines are tight and correctly front-loaded. The appended 'Contract' block, however, is largely irrelevant to a connection tool — mm/mm^2/mm^3 units, transaction_conflict, and 'legacy return shape preserved' belong to geometry or document-mutation tools and read as copy-pasted template text.

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 a two-parameter connection tool with full schema coverage and an output schema, the description covers purpose, prerequisites, and failure modes adequately. It does not need to explain return values, though the vague 'Legacy return shape preserved' line is a dangling reference the reader cannot act on.

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 both parameters (host, port) carry their own descriptions, including the security caveat about no remote authentication. The description adds nothing about the parameters, so the baseline 3 applies.

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 — connecting to a running FreeCAD instance via the AI Bridge addon — and explicitly positions itself as the prerequisite gate ('Must be called before using any other tools'), which separates it from every sibling in the catalog. No ambiguity about what calling it accomplishes.

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

Usage Guidelines5/5

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

Gives an explicit precondition to check before calling (FreeCAD running with the FreecadAIBridge addon loaded) and an explicit ordering rule against all alternatives (must precede any other tool). For a prerequisite connection tool this is exactly the needed guidance.

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