Skip to main content
Glama

Set spatial interpolation

set_spatial_interpolation

Sets spatial interpolation for motion-path keyframes, including linear, bezier, continuous, tangents, and roving, so you can control Position, Anchor Point, and effect-point movement.

Instructions

Spatial (motion path) settings for spatial properties like Position/Anchor Point/effect points: type (linear = straight path, bezier, auto_bezier, continuous), continuous/autoBezier flags, custom in/out tangents (relative [x,y(,z)]), and roving (smooth speed across keys; not allowed on the first/last key).

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": {
      "layer": "<layer>",
      "property": "<property>"
    },
    "name": "set_spatial_interpolation"
  }
}

Input Schema

NameRequiredDescriptionDefault
compNoComposition name, 'Folder/Name' path, or item id. Omit to use the active composition.
keysNoKeyframes to affect: 'all' (default), 'selected', a 1-based index, an array of indexes, {start,end} time range (inclusive, either end optional), or {times:[...]} exact key times.
typeNo
layerYesLayer: 1-based index, layer name, or {id}/{index}/{name}. 'selected' = first selected layer.
rovingNo
propertyYesProperty path, '/'-separated, by display name, matchName or 1-based index. Shortcuts: 'Position', 'Scale', 'Rotation', 'Opacity', 'Anchor Point', 'Source Text', 'Time Remap', 'Audio Levels'. Examples: 'Transform/Position', 'Effects/Gaussian Blur/Blurriness', 'Contents/Rectangle 1/Fill 1/Color', 'Masks/Mask 1/Mask Feather'.
inTangentNoIncoming spatial tangent, relative to the key.
autoBezierNo
continuousNo
outTangentNoOutgoing spatial tangent, relative to the key.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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 openWorldHint=false, so the safety profile is covered. The description adds genuinely useful behavior: the meaning of each type value ('linear = straight path'), that tangents are relative, and the roving first/last-key restriction. It does not say whether existing tangents are overwritten, whether it errors when keyframes are absent, or what happens on non-spatial properties, so the mutation semantics remain partly opaque.

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?

A single dense sentence, but every clause carries information and the core noun (spatial motion-path settings) is front-loaded. Parenthetical asides are used efficiently; nothing is redundant or filler. It reads as compressed reference text rather than rambling 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 with no output schema and 60% schema coverage, the definition covers the distinctive semantics (type meanings, tangent shape, roving rule) that the schema leaves blank. Missing pieces are preconditions and error behavior, which are secondary for an agent that already has structured parameter docs.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60%, and the description compensates for the gaps that matter: it explains what 'linear/bezier/auto_bezier/continuous' mean (the enum has no per-value description in the schema), defines roving as 'smooth speed across keys', and clarifies the tangent tuple format as relative [x,y(,z)]. The remaining parameters (layer, property, keys, comp) are already well documented in the schema, so no value is lost.

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 combination ('Spatial (motion path) settings for spatial properties like Position/Anchor Point/effect points') and enumerates exactly which sub-parameters are touched (type, continuous/autoBezier, tangents, roving). It implicitly partitions the space against the temporal sibling set_keyframe_interpolation by scoping itself to spatial properties, though it never names that sibling.

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?

Usage is implied by the phrase 'spatial properties like Position/Anchor Point/effect points', which tells the agent this is the wrong tool for scalar/opacity-style properties. It also gives one hard eligibility rule ('roving ... not allowed on the first/last key'). However, there is no explicit statement of when to prefer this over set_keyframe_interpolation or set_keyframe_ease, so routing still requires inference.

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