Skip to main content
Glama

MotionSpec — verified web motion (reduced-motion / WCAG)

Compile a MotionSpec to GSAP/CSS

motion_compile
Read-only

Requires a Dev Key ($39) or Agency plan ($249/mo) on the hosted endpoint (motionspec.dev/pricing); runs locally for free with 'npx -p motionspec motion compile <spec.json>' (MIT). Validates (fail-closed) and deterministically compiles a MotionSpec into production-ready vanilla-GSAP JavaScript and CSS, with enforced prefers-reduced-motion fallbacks and a performance-budget report. Same spec always yields identical code. Returns {ok, js, css, report} or {ok:false, errors}.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
specNoThe MotionSpec JSON object
specNameNoOptional name used in the artifact header

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Added

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnly/openWorld annotations, it discloses determinism, fail-closed validation, reduced-motion enforcement, performance reporting, and the exact return shape ({ok, js, css, report} or {ok:false, errors}). No annotation contradiction exists.

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?

Four dense sentences contain no filler, and the critical operational constraints (cost/local option, validation, output) are each conveyed once. The return contract is compactly and clearly stated.

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 deterministic compiler tool, the description covers prerequisites, local alternative, validation semantics, output artifacts, and error form even without an output schema. An agent has enough to select and invoke it correctly.

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%, so the schema already documents spec and specName. The description does not add parameter-level detail beyond the schema, which is acceptable but not value-adding; the baseline of 3 applies.

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 names a concrete action (deterministically compiles) and resource (MotionSpec) with a specific output (vanilla-GSAP JavaScript and CSS). It clearly differs from sibling tools like motion_validate or motion_audit by stating it produces code, not just validation or analysis.

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 gives explicit prerequisites (hosted Dev Key/Agency plan vs free local npx command) and states fail-closed behavior, which tells an agent when the compile will fail. It does not explicitly name sibling alternatives or say when to prefer motion_validate/audit, so it stops short of full routing guidance.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct phase in the motion-spec workflow: auditing a live URL, browsing the primitive catalog, validating a spec, compiling it, and viewing telemetry. The only potential overlap is that compile also validates, but the descriptions clearly separate validation as a pre-check and compile as the code-generation step.

Naming Consistency4/5

All tools share the consistent 'motion_' prefix, making the family instantly recognizable. The second part mixes verbs (audit, compile, validate) with nouns (catalog, stats), which is a minor deviation from a strict verb_noun pattern but still predictable and easy to navigate.

Tool Count5/5

Five tools is a well-scoped set for a domain focused on authoring, validating, compiling, auditing, and monitoring motion specs. Each tool earns its place and the count is squarely in the ideal range for a cohesive server.

Completeness4/5

The core lifecycle is covered: discover primitives, validate, compile, audit external sites, and review telemetry. The main gap is runtime-motion auditing, which is explicitly deferred to V2, and there is no tool for managing/deploying compiled specs, but these are minor and don't block the primary workflow.