Skip to main content
Glama

Score the hook

analyze_hook
Read-only

Scores short-video script openings, flags slow hooks and weak greetings, and credits strong attention patterns. Returns a 0–10 heuristic score with fixes and can rank multiple hook variants.

Instructions

Check a script's opening the way a scroller meets it: the first line, how long it takes to say, and what's heard in the first few seconds. Flags slow openers (greetings, 'welcome back', 'in this video', 'so today…', name intros, early like/subscribe asks) and credits strong patterns (talking to 'you', a question, a specific number, tension/curiosity words, contrast, starting mid-story). Returns a 0–10 heuristic score with fixes. Pass several hook variants in variants to rank them.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "analyze_hook"
  }
}

Input Schema

NameRequiredDescriptionDefault
wpmNoCustom words per minute (overrides pace). Measure yours with estimate_duration + actual_seconds.
paceNoslow 130 · conversational 150 · energetic 170 (typical Reels/TikTok) · fast 190 words per minute.energetic
pathNoOr a local .txt / .md file. ~ is expanded.
textNoThe script text.
variantsNoAlternative opening lines to score and rank instead of (or as well as) the script.
first_secondsNoHow many opening seconds to show.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already establish readOnlyHint=true, so the safety profile is covered; the description adds real behavioral context on top — that scoring is heuristic, that results include actionable fixes, and that variants are ranked against each other. It does not cover edge cases (e.g., what happens when neither `text` nor `path` is supplied), which keeps it short of a 5.

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?

The opening clause front-loads the core framing ('the way a scroller meets it'), then the second sentence carries the substantive flag/credit lists and the third states the return value and the variants workflow. The vivid framing costs a few words but is not padding; the signal lists are dense and scannable rather than 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?

With no output schema, the description does the needed work by disclosing the 0–10 score plus fixes and the ranking of variants. All six parameters are documented in the schema, and only minor gaps remain: no required parameters are declared, and the description never says what input combination is expected (text vs. path vs. variants-only).

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%, including wpm-overrides-pace semantics, the pace-to-WPM mapping, and the variants max of 20, so the schema already carries parameter meaning. The description reinforces the purpose of `variants` (ranking variants) but adds no syntax or format detail beyond what the schema states — baseline 3.

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 names a specific verb and resource — checking a script's opening hook — and enumerates concrete signals it flags (greetings, 'in this video', early like/subscribe asks) and credits (direct address, questions, numbers, tension, mid-story starts). It also states the output form (0–10 heuristic score with fixes), which separates it from siblings like analyze_pacing or compare_scripts.

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?

Usage is implied rather than stated: the closing line tells the agent to pass several hook variants in `variants` to rank them, which is a clear in-tool workflow. However, there is no explicit when-to-use/when-not framing and no named alternative (e.g., analyze_pacing or compare_scripts) for adjacent tasks, leaving the routing decision to inference.

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