Skip to main content
Glama

blender

Execute bpy scripts headlessly to procedurally generate 3D models and export them as GLB directly into your Godot project.

Instructions

Blender 程序化建模。action=execute_bpy:AI 写 bpy 片段,headless 跑,自动导 glb 到 res://。(⚠️ bpy 是全功能 Python,威胁面=宿主 RCE,高于 execute_gdscript 沙箱一个量级。仅约束 glb 导出落点,不约束 bpy 内部文件操作。本地单用户信任模型。)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYesbpy 建模片段(无需 import/export,godot-mcp 自动包装)
actionYes操作类型
timeoutNo超时秒数(默认 60)
export_pathYes相对项目根的 glb 导出路径,可带可选 res:// 前缀(如 assets/models/rock.glb)
project_pathNoGodot 项目目录路径
Behavior5/5

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

Annotations provide no hints (all false), but the description discloses critical behavioral traits: arbitrary Python execution, lack of sandboxing, unconstrained internal file operations, and the RCE risk. It also mentions headless execution and automatic GLB export, going well beyond what annotations or schema convey.

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 front-loaded with purpose, then the action, then a crucial security warning. Every sentence earns its place, with no irrelevant filler.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/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 Python and no output schema, the description covers purpose, mechanism, risk, and output destination. It does not explain return values or error behavior, but the primary output (GLB file) is clear. The security context is thorough, making it sufficiently complete for an agent to invoke correctly.

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 100%, so the schema already documents parameters. The description adds little semantic detail beyond mentioning action=execute_bpy and glb export to res://, which aligns with export_path but does not enrich understanding of code or timeout. It does not compensate significantly over the schema.

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 clearly states 'Blender procedural modeling' and specifies the action 'execute_bpy' with AI-written bpy snippets, headless execution, and automatic GLB export to res://. This distinguishes it from other tools by naming the exact resource and operation.

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?

The description warns that bpy is full-featured Python with a threat surface of host RCE, an order of magnitude higher than the execute_gdscript sandbox, effectively cautioning when to use it versus safer alternatives. It also notes the local single-user trust model, but does not explicitly state functional use cases or exclusions beyond security concerns.

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/wgt19861219/godot-mcp-enhanced'

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