Skip to main content
Glama

generate_motion_snippet

Generate ready-to-paste motion snippets by animation category and design style, with engine choice, CDN link, usage hints, and reduced-motion guards.

Instructions

Generate a ready-to-paste anime.js v3 animation snippet for a given motion category and design style. Returns CDN link, code snippet, usage hint, and reduced-motion note. Categories: entrance, micro, stagger, scroll, loader, transition, counter, typewriter. All snippets include prefers-reduced-motion guards.

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": {
      "category": "<category>",
      "style": "<style>"
    },
    "name": "generate_motion_snippet"
  }
}

Input Schema

NameRequiredDescriptionDefault
styleYesDesign system (e.g. glass, neo-brutalism, claymorphism, material, minimal, etc.). Adjusts easing and duration to match the system's motion character.
engineNoAnimation engine to use. Defaults to motion.dev.
categoryYesAnimation category: entrance=page load, micro=button/chip interactions, stagger=list/grid reveal, scroll=IntersectionObserver-triggered, loader=spinner, transition=page transitions, counter=number counters, typewriter=text reveal
frameworkNoTarget framework (used by motion.dev engine). Defaults to react.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv3.0.1
    • addedInput schema / properties / engine
      Added value: +{
      +  "description": "Animation engine to use. Defaults to motion.dev.",
      +  "enum": [
      +    "animejs",
      +    "motion.dev"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / framework
      Added value: +{
      +  "description": "Target framework (used by motion.dev engine). Defaults to react.",
      +  "enum": [
      +    "html",
      +    "react",
      +    "vue"
      +  ],
      +  "type": "string"
      +}
  2. First observedv2.0.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full disclosure burden and does well: it states exactly what is returned (CDN link, code snippet, usage hint, reduced-motion note) and that prefers-reduced-motion guards are always included. It omits how engine/framework defaults affect the output, so the agent cannot predict which engine a call will use.

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?

Four short sentences, front-loaded with the core action and followed by return contents. The category enumeration duplicates the schema enum and is the one sentence that doesn't fully earn its place.

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?

No output schema exists, and the description compensates by describing the return payload and the reduced-motion guarantee. For a simple four-parameter generator this is nearly sufficient; only the engine/framework interaction with the output format is left unexplained.

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 100% with three enums, so the schema already defines categories, engine, and framework — the description's category list is largely redundant. It adds no meaning for the engine and framework parameters, and calling the output "anime.js v3" while engine defaults to motion.dev muddies rather than clarifies parameter behavior.

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?

A specific verb+resource ("Generate a ready-to-paste anime.js v3 animation snippet") plus the two dimensions it varies over (motion category, design style). It doesn't distinguish itself from generation siblings like generate_8state_component or generate_template, and the "anime.js v3" framing sits awkwardly beside an engine parameter that defaults to motion.dev.

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 names the categories and implies usage for motion/animation needs, but gives no explicit when-to-use vs when-not guidance and never routes the agent away from any alternative tool. Usage is only implied by the resource type.

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