Skip to main content
Glama

execute_blender_code

Run Python code directly in Blender to automate 3D modeling tasks, control objects and materials, and manipulate scenes through script execution.

Instructions

Execute arbitrary Python code in Blender. Make sure to do it step-by-step by breaking it into smaller chunks.

Parameters:

  • code: The Python code to execute

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. While it mentions executing code 'in Blender' and suggests a step-by-step approach, it lacks critical details: it doesn't specify permissions needed, potential side effects (e.g., modifying Blender scenes), error handling, or execution limits. For a tool that executes arbitrary code, this is a significant gap in transparency.

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 and well-structured: it starts with the core purpose, adds a usage tip, and then lists parameters clearly. Every sentence adds value, and there's no unnecessary repetition. However, it could be slightly more front-loaded by integrating the parameter info more seamlessly, but it's efficient overall.

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?

Given the complexity of executing arbitrary code in Blender, the description is incomplete. No annotations or output schema exist, and the description doesn't cover key aspects like return values, error cases, or safety considerations. For a tool with such broad potential impact, more context is needed to ensure safe and effective use by an AI agent.

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?

The description adds minimal semantics beyond the input schema: it lists the 'code' parameter and states it's 'The Python code to execute.' With 0% schema description coverage (the schema has no descriptions for parameters), this provides basic meaning but doesn't elaborate on format, constraints, or examples. Since there's only one parameter, the baseline is higher, but the description doesn't fully compensate for the lack of schema details.

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 clearly states the tool's purpose: 'Execute arbitrary Python code in Blender.' It specifies the verb ('execute'), resource ('Python code'), and context ('in Blender'), making it easy to understand what the tool does. However, it doesn't explicitly differentiate from sibling tools like 'get_scene_info' or 'set_texture', which are more specific operations rather than general 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 Guidelines3/5

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

The description provides some usage guidance with 'Make sure to do it step-by-step by breaking it into smaller chunks,' which implies a best practice for using this tool. However, it doesn't explicitly state when to use this tool versus alternatives (e.g., for automation vs. using specific sibling tools) or list any prerequisites or exclusions. The guidance is helpful but not comprehensive.

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/diegofornalha/blender-mcp-claude'

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