Skip to main content
Glama

synthesize_hooks

Write original hooks derived from verified viral source evidence. Each hook cites one admitted source: verbatim opening, timestamps, observed views with observation time, known-non-ad proof, and a versioned virality receipt whose caveats say views correlate with, not prove, quality. A lexical novelty guard rejects copied source wording; quality stays unmeasured; never padded. idempotency_key is REQUIRED; a replay returns the exact stored terminal, uncharged. Live posture: GET /health hook_synthesis_enabled; evidence and LLM gates also apply. Errors: unauthorized, invalid_request, idempotency_conflict, conflict, rate_limited.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
depthNostandard supports up to 5 hooks; deep supports up to 10.standard
topicYesThe exact subject the original hooks must address.
localeNoExplicit country, dialect, script, and code-switch policy.
api_keyNoAPI key for this call. Omit to fall back to the Authorization: Bearer / X-API-Key request header (streamable-HTTP only), then the VHGENGINE_API_KEY env var (the stdio default). No key resolvable -> unauthorized.
audienceNoOptional intended viewer the hooks are written for.
freshnessNoMaximum source age: any, 7d, 30d, or 90d.any
must_excludeNoConcepts every admitted source must evidence as absent.
must_includeNoExact concepts every admitted source must evidence.
viewer_actionNoOptional desired viewer action.
desired_outcomeNoOptional outcome the video promises.
idempotency_keyNoCaller-chosen replay key (any string, unique per intended effect). A repeat call with the SAME key returns the stored result and is NEVER charged twice; the same key with different arguments is an idempotency_conflict. Omit and every call is a fresh, separately charged operation.
requested_countNoOriginal hooks to write, 1-10; one per distinct source.
requested_formatYesThe single speaking format for both sources and hooks.
problem_or_tensionNoOptional problem or tension the hooks should open.
requested_languageNoRequested language: en, fr, es, ar, or ary.en
allowed_opener_statesNoOpener states this caller accepts. Both public states are accepted by default; transcript_grounded sources carry an explicit caveat.
source_requirements_v2NoPer-platform source quotas; omission prefers all three.
minimum_distinct_sourcesNoMinimum distinct admitted platforms, 1-3.
accepted_source_languagesNoVerified spoken languages eligible as sources.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
hooksNoOne entry per original hook: hook_text, format, mechanism (verified facts plus grounded description), source_evidence (verbatim opening, timestamps, observed views with observation time, known-non-ad proof, versioned virality receipt), transformation (source_mechanism, adaptation, passed novelty_guard), confidence (structural basis, quality unmeasured), caveats.
statusNosucceeded (exact count), partial (fewer, with the deficiency stated), insufficient_evidence, capability_unavailable (this deployment's closed default), or failed. Non-delivery statuses charge nothing.
replayedNotrue when an idempotency_key replayed a stored result, so nothing was charged again. The credits_charged below is what the ORIGINAL call cost.
request_idNoThe commission id, echoed on replay.
cost_receiptNoReservation and charge; the charge never exceeds the reservation.
deficienciesNoWhy anything fell short, per source where attributable. Codes include hook_synthesis_disabled, evidence_capability_unavailable, llm_transport_unconfigured, novelty_guard_rejected, llm_unavailable.
quality_claimNoAlways 'unmeasured' until a measurement instrument ships.
delivered_countNoNumber of delivered hooks; never padded.
requested_countNoThe requested hook count, at most 10.
evidence_receiptNoThe evidence stage's state: delivered, insufficient, not_dispatched, or failed, with the delivered source count and passthrough deficiencies.
replayed_at_chargeNotrue when the replay was detected at the charge boundary rather than up front; either way you are billed exactly once.

TDQS

A4.1/5.0
Behavior5/5

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

With no annotations provided, the description carries the full disclosure burden and does so thoroughly. It reveals that each hook must cite one source with a verbatim opener, timestamps, view observations, known-non-ad proof, and a caveated virality receipt; that copied wording is rejected; that quality is explicitly unmeasured; that hooks are never padded; and that idempotent replays return the stored terminal uncharged. It also lists applicable gates and error types.

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 description front-loads the core purpose, then packs high-value behavioral constraints, idempotency semantics, a health gate, and an error list into a compact block. It is dense but not bloated; the main sentence is long but each clause earns its place.

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?

Given the tool is complex with 19 parameters and no annotations, the description supplies critical context that structured fields alone would not provide: evidence citation requirements, novelty enforcement, replay behavior, gating, and error taxonomy. The output schema covers return shape, but the description could be even stronger by explicitly routing around sibling tools like generate_hooks.

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

Parameters2/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 no parameter meaning beyond what the schema already provides and actually misstates requiredness: it says "idempotency_key is REQUIRED," while the schema marks it optional (default null) and says omitting it creates a fresh charged operation. That contradiction is misleading enough to lower the score below baseline.

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 specific verb and resource: "Write original hooks derived from verified viral source evidence." This clearly distinguishes synthesize_hooks from sibling tools like generate_hooks by emphasizing source-derived, evidence-cited, original hooks with a lexical novelty guard. An agent can tell what this tool does without opening the 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?

The description gives clear operational context: idempotency_key behaves as a replay guard, a live health posture must return hook_synthesis_enabled, and evidence/LLM gates apply before synthesis. It does not explicitly name sibling alternatives or say when not to use this tool, so it stops short of a 5. Still, the usage conditions are concrete enough to guide invocation.

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.

TDQS

A4.1/5.0
Disambiguation5/5

Each tool targets a distinct resource and action, e.g., signup vs. delete_account, create_key vs. revoke_key, generate_hooks vs. score_hook. Even similar tools like generate_hooks and generate_hooks_batch are clearly differentiated by single vs. batch operation.

Naming Consistency5/5

All 32 tools use a consistent verb_noun snake_case pattern (e.g., add_credits, create_checkout, revoke_key, list_outcomes) with no mixing of camelCase or other conventions.

Tool Count4/5

32 tools is slightly above the typical 15-tool range, but the domain is broad (account, keys, webhooks, generation, scoring, jobs, outcomes), and each tool has a specific purpose. No tools seem redundant.

Completeness4/5

The tool surface covers most lifecycle operations: CRUD for accounts/keys/webhooks, generation/scoring with batch and async variants, outcomes reporting, and auxiliary tools. Missing explicit delete for hooks (expire automatically) and some update operations, but no critical gaps.

Resources