Skip to main content
Glama

build_motion_manifest

Read-onlyIdempotent

Builds a motion.manifest.json scaffold from analyzed page bands and scroll census data, mapping sections to animation triggers so you can verify motion evidence offline.

Instructions

Build a motion.manifest.json scaffold from measured evidence: an analyze_page_structure result (bands) + an analyze_scroll_map census, with optional section overrides. Sections are mapped best-effort from each band's tag + first #id/.class token in its label (or sections[].selector) — no markup is available, so DOM initial-state hints are empty; census triggers still attribute to sections by those tokens. Returns { manifest, measured:false, censusAnims, warnings, note }; manifest.measured stays false when the census has no anims/triggers/curves. Never throws ({ error } on invalid input). Pure/offline — 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": {
      "bands": "<bands>",
      "scrollCensus": "<scrollCensus>"
    },
    "name": "build_motion_manifest"
  }
}

Input Schema

NameRequiredDescriptionDefault
bandsYesanalyze_page_structure result object (must carry bands[])
sectionsNoOptional section overrides in build order; selector supplies the #id/.class tokens instead of the band label
scrollCensusYesanalyze_scroll_map result object (anims[] + gsapTriggers[] required)

Schema Changelog

Changes observed during successful MCP inspections.

  1. 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"
  2. Addedv1.13.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/offline, so the safety profile is covered. The description adds genuinely useful context beyond that: it never throws but returns { error }, when manifest.measured stays false, and that any mapping is best-effort with empty DOM hints — behavior an agent could not infer from annotations or schema.

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?

Content is front-loaded — artifact, inputs, then behavior — and every clause carries information (token derivation, return shape, error contract, purity). The middle sentence is dense and multi-clause, but no sentence is filler.

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?

With no output schema, the description explicitly enumerates the return fields (manifest, measured, censusAnims, warnings, note) and the error contract. For a 3-parameter offline transform tool, inputs, processing semantics, output shape, and failure mode are all covered.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: it explains how sections[].selector substitutes #id/.class tokens for a band label and that census triggers attribute by those tokens. That semantic detail about token derivation goes beyond the schema's field descriptions.

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?

States a specific verb and artifact ('Build a motion.manifest.json scaffold') plus its exact evidence inputs: analyze_page_structure bands and an analyze_scroll_map census. This clearly distinguishes it from the sibling analyzers whose output it consumes.

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?

The description makes the preconditions explicit by naming the two prerequisite tool results and noting optional section overrides, which tells an agent when this tool is applicable. It stops short of saying when NOT to use it or naming an alternative path, so it is clear context but not full routing guidance.

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