Skip to main content
Glama

Set raw actuator inputs by actuator name (Sim.set_controls)

controls

Set raw actuator inputs by actuator name in an open simulation; use target values for direct actuation when targets are not used.

Instructions

Set raw actuator inputs by actuator name (Sim.set_controls); targets is the usual way. Example arguments: {"sim": "sim1", "controls": {"arm/actuator1": 0.5}}

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

Input Schema

NameRequiredDescriptionDefault
simNoid of an open simulation (from build); default: build `scene`, else the last one built
seedNoseed of randomized values (same seed, same worlds)
sceneNoa library scene name (alloy list scenes), a .yaml/.json/.xml/.urdf/.usd path, Scene JSON, or a recipe {"objects": [{"add": "ground"}, {"add": "box", "name": "cube", "size": [0.1, 0.1, 0.1], "pos": [0, 0, 0.5], "mass": 1.0}]}
deviceNo'cpu', 'cuda' or 'cuda:<n>' (default: the GPU if there is one)
worldsNoparallel worlds (default: the scene's)
libraryNoextra card library folders, searched first
profileNointegration profile
contactsNocontact pipeline
controlsYes{"actuator": value} (a list gives one per world)
liquid_accuracyNoliquid particles: default 4 mm apart, super 2 mm (finer openings and streams, about 16x the cost), ultra 1.5 mm (about 50x); sets the scene's liquid_accuracy

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.8
    • changedInput schema / properties / liquid_accuracy / description
      Previous value: -"liquid particles: default 4 mm apart, super 2 mm (finer openings and streams, about 16x the cost); sets the scene's liquid_accuracy"New value: +"liquid particles: default 4 mm apart, super 2 mm (finer openings and streams, about 16x the cost), ultra 1.5 mm (about 50x); sets the scene's liquid_accuracy"
    • changedInput schema / properties / liquid_accuracy / enum
      Previous value: -[
      -  "default",
      -  "super"
      -]New value: +[
      +  "default",
      +  "super",
      +  "ultra"
      +]
    • changedInput schema / properties / scene / anyOf
      Previous value: -[
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "additionalProperties": false,
      -    "description": "a recipe: Scene.add_* calls as JSON",
      -    "properties": {
      -      "base": {
      -        "description": "start from this library scene or file",
      -        "type": "string"
      -      },
      -      "dt": {
      -        "description": "control period, s",
      -        "type": "number"
      -      },
      -      "friction": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "liquid_accuracy": {
      -        "description": "liquid particles 4 mm apart (default) or 2 mm (super)",
      -        "enum": [
      -          "default",
      -          "super"
      -        ]
      -      },
      -      "materials": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "objects": {
      -        "items": {
      -          "description": "keyword arguments of Scene.add_<add>: sizes in m (full edges), mass kg, pos [x, y, z], rpy radians, static true/false (alloy list adds); a robot's path is a file or a library robot name (alloy list robots)",
      -          "properties": {
      -            "add": {
      -              "enum": [
      -                "block_with_hole",
      -                "box",
      -                "capsule",
      -                "cloth",
      -                "cylinder",
      -                "ground",
      -                "heater",
      -                "liquid",
      -                "mesh",
      -                "object",
      -                "open_box",
      -                "open_cylinder",
      -                "pour",
      -                "push",
      -                "robot",
      -                "rod",
      -                "sphere"
      -              ]
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "add"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "randomize": {
      -        "items": {
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "set": {
      -        "items": {
      -          "description": "keyword arguments of Scene.set_<set>, e.g. {\"set\": \"heater\", \"name\": \"pan_floor\", \"temperature\": 353.15} or {\"set\": \"heat\", \"time_scale\": 60}",
      -          "properties": {
      -            "set": {
      -              "enum": [
      -                "friction",
      -                "heat",
      -                "heater",
      -                "inertia_floor",
      -                "joint_yield",
      -                "quasi_static_mass_scale",
      -                "temperature"
      -              ]
      -            }
      -          },
      -          "required": [
      -            "set"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "worlds": {
      -        "minimum": 1,
      -        "type": "integer"
      -      }
      -    },
      -    "type": "object"
      -  },
      -  {
      -    "description": "Scene JSON (Scene.to_dict())",
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": "string"
      +  },
      +  {
      +    "additionalProperties": false,
      +    "description": "a recipe: Scene.add_* calls as JSON",
      +    "properties": {
      +      "base": {
      +        "description": "start from this library scene or file",
      +        "type": "string"
      +      },
      +      "dt": {
      +        "description": "control period, s",
      +        "type": "number"
      +      },
      +      "friction": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "liquid_accuracy": {
      +        "description": "liquid particles 4 mm apart (default), 2 mm (super) or 1.5 mm (ultra)",
      +        "enum": [
      +          "default",
      +          "super",
      +          "ultra"
      +        ]
      +      },
      +      "materials": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "objects": {
      +        "items": {
      +          "description": "keyword arguments of Scene.add_<add>: sizes in m (full edges), mass kg, pos [x, y, z], rpy radians, static true/false (alloy list adds); a robot's path is a file or a library robot name (alloy list robots)",
      +          "properties": {
      +            "add": {
      +              "enum": [
      +                "block_with_hole",
      +                "box",
      +                "capsule",
      +                "cloth",
      +                "cylinder",
      +                "ground",
      +                "heater",
      +                "liquid",
      +                "mesh",
      +                "object",
      +                "open_box",
      +                "open_cylinder",
      +                "pour",
      +                "push",
      +                "robot",
      +                "rod",
      +                "sphere"
      +              ]
      +            },
      +            "name": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "add"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "randomize": {
      +        "items": {
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "set": {
      +        "items": {
      +          "description": "keyword arguments of Scene.set_<set>, e.g. {\"set\": \"heater\", \"name\": \"pan_floor\", \"temperature\": 353.15} or {\"set\": \"heat\", \"time_scale\": 60}",
      +          "properties": {
      +            "set": {
      +              "enum": [
      +                "friction",
      +                "heat",
      +                "heater",
      +                "inertia_floor",
      +                "joint_yield",
      +                "quasi_static_mass_scale",
      +                "temperature"
      +              ]
      +            }
      +          },
      +          "required": [
      +            "set"
      +          ],
      +          "type": "object"
      +        },
      +        "type": "array"
      +      },
      +      "worlds": {
      +        "minimum": 1,
      +        "type": "integer"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  {
      +    "description": "Scene JSON (Scene.to_dict())",
      +    "type": "object"
      +  }
      +]
  2. Addedv0.1.3

TDQS

A4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false and idempotentHint=false, so the agent knows this mutates simulation state and repeated calls re-apply rather than accumulate. The description adds the useful 'raw vs targets' framing and an argument example, but says nothing about what happens to actuators not listed, whether these inputs persist across steps or are overridden by a subsequent targets call, or whether it applies per-world.

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 short sentences, front-loaded with the operation and immediately followed by the sibling steer and a concrete example. Nothing is wasted and there is no filler prose.

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 10-parameter mutation tool, the description covers the one required parameter with an example and clarifies the raw-vs-targets distinction, while the schema fully documents everything else and annotations carry the safety profile. The one residual gap is the interaction between raw controls and targets across steps, which an agent might still want spelled out.

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 description coverage is 100%, so the parameters — including the required 'controls' map — are already documented in structured form. The description's example of {"arm/actuator1": 0.5} reinforces the expected key/value shape but adds no information about units, ranges, or per-world list semantics beyond what the schema already states.

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?

States a specific verb and resource — 'Set raw actuator inputs by actuator name' — and names the concrete mapping format ({"arm/actuator1": 0.5}) so the agent knows exactly what this write does. It also distinguishes itself from the sibling 'targets', which it identifies as the usual path, so the agent can tell the two apart without opening either schema.

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?

'targets is the usual way' is an explicit steer toward the preferred alternative and implies this tool is the raw/low-level escape hatch. It stops short of stating the conditions under which raw control is actually required (e.g., direct actuator voltage vs. a high-level target), so there is no full when-not statement.

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