Skip to main content
Glama

Create & preview an animation

create_animation

Turn text descriptions into self-contained animated SVGs with embedded CSS animations, preview directly in your browser.

Instructions

Render a self-contained animated SVG in the local preview UI and open it in the browser. First compose the scene as a layered SVG with an explicit viewBox, then animate it with CSS @keyframes (or SMIL) embedded in the SVG, using natural easing. Call get_best_practices (optionally with a style) first if you need the full guidance. Pass the same style you designed for so it is recorded and shown. The svg argument must be a complete ... document that animates on its own with no external assets or scripts.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
svgYesA complete, self-contained animated <svg>...</svg> document with an explicit viewBox and embedded CSS @keyframes/SMIL animations. No external fonts, images, or scripts.
loopNoWhether the animation loops.
openNoOpen (or focus) the preview UI in the default browser.
styleNoThe visual style this animation was designed in (preset key or freeform phrase), e.g. "minimal-modern".
titleYesShort human-readable title for the animation.
promptYesThe original human-readable request this animation depicts.
durationSecondsNoApproximate length of one cycle of the animation, in seconds.
Behavior3/5

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

No annotations provided, so description carries full burden. It describes rendering and opening in browser, and emphasizes that the SVG must be self-contained. However, it lacks details on side effects like whether it replaces previous previews or opens a new tab, and does not mention error handling or state changes.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise with 5 sentences, each adding value: purpose, composition guidance, preliminary step recommendation, style recording note, and SVG requirement. No wasted words.

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?

Given complexity (7 params, no output schema), description explains input requirements and workflow well. However, it does not mention what the tool returns (e.g., success status, animation ID), which is a gap since no output schema is provided.

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 baseline is 3. The description adds meaning beyond schema by specifying that 'svg' must be a complete document with viewBox and embedded animations, and that 'style' should match the designed style for recording. This adds value for key parameters.

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?

The description clearly states the tool renders an animated SVG in a local preview UI and opens it in the browser. It distinguishes from siblings by mentioning get_best_practices as a preliminary step, implying this is for creation rather than editing.

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?

It recommends calling get_best_practices first for full guidance, which provides context for when to use this tool. It does not explicitly state when not to use it, but the context against siblings like apply_edit is clear.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tom-pettit/text2animate'

If you have feedback or need assistance with the MCP directory API, please join our Discord server