Skip to main content
Glama

extract_motion_physics

Extracts CSS transitions, cubic-bezier curves, and @keyframes, then solves physical spring parameters like stiffness, damping, mass, and settling time for motion design.

Instructions

Extract CSS transitions, cubic-bezier curves, and @keyframes, solving physical spring parameters (stiffness, damping, mass, settlingTimeMs).

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": {
      "markup": "<markup>"
    },
    "name": "extract_motion_physics"
  }
}

Input Schema

NameRequiredDescriptionDefault
cssNo
markupYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3/5.0
Behavior3/5

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

No annotations exist, so the description carries full behavioral burden. It does disclose a non-obvious behavior — that it infers physical spring parameters (stiffness, damping, mass, settlingTimeMs) from the extracted motion — but says nothing about input parsing expectations, failure modes, or how markup and css are combined.

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?

A single front-loaded sentence with no filler; every clause contributes extracted artifacts or derived values. The trailing parenthetical of solved parameters is compact and informative rather than padding.

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 no output schema and no annotations, the description partially covers return values by naming what is extracted and solved, but leaves both input parameters and invocation context undefined. For a tool with two undocumented parameters, this is adequate but incomplete.

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% for two parameters, so the description must compensate and does not. It never explains that markup is the required HTML source or that css is an optional supplemental stylesheet, leaving the distinction between the two inputs entirely unexplained.

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?

States a specific verb ("Extract") with concrete resources: CSS transitions, cubic-bezier curves, and @keyframes, plus the derived output (solved spring parameters). This distinguishes it from sibling tools like extract_design_tokens or decompose_layout_skeleton, though the description never explicitly contrasts them.

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

Usage Guidelines2/5

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

No when-to-use guidance, no prerequisites, and no named alternatives. An agent cannot tell from the description whether this should be run on raw markup only, when to supply the css parameter, or when to prefer a sibling extraction tool.

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