Skip to main content
Glama

Estimate memory, step time and wall time of a run before running it

estimate
Read-onlyIdempotent

Predict memory use, step time, and wall time for a planned simulation before running it, so you can size scenes and parallel worlds.

Instructions

Estimate memory, step time and wall time of a run before running it. Example arguments: {"scene": "demo_peg_d12", "worlds": 1024, "seconds": 2.0}

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

Input Schema

NameRequiredDescriptionDefault
sceneYesa 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
measureNotime a short real run instead (compiles)
secondsNosimulated seconds
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.4/5.0
Behavior3/5

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

Annotations already declare read-only, idempotent, non-destructive and closed-world, so safety is covered. The description adds only that the numbers come from estimation rather than execution; it does not mention that the schema's `measure` flag triggers a real compiling run, nor anything about estimate accuracy or cost.

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 states the purpose, followed by a compact example. Nothing is padded, though the example duplicates information already present in the schema and no sentence covers the tricky `measure` mode.

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

Completeness3/5

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

With no output schema, the description names the returned quantities but not their shape, units, or fidelity. For a seven-parameter tool with a mode that actually compiles and runs, the definition is adequate but leaves real gaps an agent would want closed.

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 are already fully documented in structured form. The embedded example arguments show a concrete scene/worlds/seconds call, which is mildly useful but adds no meaning beyond the schema, so the baseline 3 applies.

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?

Names a specific verb (estimate) and three specific quantities (memory, step time, wall time) scoped to 'a run', which is enough to tell it apart from run/step by intent. It stops short of explicitly naming the sibling it replaces, so it is not quite a 5.

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?

'before running it' implies the usage context, i.e. call this ahead of run to learn costs. There is no explicit when-not guidance, no named alternative (run/step), and no statement about when the estimate is unreliable enough to prefer a real run.

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