Skip to main content
Glama
mars720816
by mars720816

execute_code

Execute Python code in FreeCAD to automate modeling actions, returning the output and a screenshot of the resulting 3D object.

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
Behavior2/5

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

With no annotations, the description must disclose behavioral traits, but it only states that arbitrary code is executed and a message/output/screenshot are returned. It does not mention potential side effects, document modifications, error handling, or any security concerns inherent to executing arbitrary code.

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

Conciseness5/5

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

The description is concise and well-structured with arguments and returns sections, each sentence serving a purpose. It avoids unnecessary elaboration while communicating the essential information.

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

Completeness2/5

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

The description is incomplete for an arbitrary code execution tool: it fails to explain the execution environment, whether code can mutate the document, what 'the object' in the screenshot refers to, or any constraints. The absence of annotations and output schema makes these omissions more significant.

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?

The schema only provides a property named 'code' with title 'Code' and zero description coverage. The tool description compensates by specifying 'code: The Python code to execute,' clarifying the parameter's purpose, which is sufficient for a single code parameter.

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 states 'Execute arbitrary Python code in FreeCAD' with a specific verb and resource, clearly distinguishing it from sibling tools that handle object/document management. The purpose is unambiguous.

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?

No guidance is provided on when to use this tool versus alternatives. It does not mention prerequisites, limitations, or when to choose a more specific tool like edit_object or get_objects, leaving usage context entirely implicit.

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/mars720816/OPENCLAW-FREECAD-MCP-Skills'

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