Skip to main content
Glama

Write the script first

preview_script

Writes the script of a video in about 15 seconds without making it: it uses very few credits. Show the lines to the user, change what they want, then make the video with make_video (script_id + lines). One script at a time; the free trial has 5 unused scripts a day, paid plans 15. The user needs enough usage left for one video. Optional, for this video only (as «This video only» in the app): length_seconds, word_for_word, keep_order, opening, ending, last_line, music, voice_speed, video_language; the script is written with them and make_video keeps them. Waits up to 25 seconds; if it isn't ready yet, call get_script.

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": {
      "idea": "<idea>"
    },
    "name": "preview_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
ideaYesWhat the video is about, in a sentence
factsNoFacts, numbers or the true story it must use
musicNoThe background music, always well below the voice: none, or a mood. Default: HypeFox picks the mood.
salesNoA sales video for a Business project: it ends with the call to action
styleNoA style id from get_catalog (its name works too, e.g. "Editorial"). Default: the project's style.
voiceNoVoice id; default: the project's voice
endingNoThe kind of last line: loop (it leads back into the first line), consiglio (a tip), domanda (a question to the viewer), mandalo (who to send it to). Not in sales videos, which end with their call to action. Default: HypeFox picks one.
keywordNoSales video with DMs: the word people write in a DM or a comment to get the offer in private, with the project's link when it has one (3 to 12 letters or numbers). Default: the project's keyword (sells.keyword)
openingNoThe kind of first line (hook): fatto_forte (Bold fact), numero (Number), contrario (Hot take), mito_verita (Myth vs truth), errore_comune (Common mistake), domanda (Question), storia_in_mezzo (Story), risultato_prima (Result first), prima_dopo (Before & after), pov (POV), e_se (What if), confronto (A vs B), perche_nascosto (Hidden reason), lista (Short list), avviso (Warning), chiamata (Call out). Each style has its own list (the error says it); chiamata only in sales videos. Default: HypeFox picks one.
projectNoProject id or name (optional if the user has one project)
last_lineNoThe user's own last line, said word for word at the end (e.g. «Follow me for part 2»), instead of ending. Not in sales videos.
keep_orderNoThe script tells the user's points in the order they wrote them: no point moved up for the hook or kept for the end.
referencesNoOptional: web pages to take the facts from, and the user's uploaded photos to show in the video
voice_speedNoThe speed of the voice in this video, 0.7 to 1.5 (the usual is 1.1).
word_for_wordNoThis video only: the user's own text is the script, said exactly as written (facts, or idea when there are no facts), up to about a minute (1,300 characters). HypeFox doesn't rewrite it, shorten it or check its facts. Not with length_seconds, keep_order, opening, ending or last_line: the text decides those.
length_secondsNoThis video only: about 15, 30 (the usual), 45 or 60 seconds. It uses about the same credits.
video_languageNoThis video only, without changing the project: English or Italian. The voice must speak it (one of that language's voices, or mia); without voice, the first voice of that language.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / style / description
      Previous value: -"Default: the project's style"New value: +"A style id from get_catalog (its name works too, e.g. \"Editorial\"). Default: the project's style."
    • removedInput schema / properties / style / enum
      Removed value: -[
      -  "scarabocchi",
      -  "acquerello",
      -  "rivista"
      -]
    • addedInput schema / properties / style / maxLength
      Added value: +60
  2. Changed1 schema field changed
    • changedInput schema / properties / style / enum
      Previous value: -[
      -  "scarabocchi",
      -  "acquerello"
      -]New value: +[
      +  "scarabocchi",
      +  "acquerello",
      +  "rivista"
      +]
  3. Changed1 schema field changed
    • changedInput schema / properties / style / enum
      Previous value: -[
      -  "scarabocchi"
      -]New value: +[
      +  "scarabocchi",
      +  "acquerello"
      +]
  4. Changed2 schema fields changed
    • changedInput schema / properties / facts / description
      Previous value: -"Facts, numbers or the true story it must use (required for Maps & Numbers)"New value: +"Facts, numbers or the true story it must use"
    • changedInput schema / properties / style / enum
      Previous value: -[
      -  "icone",
      -  "scarabocchi",
      -  "collage",
      -  "mappe",
      -  "parole"
      -]New value: +[
      +  "scarabocchi"
      +]
  5. Changed1 schema field changed
    • changedInput schema / properties / length_seconds / description
      Previous value: -"This video only: about 15, 30 (the usual), 45 or 60 seconds. It costs the same credits."New value: +"This video only: about 15, 30 (the usual), 45 or 60 seconds. It uses about the same credits."
  6. Changed1 schema field changed
    • addedInput schema / properties / references
      Added value: +{
      +  "description": "Optional: web pages to take the facts from, and the user's uploaded photos to show in the video",
      +  "properties": {
      +    "links": {
      +      "description": "Web pages the script takes its facts from (up to 5)",
      +      "items": {
      +        "maxLength": 500,
      +        "type": "string"
      +      },
      +      "maxItems": 5,
      +      "type": "array"
      +    },
      +    "photos": {
      +      "description": "Photos the user uploaded in HypeFox (keys f/…), shown in the video",
      +      "items": {
      +        "maxLength": 200,
      +        "type": "string"
      +      },
      +      "maxItems": 8,
      +      "type": "array"
      +    }
      +  },
      +  "type": "object"
      +}
  7. Changed9 schema fields changed
    • addedInput schema / properties / ending
      Added value: +{
      +  "description": "The kind of last line: loop (it leads back into the first line), consiglio (a tip), domanda (a question to the viewer), mandalo (who to send it to). Not in sales videos, which end with their call to action. Default: HypeFox picks one.",
      +  "enum": [
      +    "loop",
      +    "consiglio",
      +    "domanda",
      +    "mandalo"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / keep_order
      Added value: +{
      +  "description": "The script tells the user's points in the order they wrote them: no point moved up for the hook or kept for the end.",
      +  "type": "boolean"
      +}
    • addedInput schema / properties / last_line
      Added value: +{
      +  "description": "The user's own last line, said word for word at the end (e.g. «Follow me for part 2»), instead of ending. Not in sales videos.",
      +  "maxLength": 150,
      +  "type": "string"
      +}
    • addedInput schema / properties / length_seconds
      Added value: +{
      +  "anyOf": [
      +    {
      +      "const": 15,
      +      "type": "number"
      +    },
      +    {
      +      "const": 30,
      +      "type": "number"
      +    },
      +    {
      +      "const": 45,
      +      "type": "number"
      +    },
      +    {
      +      "const": 60,
      +      "type": "number"
      +    }
      +  ],
      +  "description": "This video only: about 15, 30 (the usual), 45 or 60 seconds. It costs the same credits."
      +}
    • addedInput schema / properties / music
      Added value: +{
      +  "description": "The background music, always well below the voice: none, or a mood. Default: HypeFox picks the mood.",
      +  "enum": [
      +    "none",
      +    "happy",
      +    "corporate",
      +    "sales",
      +    "emotional",
      +    "calm",
      +    "suspense",
      +    "motivation",
      +    "tech",
      +    "luxury",
      +    "funny",
      +    "travel"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / opening
      Added value: +{
      +  "description": "The kind of first line (hook): fatto_forte (Bold fact), numero (Number), contrario (Hot take), mito_verita (Myth vs truth), errore_comune (Common mistake), domanda (Question), storia_in_mezzo (Story), risultato_prima (Result first), prima_dopo (Before & after), pov (POV), e_se (What if), confronto (A vs B), perche_nascosto (Hidden reason), lista (Short list), avviso (Warning), chiamata (Call out). Each style has its own list (the error says it); chiamata only in sales videos. Default: HypeFox picks one.",
      +  "type": "string"
      +}
    • addedInput schema / properties / video_language
      Added value: +{
      +  "description": "This video only, without changing the project: English or Italian. The voice must speak it (one of that language's voices, or mia); without voice, the first voice of that language.",
      +  "enum": [
      +    "en",
      +    "it"
      +  ],
      +  "type": "string"
      +}
    • addedInput schema / properties / voice_speed
      Added value: +{
      +  "description": "The speed of the voice in this video, 0.7 to 1.5 (the usual is 1.1).",
      +  "maximum": 1.5,
      +  "minimum": 0.7,
      +  "type": "number"
      +}
    • addedInput schema / properties / word_for_word
      Added value: +{
      +  "description": "This video only: the user's own text is the script, said exactly as written (facts, or idea when there are no facts), up to about a minute (1,300 characters). HypeFox doesn't rewrite it, shorten it or check its facts. Not with length_seconds, keep_order, opening, ending or last_line: the text decides those.",
      +  "type": "boolean"
      +}
  8. Changed2 schema fields changed
    • changedInput schema / properties / facts / description
      Previous value: -"Facts, numbers or the true story it must use (required for Maps & Numbers; Pixel Quest only uses these facts)"New value: +"Facts, numbers or the true story it must use (required for Maps & Numbers)"
    • changedInput schema / properties / style / enum
      Previous value: -[
      -  "icone",
      -  "scarabocchi",
      -  "collage",
      -  "mappe",
      -  "pixel",
      -  "parole"
      -]New value: +[
      +  "icone",
      +  "scarabocchi",
      +  "collage",
      +  "mappe",
      +  "parole"
      +]
  9. Changed1 schema field changed
    • changedInput schema / properties / keyword / description
      Previous value: -"Sales video with DMs: the word people write in a DM or a comment to get the offer in private, with the project's link when it has one (3 to 12 letters or numbers)"New value: +"Sales video with DMs: the word people write in a DM or a comment to get the offer in private, with the project's link when it has one (3 to 12 letters or numbers). Default: the project's keyword (sells.keyword)"
  10. Changed2 schema fields changed
    • changedInput schema / properties / facts / description
      Previous value: -"Facts, numbers or the true story it must use (required for Maps & Numbers; Cartoon Storytime only uses these facts)"New value: +"Facts, numbers or the true story it must use (required for Maps & Numbers; Pixel Quest only uses these facts)"
    • changedInput schema / properties / style / enum
      Previous value: -[
      -  "icone",
      -  "scarabocchi",
      -  "cartone",
      -  "collage",
      -  "mappe"
      -]New value: +[
      +  "icone",
      +  "scarabocchi",
      +  "collage",
      +  "mappe",
      +  "pixel",
      +  "parole"
      +]
  11. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Goes well past the annotations: it discloses credit consumption ("very few credits"), quota caps, the 25-second wait and what to do if the script is not ready. It also flags that the video-only options are persisted by make_video, which the annotations (readOnlyHint=false, destructiveHint=false, non-idempotent) do not convey.

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?

Front-loaded with purpose, then workflow, then limits, then the optional-parameter cluster — a sensible order with no filler sentences. The enumerated option list is somewhat redundant against a fully documented schema, which costs it a point.

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?

For a 17-parameter, non-idempotent generation call with no output schema, the description covers everything an agent needs: cost, rate limits, latency and the polling fallback, plus the required handoff to make_video. Nothing material is left for the agent to guess.

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 baseline is 3, and the description adds cross-tool meaning by grouping the "this video only" options and noting that make_video keeps them, which the per-parameter descriptions do not state. The remainder of the listing largely restates parameter names already documented in the schema, so it does not reach full marks.

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 resource ("writes the script of a video") and immediately delimits scope with "without making it", which cleanly separates it from the sibling make_video. An agent knows exactly what it produces and what it does not.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit workflow: preview the script, show lines to the user, edit, then call make_video with script_id + lines. It also states preconditions (usage left for one video), throughput limits (one script at a time; 5/day free, 15 paid) and the alternative path when the call returns early (call get_script).

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