Skip to main content
Glama
TommeCAD FreeCAD MCP

TommeCAD FreeCAD MCP

get_expressions

Read property paths and Expressions from a FreeCAD document object using explicit internal names, without evaluating Python or modifying the document.

Instructions

Read native property paths and Expressions without evaluating Python or mutating the document.

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>",
      "obj_name": "<obj_name>"
    },
    "name": "get_expressions"
  }
}

Input Schema

NameRequiredDescriptionDefault
doc_nameYesExplicit internal Name; no Label or active-document fallback.
obj_nameYesExplicit 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

B3.3/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 it does supply real behavior: no Python evaluation, no document mutation, unit conventions with field-level overrides, an enumerated error set, and possible transport failures. However, the closing note about not retrying mutations is boilerplate aimed at write tools and does not apply here, which weakens confidence in the rest of the contract text.

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 purpose sentence is front-loaded and tight, and the unit and error clauses are compact. But the timeout/cancellation sentence is irrelevant to a read-only tool and consumes space that could have gone to differentiating it from get_properties.

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 adds units, error codes, and non-mutation guarantees appropriate for a read tool with two required parameters. The remaining gap is the absence of any statement about what 'Expressions' means or how results relate to the sibling property getter.

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 description coverage is 100% and both parameters already document 'Explicit internal Name; no Label or active-document fallback.' The description's 'explicit internal names recommended' reinforces rather than extends that meaning, so this is a solid baseline rather than added value.

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 description states a specific verb and resource: read native property paths and Expressions, explicitly without evaluating Python or mutating the document. That distinguishes it from mutation-focused siblings, but it never names get_properties or explains how reading 'Expressions' differs from reading plain properties, so an agent must infer the boundary.

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

Usage Guidelines2/5

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

There is no explicit when-to-use or when-not-to-use framing, and no alternative sibling is named for comparison. The only guidance is a parameter convention ('explicit internal names recommended') and a read-only constraint, which describes behavior rather than selection criteria.

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