Skip to main content
Glama
dha-aa
by dha-aa

Set Keyframes

set_keyframes
DestructiveIdempotent

Replace all keys on a property (merge: keep keys at other times; replaced: old keys removed). Path properties (ADBE Mask Shape, ADBE Vector Shape) take a shape spec as v; keep the vertex count the same across keys for clean morphs.

Instructions

Replace all keys on a property (merge: keep keys at other times; replaced: old keys removed). Path properties (ADBE Mask Shape, ADBE Vector Shape) take a shape spec as v; keep the vertex count the same across keys for clean morphs. interp spring/bounce springs the segment to the next key (works on any property). Fails if another expression is active. Returns the keys as set.

Input Schema

NameRequiredDescriptionDefault
keysYes
pathYes
mergeNo
layer_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.23.0
    • changedInput schema / properties / keys / items / properties / ease_in / anyOf
      Previous value: -[
      -  {
      -    "const": "easy",
      -    "type": "string"
      -  },
      -  {
      -    "properties": {
      -      "influence": {
      -        "default": 33.33,
      -        "type": "number"
      -      },
      -      "speed": {
      -        "default": 0,
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "const": "easy"
      +  },
      +  {
      +    "properties": {
      +      "influence": {
      +        "default": 33.33,
      +        "type": "number"
      +      },
      +      "speed": {
      +        "default": 0,
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / keys / items / properties / ease_out / anyOf
      Previous value: -[
      -  {
      -    "const": "easy",
      -    "type": "string"
      -  },
      -  {
      -    "properties": {
      -      "influence": {
      -        "default": 33.33,
      -        "type": "number"
      -      },
      -      "speed": {
      -        "default": 0,
      -        "type": "number"
      -      }
      -    },
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "const": "easy"
      +  },
      +  {
      +    "properties": {
      +      "influence": {
      +        "default": 33.33,
      +        "type": "number"
      +      },
      +      "speed": {
      +        "default": 0,
      +        "type": "number"
      +      }
      +    },
      +    "type": "object"
      +  }
      +]
    • changedInput schema / properties / keys / items / properties / v / anyOf
      Previous value: -[
      -  {
      -    "type": "number"
      -  },
      -  {
      -    "type": "string"
      -  },
      -  {
      -    "type": "boolean"
      -  },
      -  {
      -    "items": {
      -      "type": "number"
      -    },
      -    "type": "array"
      -  },
      -  {
      -    "additionalProperties": {},
      -    "type": "object"
      -  }
      -]New value: +[
      +  {
      +    "type": [
      +      "number",
      +      "string",
      +      "boolean",
      +      "object"
      +    ]
      +  },
      +  {
      +    "items": {
      +      "type": "number"
      +    },
      +    "type": "array"
      +  }
      +]
  2. First observedv2.22.0

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations: it discloses exactly what destruction occurs ('replaced: old keys removed') versus what is preserved ('merge: keep keys at other times'), states the precondition 'Fails if another expression is active', and describes the return value ('Returns the keys as set'). The shape-morph constraint (keep vertex count consistent across keys) is operationally important behavior an agent could not infer from the schema.

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?

Dense but front-loaded: the replacement semantics come first, then property-type caveats, then the failure condition, then the return value. Every clause carries information, though the shape-spec sentence is crammed into the middle without visual separation and the abbreviation 'as v' assumes schema familiarity.

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 destructive, 4-parameter mutation with no output schema and no schema descriptions, the description covers mode semantics, destruction scope, a failure precondition, and the return value. The remaining gap is parameter addressing (layer_id and the path identifier format), which an agent needs in order to actually invoke it.

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 0%, so the description must carry the load. It explains the merge flag's semantics, what v means for path properties, and the spring/bounce interp values — but it says nothing about layer_id, the path parameter's string-vs-array addressing form, or the meaning of t. Partial compensation only.

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 ('Replace all keys on a property') and immediately clarifies the two write modes (merge vs. replaced). It is clearly distinct from get_keyframes, but it never names or contrasts with the obvious sibling edit_keyframes, so the agent must infer the boundary.

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?

The merge/replaced parenthetical gives real guidance on mode selection, and 'interp spring/bounce ... works on any property' scopes a feature. However, there is no explicit when-to-use versus edit_keyframes, no mention of prerequisites such as locking or selection, and the failure condition is stated only incidentally.

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