Skip to main content
Glama

motion.detect

Read-onlyIdempotent

Detect and classify motion patterns from web page CSS animations, transitions, and keyframes. Identify performance and accessibility issues with configurable analysis options including external CSS fetching and summary generation.

Instructions

Detect/classify motion patterns from web page. Parses CSS animations, transitions, keyframes. Warns about performance/accessibility issues.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pageIdNoWebPage ID (UUID, from DB)
htmlNoHTML content (direct, max 10MB)
cssNoAdditional CSS content (max 5MB)
includeInlineStylesNoParse inline styles (default: true)
includeStyleSheetsNoParse stylesheets (default: true)
minDurationNoMinimum duration to detect (ms, default: 0)
maxPatternsNoMax patterns to detect (default: 100)
includeWarningsNoInclude warnings (default: true)
min_severityNoMinimum severity level to include in warnings (default: info)info
includeSummaryNoInclude summary (default: true)
verboseNoVerbose mode: include rawCss (default: false)
fetchExternalCssNoFetch external CSS from <link> tags (default: true)
baseUrlNoBase URL for resolving relative CSS paths (required if fetchExternalCss is true)
externalCssOptionsNoOptions for external CSS fetching
save_to_dbNoSave detected patterns to motion_patterns table with embeddings (default: true)
detection_modeNoDetection mode: 'css' (requires html/pageId) for static CSS parsing without browser, 'video' (default, requires url) for visual motion detection with frame capture, 'runtime' (requires url) for JS-driven animations, 'hybrid' (requires url) for CSS+runtime combined.video
urlNoTarget URL for video/runtime/hybrid modes. Required when detection_mode='video', 'runtime', or 'hybrid'.
detect_js_animationsNoEnable JavaScript animation detection via CDP + Web Animations API. Requires Playwright. Default: false (disabled for performance).
timeoutNoOverall timeout in milliseconds (30000-600000, default: 180000 = 3 minutes). On timeout, returns partial results with warnings (graceful degradation).
Behavior2/5

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

Annotations already declare readOnly and idempotent, but description is misleading by only mentioning CSS parsing, while tool supports multiple detection modes (video, runtime, hybrid) and has network dependencies. Missing crucial behavioral traits like graceful degradation on timeout, dependency on Playwright for JS animation detection, and requirement for baseUrl when fetching external CSS. Description does not add value beyond annotations; it contradicts the full scope of the tool.

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?

Two sentences, very concise and front-loaded with main purpose. However, it sacrifices necessary detail for extreme brevity, missing critical behavioral context. Still, structure is efficient.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given tool complexity (19 params, multiple modes, no output schema), description is insufficient. Does not explain detection modes, required inputs (url vs html vs pageId), return format (list of patterns? warnings?), or side effects like saving to DB (save_to_db param). Agent cannot fully understand tool without reading all parameter descriptions.

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 description coverage is 100%, so baseline is 3. Description adds no parameter-level meaning beyond 'CSS animations, transitions, keyframes' which only hints at detection_mode. Does not help agent understand parameter relationships or required inputs for different modes.

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?

Description states 'Detect/classify motion patterns from web page' with specific mention of CSS animations, transitions, keyframes, and warnings. Clearly identifies the action and resource, but does not explicitly distinguish from sibling tools like motion.search, which is implied by different verb.

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 guidance on when to use this tool vs alternatives. Does not mention prerequisites, such as requiring a pageId or URL depending on detection_mode, nor any conditions for using different modes. Agent lacks context for appropriate invocation.

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/TKMD/ReftrixMCP'

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