Skip to main content
Glama

set_motion

Idempotent

Set motion presets for one element or multiple layers at once, with optional timing and distance overrides; replace existing presets or clear them to revert to the asset's motion.

Instructions

Set an element's motion presets, or several elements' at once with layers: motion: [{ use, at, by? }] (use: a preset from list_motion; at: from the element's start, seconds, "12f" or "1b"; by: how far, replacing the preset's relative distance). It replaces the element's list, and the asset's; [] means no preset motion, null goes back to the asset's.

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

Input Schema

NameRequiredDescriptionDefault
basisNoWhat you read and followed to make this change, as refs from search or lookup: rule:<lint or taste rule>, taste, feedback:<id> (earlier feedback this follows; what it answers goes in feedback), commit:<id> (an earlier change it builds on), asset:, template:, skill:… The person sees them under the change, so they know why it is this way. Name only what shaped it.
layerNoThe element id
layersNoSeveral elements in one change, instead of layer and motion
motionNo
messageNoOne line saying why, kept with the change in the history
feedbackNoIds of the feedback this change answers (notes and marks from list_notes, list_examples or the conversation). When the person keeps the change it joins the record of that feedback, and when they then mark the feedback resolved it is the fix; when they take it back, the feedback opens again.
confidenceNoHow sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.
compositionYesComposition name (file in compositions/ without .json)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changedv0.1.2
    • addedInput schema / properties / confidence
      Added value: +{
      +  "description": "How sure you are this change is what the person wants. high: they asked for exactly this, or you measured it against a reference. medium: you inferred it from the taste, a rule or earlier feedback. low: you are guessing, or it changes something they did not ask about. The person's threshold decides which changes stand by themselves and which wait for them to keep; say it honestly on every change.",
      +  "enum": [
      +    "high",
      +    "medium",
      +    "low"
      +  ]
      +}
    • addedInput schema / properties / layer / description
      Added value: +"The element id"
    • addedInput schema / properties / layers
      Added value: +{
      +  "description": "Several elements in one change, instead of layer and motion",
      +  "items": {
      +    "properties": {
      +      "layer": {
      +        "type": "string"
      +      },
      +      "motion": {
      +        "items": {
      +          "additionalProperties": false,
      +          "properties": {
      +            "at": {
      +              "description": "Seconds (2.5), frames (\"75f\") or beats (\"4b\", needs meta.bpm). Snapped to a whole frame.",
      +              "minimum": 0,
      +              "pattern": "^\\s*\\d+(\\.\\d+)?\\s*[fbs]?\\s*$",
      +              "type": [
      +                "number",
      +                "string"
      +              ]
      +            },
      +            "by": {
      +              "type": "number"
      +            },
      +            "use": {
      +              "type": "string"
      +            }
      +          },
      +          "required": [
      +            "use"
      +          ],
      +          "type": "object"
      +        },
      +        "type": [
      +          "array",
      +          "null"
      +        ]
      +      }
      +    },
      +    "required": [
      +      "layer",
      +      "motion"
      +    ],
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
    • removedInput schema / properties / scene
      Removed value: -{
      -  "type": "string"
      -}
    • changedInput schema / required
      Previous value: -[
      -  "composition",
      -  "scene",
      -  "layer",
      -  "motion"
      -]New value: +[
      +  "composition"
      +]
  2. First observedv0.1.0

TDQS

A3.6/5.0
Behavior4/5

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

Beyond the annotations, the description discloses the key non-obvious behavior: the call replaces the element's whole list and the asset's, `[]` clears preset motion, and `null` falls back to the asset's value. That is exactly the kind of replacement/reset semantics an agent needs. It stops short of saying whether the change is undoable or how it interacts with unmentioned existing presets.

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?

The core action and the batch option are front-loaded, and the reset semantics come last where they belong. The inline explanation of `at` ('seconds, "12f" or "1b"') duplicates the schema's own description word-for-word and could be dropped.

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?

The motion payload and replacement semantics are well covered, which is the heart of the tool. However, 8 parameters include `basis`, `message`, `feedback`, and `confidence`, none of which the description touches even though these shape how the change is recorded and trusted. Output schema absence is a minor factor here.

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 88%, so the schema already carries most parameter meaning, establishing a baseline of 3. The description does add value by explaining `use`, `at`, and `by` in prose and by clarifying that `by` overrides the preset's relative distance, plus the `[]` vs `null` distinction — but the `at` format text largely repeats the schema.

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 gives a specific verb and resource ('Set an element's motion presets') and immediately covers the batch form via `layers`. It also points to `list_motion` as the source of valid `use` values, which helps separate it from the read-only sibling. It never contrasts itself with the sibling named `motion`, so full sibling differentiation is missing.

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?

It implies when to use the singular form vs the `layers` batch form and tells the agent that presets come from `list_motion`. There is no explicit when-not guidance, no mention of prerequisites (e.g. needing an existing asset-level motion set), and no comparison to adjacent mutation tools like `set_keyframe`.

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

Deploy Server

Other Tools