Skip to main content
Glama

extract_animation_code

Extract CSS rules, JS animation configs, and timing data from a page; reuse an animation inventory to skip re-detection.

Instructions

Extract CSS rules, JS animation configs, and timing data. Returns AnimationCode[] with css, js, and timing data. Pass inventory from discover_animations to skip re-detection.

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": {
      "url": "<url>"
    },
    "name": "extract_animation_code"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesURL of the page to extract from
filterNoFilter by detector names, e.g. ["css", "gsap"]
inventoryNoOptional — pass inventory from discover_animations

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the return shape (AnimationCode[] with css, js, timing) and the performance-relevant detail that a supplied inventory skips re-detection, but says nothing about permissions, whether page scripts are executed, network cost, or failure modes for pages that can't be fetched.

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?

Three short sentences, front-loaded with the verb and outputs, no filler. The second sentence partly repeats the first by re-listing css, js, and timing as the return payload, which is the only redundancy.

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?

No output schema and no annotations, so the description is the sole source of behavioral detail. It does sketch the response type, but 'timing data' is left undefined and there is no explanation of how partial results or detector failures are surfaced, which matters for an extraction tool.

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 url, filter, and inventory. The description's only added meaning is the rationale for inventory ('skip re-detection'), which is close to what the schema property description already states; the string format of filter values is covered by the schema example.

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 and concrete resources: 'Extract CSS rules, JS animation configs, and timing data.' That separates it from inspect_animation or capture_frames, though it never explicitly contrasts the extraction step with those siblings, only naming discover_animations as a data source.

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?

Gives one concrete workflow hint — passing the inventory from discover_animations to skip re-detection — which implies extract follows discovery. It offers no explicit when-not guidance, no statement about whether it can be used standalone on an arbitrary URL, and no mention of the filter parameter's role in narrowing work.

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