Skip to main content
Glama

execute_maya_code

Run literal Maya commands to list objects and relatives, check object existence, create polygon primitives, evaluate topology, and query or set transforms.

Instructions

Execute literal cmds calls for ls, listRelatives, objExists, polygon primitives, polyEvaluate and xform.

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_maya_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden, and it discloses almost nothing beyond the command list. It does not say whether only a single literal cmds statement is accepted (no imports, variables, or loops), what happens on invalid or disallowed code, or that commands like polygon primitives and xform have side effects (creating and mutating scene objects). Return values are partly covered by the output schema, which is the only mitigating factor.

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?

One front-loaded sentence with no filler; the operation and its allowed scope come first. The parenthetical-style command enumeration is information-dense but slightly muddy at 'polygon primitives', a category rather than a command name. Nothing is redundant.

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

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

This is an arbitrary-code-execution tool with zero annotation coverage, the highest-risk category, and the description gives no sandboxing, error-handling, or side-effect information. It does not clarify execution semantics (single statement vs. full script, whether the code is eval'd or exec'd). For a tool of this power, a one-line description leaves critical gaps.

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 0% and the single 'code' parameter is documented only as a string, so the description must compensate. 'Literal cmds calls' does add real meaning: the input should be a direct Maya cmds invocation rather than arbitrary Python, which constrains how an agent formats the argument. It still leaves open whether multiple statements, chained calls, or Python expressions are accepted.

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 ('Execute') and resource ('literal cmds calls') and then enumerates the permitted command set (ls, listRelatives, objExists, polygon primitives, polyEvaluate, xform). This whitelist clearly separates it from the purpose-built siblings like mesh_boolean or get_object_info, which cover single operations. It is slightly jargon-heavy but unambiguous about what the tool does.

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?

The command whitelist implicitly tells an agent when this tool is the right choice: when the needed operation is one of the listed cmds calls and no dedicated sibling covers it. However, there is no explicit 'do not use for X' guidance, no statement about whether unrestricted Python is rejected, and no routing advice to siblings for unsupported operations. Usage is inferable but not spelled out.

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