Skip to main content
Glama
Hermoso

Hermoso

Official

New opening hooks for a video

hook_variants

Generate multiple new opening hooks for one finished video ad, then render complete versions to A/B test.

Instructions

HOOK MULTIPLIER: give ONE finished video ad N NEW OPENING HOOKS, N complete versions to A/B test. Pass the video's FILE URL (a render, job result, list_library or upload_file). 1-5 versions, default 3. COST: quoteOnly:true returns the exact credits free: state that first. A paid planning read (planCredits) runs next, then each planned version bills like fix_beat for the hook's seconds. dryRun:true pays for that read; pass its plan back to render exactly those. Returns ONE JOB PER VERSION; call get_job on each until done, never describe a version before its URL arrives. Full rules: get_instructions({topic:'hook_variants'}).

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": {
      "video": "<video>"
    },
    "name": "hook_variants"
  }
}

Input Schema

NameRequiredDescriptionDefault
planNothe `plan` object a previous dryRun returned, to render exactly those hooks without planning again
countNohow many hook versions, 1-5 (default 3)
hooksNoyour own openings, one version each
notesNoanything the hooks must respect, e.g. "keep it calm", "show the product in every hook"
videoYesthe finished video to give new hooks: its served file URL
dryRunNotrue = the paid plan and the price, no render
get_costNotrue: return the price only; nothing runs or bills
useBrandNofalse = send no brand name or product photo (for a video that is not this workspace brand’s)
quoteOnlyNotrue = the exact credits, free; nothing runs
resolutionNorender tier for the new opening. Defaults to the source’s OWN tier so the hook matches the rest of the ad; a lower tier costs a lot less and is scaled into the source’s canvas (visibly softer for the first seconds). dryRun quotes whichever you pick.
hookSecondsNowhere the CURRENT hook ends, in seconds (1.5-4). Omit to use the first shot cut.
productImageNoproduct photo URL used as a reference in hooks that show the product (defaults to the workspace brand’s first product photo)
idempotency_keyNochosen once, resent unchanged on retries: the same key never buys twice
expected_creditsNothe get_cost price; refused unbilled if the live price differs

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.674
    • addedInput schema / properties / plan / additionalProperties
      Added value: +{}
    • addedInput schema / properties / plan / properties
      Added value: +{}
    • addedInput schema / properties / plan / type
      Added value: +"object"
  2. Changed3 schema fields changedv0.1.532
    • addedInput schema / properties / expected_credits
      Added value: +{
      +  "description": "the get_cost price; refused unbilled if the live price differs",
      +  "type": "number"
      +}
    • addedInput schema / properties / get_cost
      Added value: +{
      +  "description": "true: return the price only; nothing runs or bills",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / idempotency_key
      Added value: +{
      +  "description": "chosen once, resent unchanged on retries: the same key never buys twice",
      +  "type": "string"
      +}
  3. Changed2 schema fields changedv0.1.489
    • changedInput schema / properties / dryRun / description
      Previous value: -"true = return the plan and the quote, render nothing"New value: +"true = the paid plan and the price, no render"
    • addedInput schema / properties / quoteOnly
      Added value: +{
      +  "description": "true = the exact credits, free; nothing runs",
      +  "type": "boolean"
      +}
  4. Changed3 schema fields changedv0.1.465
    • addedInput schema / properties / hooks / items / properties / mechanic / description
      Added value: +"a named hook mechanic id from list_hooks"
    • addedInput schema / properties / hooks / items / properties / prompt / description
      Added value: +"an opening described in words"
    • addedInput schema / properties / hooks / items / properties / url / description
      Added value: +"viral hook to join in front: a post link or a video file"
  5. Changed1 schema field changedv0.1.285
    • addedInput schema / properties / hooks
      Added value: +{
      +  "description": "your own openings, one version each",
      +  "items": {
      +    "properties": {
      +      "cutAt": {
      +        "description": "url: override the found payoff cut",
      +        "type": "number"
      +      },
      +      "mechanic": {
      +        "type": "string"
      +      },
      +      "prompt": {
      +        "type": "string"
      +      },
      +      "start": {
      +        "description": "url: skip the video’s own first seconds",
      +        "type": "number"
      +      },
      +      "url": {
      +        "type": "string"
      +      }
      +    },
      +    "type": "object"
      +  },
      +  "type": "array"
      +}
  6. Addedv0.1.272

TDQS

A4.5/5.0
Behavior5/5

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

Annotations only declare the generic safety profile (readOnlyHint=false, destructiveHint=false, openWorldHint=true), so the description carries the real burden and does: it discloses the two-stage billing model, that dryRun:true actually costs money, that each version bills like fix_beat for the hook's seconds, that one job per version is returned and must be polled via get_job, and that no version may be described before its URL arrives.

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 dense but front-loaded: the multiplier purpose and the file-URL requirement come first, then cost, then the job/polling contract, then the pointer to get_instructions. A few clauses are compressed to the point of being cryptic ('dryRun:true pays for that read'), but no sentence is redundant.

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?

This is a 14-parameter, nested-object, credit-spending tool with no output schema, so the description has to explain lifecycle and cost, and it does: quote, plan, render, poll. The remaining parameters (resolution, hookSeconds, notes, useBrand, productImage, expected_credits) are left entirely to the schema, which is acceptable given full schema coverage but leaves the description one step short of fully self-contained.

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 schema already documents all 14 parameters and the baseline is 3. The description adds genuine meaning on top by explaining the cost-control parameters in workflow terms (quoteOnly is free, dryRun pays for the plan and returns a `plan` that can be passed back to render exactly those hooks), which the schema alone does not convey.

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?

The description opens with a concrete verb and resource: 'give ONE finished video ad N NEW OPENING HOOKS, N complete versions to A/B test.' That distinguishes it cleanly from siblings like fix_beat (repair a single beat) and headline_variants (text rather than opening video), so an agent can route without opening any schema.

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?

It states the required input source explicitly ('the video's FILE URL (a render, job result, list_library or upload_file)') and prescribes an ordering: quoteOnly:true first, then a paid planning read, then rendering. It stops short of naming a sibling the agent should choose instead for non-hook edits, so there is no explicit when-not guidance, but the operating context is clear.

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

Deploy Server

Other Tools