Skip to main content
Glama
Unified Blender MCP

Unified Blender MCP

by AdikaRafi

execute_blender_code

Executes Python (bpy/bmesh) code inside Blender to automate 3D modeling, material setup, and scene edits, with safe_mode AST allowlist protection enabled by default.

Instructions

Execute Python (bpy/bmesh) code inside Blender (protected by safe_mode AST allowlist by default).

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

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations provided, the description carries the full burden, and it does disclose one genuinely important trait: execution runs under a safe_mode AST allowlist by default. It omits equally important facts for arbitrary code execution: whether safe_mode can be disabled, what side effects or irreversible scene mutations are possible, permission requirements, and error behavior.

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?

A single front-loaded sentence with the core capability first and the safety caveat as a trailing parenthetical. Nothing is wasted, though the extreme brevity leaves no room for the routing and safety details an execution tool needs.

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?

An output schema exists, so return values need not be explained. But for an arbitrary code execution tool with zero annotations and an undocumented parameter, the definition should say more about safe_mode behavior, side effects, and how it differs from the raw-command sibling.

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?

Schema coverage is 0% for the single 'code' parameter, so the description should compensate, and it partially does by naming the expected API surface (bpy/bmesh) and the language. It adds no detail on format, size limits, or how the safe_mode allowlist constrains what can be passed.

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 gives a specific verb and resource: execute Python (bpy/bmesh) code inside Blender, which is concrete enough that an agent immediately understands the capability. It does not, however, distinguish this from the sibling send_blender_command_raw or explain the boundary between the two, which keeps it from a 5.

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?

There is no when-to-use guidance, no mention of when to prefer the raw-command sibling, and no prerequisites or exclusions. The only implicit signal is the parenthetical about safe_mode, which is a behavioral note rather than routing guidance.

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