Skip to main content
Glama
BlenderMCP

BlenderMCP

by szichedelic

execute_blender_code

Execute Python code inside Blender to automate 3D modeling, scene creation, and object or material manipulation, with an optional timeout to control runtime.

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

  • timeout: Maximum execution time in seconds (default: 30, max: 120)

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": {
      "code": "<code>"
    },
    "name": "execute_blender_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes
timeoutNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.5.5

TDQS

A3.5/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It helpfully discloses the timeout default (30s) and maximum (120s), which is not in the schema, and warns that code should be chunked. However, for arbitrary code execution it omits critical behavior: whether stdout/results are returned, whether state persists in the live Blender session, and what happens on error or timeout.

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 purpose and the most important operating instruction are front-loaded in two short sentences, followed by a compact parameter list. Nothing is padded, though the parameter lines partially restate schema names.

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?

With no annotations and no output schema, the definition should say what an execution returns and what side effects it has on the scene. The timeout bounds and chunking advice cover part of the gap, but result and null return behavior remain unstated for a high-risk arbitrary-code tool.

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 0%, so the parameter block in the description is the only source of meaning. It documents both parameters and adds the default and maximum for timeout that the schema does not express. It does not explain the expected form or scope of the code string, which keeps it short of a 5.

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 definition gives a specific verb and resource: execute arbitrary Python code in Blender. It is clear what the tool does, but it never contrasts itself with the many granular sibling tools such as add_modifier or create_material, so an agent must infer that this is the fallback for anything not covered by a dedicated tool.

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 line 'do it step-by-step by breaking it into smaller chunks' is genuine invocation guidance about how to structure calls, but it does not say when to prefer this tool over the specialized siblings or when to avoid it. Usage is implied rather than stated.

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