Skip to main content
Glama
fastmcp-me

FreeCAD MCP

by fastmcp-me

execute_code

Execute Python code within FreeCAD to automate tasks and manipulate 3D objects, returning output and a screenshot.

Instructions

Execute arbitrary Python code in FreeCAD.

Args:
    code: The Python code to execute.

Returns:
    A message indicating the success or failure of the code execution, the output of the code execution, and a screenshot of the object.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior3/5

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

With no annotations provided, the description carries full burden. It mentions execution and return values (success/failure, output, screenshot) but does not disclose potential destructive effects, security implications, or that code can modify the FreeCAD environment. This is a partial disclosure, leaving gaps.

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 description is concise with a front-loaded main sentence and structured Args/Returns. It avoids fluff, but the Args section repeats the parameter name without elaboration. Still efficient for a single-parameter tool.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's simplicity (single string input) and the presence of an output schema, the description covers basic usage: execution and return of output/success/screenshot. However, it lacks warnings about arbitrary code execution risks and potential side effects, making it only moderately complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The single parameter 'code' has no schema description (0% coverage). The description's Args section merely restates 'The Python code to execute,' adding no format, syntax, or constraints beyond the obvious. This minimal added meaning warrants a low score.

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?

The description clearly states the tool's function: 'Execute arbitrary Python code in FreeCAD.' It uses a specific verb and resource, and it is distinct from sibling tools which focus on document, object, and view operations, not code execution.

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?

The description provides no guidance on when to use this tool versus alternatives. It does not mention prerequisites, limitations, or when to avoid code execution. Siblings are listed but not referenced in the description.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fastmcp-me/freecad-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server