Skip to main content
Glama

Run Script

run_script
Destructive

Execute a .py file in Blender with arguments to build models from scripts, returning stdout, stderr, and added, removed, or changed objects.

Instructions

Run a .py file in Blender as run_python does, with args; its folder, and parents up to a blenderlens.toml, are importable afresh each run. Returns: result, stdout, stderr, objects added, removed, changed. WHEN TO CALL: to build a model from its script.

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": {
      "path": "<path>"
    },
    "name": "run_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
argsNoThe script's args
pathYes.py file
freshNoStart from an empty file
discardNoAllow losing unsaved changes
timeoutNoSeconds (120)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Goes well beyond the annotations by naming the return payload (result, stdout, stderr, objects added/removed/changed) and the path-resolution rule (script folder plus parents up to blenderlens.toml, imported afresh each run). Combined with destructiveHint=true, this tells the agent a run mutates the scene and can lose unsaved work. It does not spell out failure modes when the script errors or what happens on 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?

Front-loaded and dense: purpose, path semantics, return shape, then the call trigger, with no filler. The second clause is grammatically awkward and slightly hard to parse, which costs it a point, but nothing is redundant.

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?

For a destructive, side-effecting execution tool with no output schema, the description supplies the return fields and the import-path rule that an agent needs to interpret results and set up scripts. Missing are the failure/timeout semantics and how stdout/stderr are shaped, which matter given that arbitrary scripts can error.

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 coverage is 100%, so baseline is 3, and the description earns an extra point by explaining path semantics (folder and parents become importable) and reinforcing the per-run refresh behavior that the `fresh` flag controls. It still says nothing specific about `args`, `timeout`, or how `discard` interacts with unsaved changes beyond the schema's own wording.

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?

States a specific verb and resource ('Run a .py file in Blender') and anchors it to the sibling run_python ('as run_python does, with args'). The added note about which folders become importable makes clear this is file-based execution, though the phrase 'as run_python does' blurs the distinction slightly rather than drawing a clean line.

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?

Provides an explicit WHEN TO CALL trigger ('to build a model from its script'), which is real guidance. But it gives no when-not conditions and never names run_python as the alternative for inline code, leaving the agent to infer the split between the two tools.

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