Skip to main content
Glama
KorwinTeo

BlenderMCP

by KorwinTeo

execute_blender_code

Execute Python code in Blender to automate 3D modeling, scene manipulation, and custom operations. Accepts inline code or a local .py file.

Instructions

Execute arbitrary Python code in Blender. Prefer small steps.

Pass either inline `code` or `file_path` to a local .py file (server reads
the file — cheaper than large inlined scripts). If both are set, `code` wins.

Parameters:
- code: Python source to execute (optional if file_path is set)
- file_path: Path to a local Python file (absolute or relative to server cwd)
- user_prompt: Original user prompt (telemetry)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeNo
file_pathNo
user_promptNo
Behavior3/5

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

With no annotations, the description carries the full burden. It clearly states that the tool executes arbitrary Blender Python code and explains the file_path behavior. However, it does not disclose whether scene changes persist, what the return value might be (e.g., stdout, errors), or any safety caveats, leaving notable gaps for an agent.

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 compact and well-structured: a one-sentence purpose, two sentences of usage guidance, and a three-bullet parameter list. Every sentence adds value and nothing is redundant.

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?

For a complex code-execution tool with no output schema, the description covers parameters and usage well. However, it does not mention what the tool returns after execution, whether errors are surfaced, or if changes to the Blender scene persist. This is a meaningful gap given the tool's power and the absence of structured output information.

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

Parameters5/5

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

The schema provides only raw string fields with no descriptions, and coverage is 0%. The description fully compensates with a clean parameter list that explains code, file_path, and user_prompt, including the optional relationship and precedence. This is far beyond what the schema supplies.

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 Blender' with a specific verb and resource. It is unmistakably distinct from sibling tools, which are all getters or asset-management operations, and no other tool executes arbitrary code.

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

Usage Guidelines4/5

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

It gives practical guidance on passing code vs. file_path, including the trade-off (server reads file, cheaper for large scripts) and precedence when both are provided. It does not explicitly list alternatives or exclusions, but the sibling tools are clearly different in purpose, so the guidance is sufficient.

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/KorwinTeo/blender-mcp-backup'

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