Skip to main content
Glama
vino3dx
by vino3dx

execute_maxscript

Destructive

Run MAXScript snippets to access any 3ds Max feature without a dedicated tool. Returns results, and supports wrapping the snippet in a single undo step.

Instructions

直接执行一段 MAXScript 代码并把结果返回。这是万能逃生舱:当没有现成工具时用它访问任意 Max 功能。设置 asOneUndo=true 可让整段代码成为一步撤销。 [English] Execute a MAXScript snippet and return its result. This is the universal escape hatch: use it to reach any Max feature that has no dedicated tool. Set asOneUndo=true to make the whole snippet a single undo step.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
codeYes要执行的 MAXScript 代码。 | MAXScript code to execute.
labelNo撤销步骤名称。 | Undo step label.
asOneUndoNo是否把整段代码包成一步撤销(默认否)。 | Wrap the whole snippet in one undo step (default false).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already mark this as potentially destructive and not read-only, so the description does not need to repeat that warning. It adds useful behavioral context beyond annotations: arbitrary code execution, result return, and the asOneUndo grouping behavior. It does not contradict the annotations.

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 core content is compact and front-loaded: purpose, usage condition, and undo behavior appear in two short sentences per language. The bilingual duplication doubles the length, but each language version is tight and free of fluff.

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 an arbitrary code execution tool, the description covers the essential selection and invocation context: what it does, when to use it, and the key undo option. Schema examples cover code format. It does not detail error handling or result serialization, but annotations mitigate the missing safety warning.

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 baseline is 3. The description mentions asOneUndo, but this largely restates what the schema already says. It adds no meaningful semantic detail beyond the schemas for code and label.

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 states a specific verb and resource: execute a MAXScript snippet and return the result. It also positions itself as the 'universal escape hatch' for reaching any Max feature without a dedicated tool, which clearly distinguishes it from the many specialized sibling tools.

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 explicitly says to use this tool when there is no dedicated tool for the desired Max feature. It does not name alternatives like execute_python or explicitly list exclusions, but the core routing condition is clear and actionable.

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