Skip to main content
Glama

build_gsap_stub

Read-onlyIdempotent

Generate a runnable GSAP + ScrollTrigger timeline stub from provided scroll census and optional pose-grid JSON, turning captured motion evidence into code without page fetches.

Instructions

Generate a runnable GSAP+ScrollTrigger timeline stub from captured motion evidence (scroll census anims + optional synthesized camera anchors from a pose grid) — pure build from provided JSON, no page fetches

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": {
      "scrollCensus": "<scrollCensus>"
    },
    "name": "build_gsap_stub"
  }
}

Input Schema

NameRequiredDescriptionDefault
poseGridNoPoseGrid JSON from capture_pose_3d (adds a synthesized scroll-driven camera module — guidance, not recovered camera data)
scrollCensusYesFull ScrollCensus JSON from analyze_scroll_map (anims[] + gsapTriggers[] required; compact output is rejected)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv1.17.0
    • changedInput schema / properties / poseGrid / description
      Previous value: -"PoseGrid JSON from capture_pose_3d (adds scroll-driven camera module)"New value: +"PoseGrid JSON from capture_pose_3d (adds a synthesized scroll-driven camera module — guidance, not recovered camera data)"
  2. Changed1 schema field changedv1.16.1
    • changedInput schema / properties / scrollCensus / description
      Previous value: -"ScrollCensus JSON from analyze_scroll_map"New value: +"Full ScrollCensus JSON from analyze_scroll_map (anims[] + gsapTriggers[] required; compact output is rejected)"
  3. Changed1 schema field changedv1.14.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  4. Changed2 schema fields changedv1.13.0
    • removedInput schema / additionalProperties
      Removed value: -false
    • addedInput schema / required
      Added value: +[
      +  "scrollCensus"
      +]
  5. Addedv1.11.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive and closed-world, so the safety profile is covered. The description adds genuinely new behavioral context: the build is deterministic from supplied JSON and performs no page fetches, and the output is described as runnable rather than analytical. It stops short of noting whether existing output files are overwritten.

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?

It is a single sentence with the verb and output front-loaded before the parenthetical input detail. The nested parentheses and em-dash tail make it slightly dense, but no sentence is wasted.

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 two-parameter, closed-world build tool with no output schema, the description supplies what an agent needs: what is produced (a runnable timeline stub), what feeds it, and that no network activity occurs. The only remaining details, such as file destinations, are not required to select the tool 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 description coverage is 100%, so both parameters are already fully documented with their provenance (ScrollCensus from analyze_scroll_map, PoseGrid from capture_pose_3d). The description restates that scroll census anims are the core input and pose grid supplies a synthesized camera anchor, adding framing but no syntax or format detail beyond the schema. Baseline 3 applies.

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 names a specific verb ("Generate") and resource ("runnable GSAP+ScrollTrigger timeline stub") and pins the two input sources: scroll census anims plus an optional synthesized camera module from a pose grid. It distinguishes itself from the analysis tools (analyze_scroll_map, capture_pose_3d) that produce those inputs, but does not explicitly separate it from the other build_* siblings such as build_pose_stub or build_scene_stub.

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?

"Pure build from provided JSON, no page fetches" tells the agent this is an offline transformation step rather than a capture, which is a real selection cue. The prerequisite chain (analyze_scroll_map / capture_pose_3d must run first) is implied by naming those artifacts, though no explicit when-not or alternative routing to the sibling builders is given.

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