Skip to main content
Glama
Blender Bridge MCP

Blender Bridge MCP

by ItzAbra26

execute_blender_code

Destructive

Execute Python inside a live Blender session to model, inspect, animate, or modify scenes, capture results, and apply optional undo steps.

Instructions

Run Python inside the live Blender session (main thread, one undo step per call).

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
codeYesPython using bpy. `C`, `D`, `Vector`, `math` are predefined. Assign to `result` to return a value; print() output is captured.
titleNoShort label shown in Blender's panel and undo historycode
timeoutNo
undo_stepNoFalse for read-only queries (no undo step)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, but the description adds real behavioral context: execution is synchronous on the main thread, and each call is wrapped in exactly one undo step. It stops short of saying what happens on exceptions or whether session state persists across calls, which keeps it from a 5.

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?

A single front-loaded sentence with no filler; both parenthetical details (main thread, undo granularity) carry information an agent 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?

For a destructive, arbitrary-code-execution tool with no output schema, the definition is thin: nothing about error/exception surfacing, whether stdout and `result` are returned, or side effects persisting in the live session. The schema covers most parameter meaning, but the description leaves an agent guessing about failure behavior.

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 75%, so the schema already documents code, title, and undo_step; the description's 'one undo step per call' reinforces undo_step semantics. The timeout parameter is undocumented in both places, and the description adds no format or unit detail beyond the schema, so baseline 3 applies.

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: 'Run Python inside the live Blender session,' which unambiguously identifies an arbitrary-code-execution tool. It doesn't explicitly name a sibling it replaces or contrast with read-only scene tools, so it falls just short of 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 or when-not-to-use guidance relative to siblings like get_scene_info or set_animation, nor any prerequisites or warnings about escalation. The parenthetical about the main thread and undo steps describes mechanics rather than selection guidance.

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