Skip to main content
Glama

Create motion composition

create_motion_composition

Creates a MOTION COMPOSITION — an animated graphic (infographic, title, promo end-card, chart…) written as a React TSX component. Read the 'motion' skill (read_skill {topic:'motion'}) for the exact API surface, available fonts/icons and golden examples before writing one. files maps file names to TSX source; the entry must export default the component. schema declares the editable props (type string|number|color|boolean|select|mediaRef + default) — they become Inspector controls the user can tweak, so parameterize colors, copy and media slots. The composition is compiled and test-rendered BEFORE saving; on failure the error returns verbatim — fix the code and retry. Returns the mediaRef to place with add_clips. Creative guidance is in read_skill {topic:'motion'}. With UI-like parts (buttons, pills, progress bars, cards), write them in their own file with a partsBoard prop (default false) and look at the board first: preview:true, previewProps:{partsBoard:true} returns one large frame with the reply.

Input Schema

NameRequiredDescriptionDefault
fpsNoComposition fps (default 30).
nameYesDisplay name, e.g. 'Pink promo end card'.
entryNoEntry file (default composition.tsx); must export default.
filesYesFile name → TSX source. Relative imports between them work.
tokenYesThe session token `connect` returned. Pass it on every call — it says which browser to drive.
widthNoComposition width px (default 1920).
heightNoComposition height px (default 1080).
schemaNoEditable props: {key: {type, default, label?, min?, max?, options?, multiline?}}. type mediaRef makes a media-pool slot.
previewNoReturn one large frame (≤1560 px) with the reply. Media is not loaded in a preview: media slots draw empty and the reply says how many.
projectIdYesProject id from get_projects.
previewFrameNoFrame to preview (default 0).
previewPropsNoMerged over the schema defaults for the preview picture only, e.g. {partsBoard:true}. Nothing saved changes.
durationInFramesNoLength in frames (default 150).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Adds substantial behavior beyond annotations: the composition is compiled and test-rendered before saving, failures return the error verbatim, the call returns a mediaRef for use with add_clips, and preview mode does not load media (slots render empty and the count is reported). These are exactly the non-obvious traits an agent needs before invoking.

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, starting with the core definition and then the authoring constraints. There is mild redundancy — the 'motion' skill is pointed to twice (once for API surface, once for creative guidance) — but nearly every sentence carries actionable information.

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

Completeness5/5

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

For a 13-parameter tool with nested objects and no output schema, the description covers the return value (mediaRef), the compile/test-render lifecycle, preview semantics, and the partsBoard pattern. An agent has enough to call it correctly without further exploration.

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 100%, so the baseline is 3, but the description adds real meaning: files maps names to TSX source with working relative imports, entry must `export default`, and schema keys (type string|number|color|boolean|select|mediaRef + default) become tweakable Inspector controls. It pushes the agent toward parameterizing colors, copy and media slots rather than hardcoding.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb (creates) and resource (motion composition), then defines it concretely as an animated graphic authored as a React TSX component with examples (infographic, title, end-card, chart). This clearly distinguishes it from get_motion_composition and update_motion_composition in the sibling list.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives explicit workflow guidance: read the 'motion' skill before writing, use preview:true with previewProps:{partsBoard:true} when the composition has UI-like parts, and retry after fixing compile errors. It lacks an explicit statement on when to use update_motion_composition versus creating a new one, which is the main missing routing cue.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources