Skip to main content
Glama

Run some simulated seconds, recording frames

run

Simulates a physics scene for a set duration, records frames to an .npz file, and returns sampled frames for inspection.

Instructions

Run some simulated seconds, recording frames; saves them to an .npz and samples a few. Example arguments: {"scene": "demo_peg_d12", "seconds": 1.0, "names": ["peg_d12"], "out": "traj.npz"}

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

Input Schema

NameRequiredDescriptionDefault
outNosave the frames to this .npz path
simNoid of an open simulation (from build); default: build `scene`, else the last one built
seedNoseed of randomized values (same seed, same worlds)
everyNorecord every n-th control period
namesNobodies, joints or particle objects to report (default: all)
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}]}
worldNowhich world to report: an index or "all"
deviceNo'cpu', 'cuda' or 'cuda:<n>' (default: the GPU if there is one)
pointsNocloth/liquid points: a summary or every pointsummary
worldsNoparallel worlds (default: the scene's)
libraryNoextra card library folders, searched first
profileNointegration profile
samplesNoframes of world `world` to include in the reply
secondsYessimulated seconds
targetsNojoint targets held ({"j": 0.1}) or ramped ({"j": {"from": 0, "to": 0.1}})
contactsNocontact pipeline
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. Changed1 schema field changedv0.1.3
    • 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)",
      -          "properties": {
      -            "add": {
      -              "enum": [
      -                "block_with_hole",
      -                "box",
      -                "capsule",
      -                "cloth",
      -                "cylinder",
      -                "ground",
      -                "liquid",
      -                "mesh",
      -                "object",
      -                "open_box",
      -                "open_cylinder",
      -                "robot",
      -                "rod",
      -                "sphere"
      -              ]
      -            },
      -            "name": {
      -              "type": "string"
      -            }
      -          },
      -          "required": [
      -            "add"
      -          ],
      -          "type": "object"
      -        },
      -        "type": "array"
      -      },
      -      "randomize": {
      -        "items": {
      -          "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) 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"
      +  }
      +]
  3. First observedv0.1.2

TDQS

B3.2/5.0
Behavior3/5

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

The annotations already disclose that this is not read-only, not destructive, and not idempotent. The description adds that frames are recorded, written to a persistent .npz file, and a few are sampled, but it omits overwrite behavior, runtime cost, and how an open simulation versus a scene is handled.

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?

The description is front-loaded, compact, and free of redundant wording. The example is brief and directly illustrates a valid call.

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 a complex tool with 17 parameters, nested scene recipes, and no output schema. The description does not explain the return value structure or many key parameter interactions, leaving significant gaps despite the rich schema.

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%, with detailed parameter descriptions already present. The description's example argument object uses scene, seconds, names, and out, but it does not add meaning beyond what the schema provides.

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?

The description states a concrete action: run simulated seconds, record frames, save them to an .npz, and sample a few. It is clear what the tool does, though it does not explicitly distinguish itself from siblings such as step or settle.

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?

There is no explicit guidance on when to use this tool versus alternatives, nor any when-not conditions. The example arguments show invocation syntax but do not help the agent select this tool over other simulation-related tools.

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