Skip to main content
Glama

modo_run_command

Destructive

Executes one Modo command to set or query scene values; drive modelling tools with tool.set, tool.setAttr, and tool.doApply, with crash-risk commands refused unless acknowledged.

Instructions

Run one Modo command, e.g. 'item.create mesh' or 'select.type polygon'. Append ' ?' to query a value instead of setting it. Modelling tools such as bevel, extrude or primitives are not commands: drive them with 'tool.set on', 'tool.setAttr ', 'tool.doApply', 'tool.set off'. Verify unfamiliar commands with modo_get_command_info first: a wrong argument name fails rather than being ignored. Never query 'commandservice command. ? {name}' for an unverified name -- it crashes Modo 17.1, so the bridge refuses it. Commands known to crash Modo are refused until repeated with acknowledge_risk=true -- save the scene before doing so. For anything that changes the scene, fill 'purpose' with one plain sentence about the effect.

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": {
      "command": "<command>"
    },
    "name": "modo_run_command"
  }
}

Input Schema

NameRequiredDescriptionDefault
commandYes
purposeNoFor anything that changes the scene: one short sentence about the effect, shown to the user before approval and in Modo's event log.
instanceNoThis chat's Modo instance token (modo-xxxxxx) from modo_use_instance or modo_launch_instance. Pass it on every call once you have one; leave empty only while a single chat works with Modo.
timeout_msNo
acknowledge_riskNo
rollback_on_errorNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.5.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and openWorldHint=false, so the mutation profile is known. The description adds material context beyond that: a wrong argument name fails rather than being silently ignored, a specific query form is refused because it crashes Modo 17.1, crash-prone commands are blocked until acknowledge_risk=true, and the purpose text is shown to the user before approval. Only timeout and rollback behaviour remain undisclosed.

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 with the action and examples, then layered safety caveats, with no filler sentences. It is dense and jargon-heavy, and the commandservice crash sentence is long, but each clause carries operational value an agent needs before calling.

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 high-risk escape-hatch tool with an output schema and destructive annotations, the definition covers the essentials: valid command grammar, verification path, refusal/escalation behaviour, and user-facing approval text. Gaps are limited to timeout and rollback semantics, which are largely self-describing defaults.

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 33%, with 'command' itself carrying no schema description, so the description must compensate and does: it defines the command syntax, the ' ?' query suffix, and the safe alternative for interactive tools. It also explains acknowledge_risk and the purpose field, though timeout_ms and rollback_on_error are left to their names and defaults.

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 one Modo command') and immediately grounds it with concrete examples ('item.create mesh', 'select.type polygon') plus the ' ?' query variant. It does not explicitly say how this differs from modo_run_python, but the command-string framing and the tool.set workaround make the boundary reasonably evident.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit routing rules: verify unfamiliar commands with modo_get_command_info first, use tool.set/tool.setAttr/tool.doApply instead of this tool for interactive modelling tools, and avoid the commandservice query form entirely. It also names the acknowledge_risk escalation path and when to supply 'purpose', so the agent knows both when to call it and when not to.

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