Skip to main content
Glama

Execute Approved Script

script.execute
Destructive

Run a Python script in Maya from an authorized directory, with optional arguments passed as variables in the script's namespace.

Instructions

Execute a Python script file in Maya from an allowed MAYA_MCP_SCRIPT_DIRS directory. The script is read server-side and sent to Maya. Optional args dict is injected as args in the script namespace.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
argsNoOptional arguments dict injected as __args__ in the script namespace
timeoutNoOptional timeout override in seconds (default from MAYA_MCP_SCRIPT_TIMEOUT)
file_pathYesAbsolute path to the .py script file

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
errorsYes
outputYes
scriptYes
successYes
Behavior4/5

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

Annotations indicate destructiveHint=true, and description adds context about server-side reading and allowed directories. No contradiction, and description provides useful behavioral details beyond annotations.

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?

Two sentences, front-loaded with the main action, no wasted words. Efficient and clear.

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 existence of output schema, return values need not be described. Description covers purpose, mechanism, and constraints (allowed directories). Minor gap: no mention of error handling or permissions beyond 'allowed MAYA_MCP_SCRIPT_DIRS', but sufficient for a simple execution tool.

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 baseline is 3. Description adds minor value by clarifying that script is read server-side and args are injected as __args__ namespace variable, but does not significantly enhance understanding beyond 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?

Description clearly states the verb 'execute' and the resource 'Python script file', and adds key details like server-side reading and args injection. It distinguishes from siblings (script.list, script.run) by specifying execution from allowed directories.

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?

No explicit guidance on when to use this tool versus alternatives like script.run or script.list. Does not provide when-not or context for choosing among sibling tools.

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/GimbalGoats/GG_MayaMCP'

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