Skip to main content
Glama

AI 代理人任務中樞

產生 CSS @keyframes 動畫

motion__generate_keyframes
Read-onlyIdempotent

[網頁動畫工具箱]產生 CSS @keyframes 動畫(含減少動態模式)。preset:fadeIn,fadeInUp,fadeInDown,slideInLeft,slideInRight,zoomIn,pulse,bounce,shake,spin,float,heartbeat,flipIn,blurIn,typing

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": {
      "preset": "<preset>"
    },
    "name": "motion__generate_keyframes"
  }
}

Input Schema

NameRequiredDescriptionDefault
delayNo
easingNo
presetYes
durationNo
iterationsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=true, so safety and side-effect behavior are covered. The description adds that the output includes a reduced-motion variant, which is genuine behavioral context beyond the annotations. It still omits the return shape, any default values, and how duration/delay units are interpreted.

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?

The purpose is front-loaded in one compact clause, followed by a dependency-bearing preset enumeration, so nothing feels padded. The long preset list costs some density but earns its place given the schema contains no enum, making it the only reliable source of valid values.

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?

With five parameters at 0% schema coverage and no output schema, the description should explain units and defaults for duration, delay, easing, and iterations. It fully documents the required preset parameter and the reduced-motion behavior, but the remaining numeric and string options remain opaque, leaving the agent guessing on unit conventions.

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

Parameters2/5

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

Schema description coverage is 0%, so the description carries the full burden and only partially meets it: it enumerates all valid preset values (the required parameter), which the schema does not. The other four parameters — duration, delay, easing, iterations — get no meaning, units, or format guidance at all, and iterations is typed as a string with no example such as 'infinite'.

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?

The description states a specific verb and artifact: generating CSS @keyframes animations, with the tags '[網頁動畫工具箱]' and '含減少動態模式' clarifying the domain and the reduced-motion output. An agent can tell this is the keyframe producer rather than a tool like generate_easing or spring_to_css_linear, though it never explicitly contrasts itself with those siblings.

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 toolbox label and the 'CSS @keyframes' framing, so the agent can infer this is for producing keyframe animation code. However, there is no explicit when-to-use, when-not-to-use, or pointer to alternatives such as generate_easing for easing curves or spring_to_css_linear for spring physics, leaving routing to inference.

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.