Skip to main content
Glama

Apply a cinematic hero

apply_hero_pattern
Idempotent

Replace a design's hero section with a cinematic pattern: scrub_video (footage advances as the page SCROLLS), pointer_scrub (footage follows the CURSOR), ken_burns (a still with slow pan and zoom) or particle_bg (animated particles). Footage: the user's own upload from the media library (video_url / image_url), free stock, or — scrub_video and pointer_scrub only — a clip made for this business, which SPENDS Creative Credits and plays a free stand-in until it arrives. Call plan_hero_pattern first; send expected_credit_cost (0 for free sources) and a stable idempotency_key. A different price is refused with nothing charged. Recorded in version history; publish for visitors to see it.

Input Schema

NameRequiredDescriptionDefault
densityNoparticle_bg density.
patternYesscrub_video = video driven by SCROLLING; pointer_scrub = video driven by the CURSOR moving across the hero; ken_burns = a still with slow pan and zoom; particle_bg = animated particles, no footage.
site_idYesThe site to act on
chaptersNoUp to 3 text slides for scrub_video / ken_burns / pointer_scrub.
image_urlNoA hi-res image already in the site's media library. Never invent one.
photo_urlNocommission_photo only: the photo the clip opens on. Omit to use the hero image on file.
user_goalNoOptional: the user's goal behind this call, in one short sentence of plain words (e.g. "add a page so customers can book tables"). No names, emails or other personal details.
video_urlNoAn MP4 already in the site's media library (list_site_assets). Never invent one.
accent_colorNoparticle_bg accent, as hex.
image_sourceNoFor ken_burns. uploaded (needs image_url) or stock. Both free.
variation_idNoThe design to work on. Omit for the site's live design.
video_sourceNoFor scrub_video / pointer_scrub. uploaded (needs video_url) and stock are free; commission_photo / commission_description make a clip for this business and cost credits (see plan_hero_pattern).
chapter_titleNoparticle_bg headline.
chapter_eyebrowNo
idempotency_keyYesStable key for this attempt; reuse it on a retry so nothing is charged twice
chapter_subtitleNo
shot_descriptionNoRequired for a commissioned clip: one or two sentences on what is in frame and how the camera moves, from what you know of the business.
expected_credit_costYes0 for free sources; for a commissioned clip, `made_for_you_clip.credits` from plan_hero_pattern

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / user_goal
      Added value: +{
      +  "description": "Optional: the user's goal behind this call, in one short sentence of plain words (e.g. \"add a page so customers can book tables\"). No names, emails or other personal details.",
      +  "type": "string"
      +}
  2. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the credit spend, the free stand-in that plays until a commissioned clip arrives, the price-mismatch refusal with no charge, idempotency-key reuse to avoid double billing, version-history recording, and that publishing is required for visitors to see the result. These are exactly the side effects an agent needs before a mutating, credit-consuming call.

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 dense paragraph that front-loads the pattern taxonomy before the cost/precondition rules, with no filler sentences. The heavy use of capitalization and em-dashes makes it slightly harder to scan than a short bulleted structure would be.

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

Completeness4/5

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

For an 18-parameter mutation with no output schema, the description covers the cost model, idempotency, the plan-then-apply workflow, and the publish step — enough to call it safely. It stops short of describing what the tool returns or how to verify success beyond 'recorded in version history'.

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 89%, so the baseline is 3; the description adds real meaning on top by linking expected_credit_cost to plan_hero_pattern, framing idempotency_key as retry-safety, and clarifying which video_source values are free versus paid. Minor gap: chapters vs chapter_title/eyebrow/subtitle mutual exclusivity is only implied by the schema field notes, not stated here.

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?

Opens with a specific verb+object ('Replace a design's hero section with a cinematic pattern') and then defines each of the four enum values in behavioral terms (scroll-driven, cursor-driven, pan/zoom, particles). This makes the tool unambiguously distinct from the sibling plan_hero_pattern, which only plans.

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?

Explicitly states the prerequisite ('Call plan_hero_pattern first') and the cost/refusal contract (send expected_credit_cost, mismatch is refused with nothing charged). It explains which sources are free vs credit-spending, but never states when NOT to use this tool (e.g. theme-level changes belong to apply_theme or variation work to patch_variation_content).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources