Skip to main content
Glama

PrePublish - YouTube script QA

Audit a YouTube script before recording

audit_script

Run Prepublish's full audit on a YouTube script the user has already written. Returns hook, structure and pacing scores, a script-level attention-risk map naming the passages most likely to lose viewers, and a copy-paste rewrite for each flagged passage. Choose this when the user has a finished or near-finished draft and wants to know what is weak before they record. Do not use it to generate a script, to review a published video, or to check grammar. An email is optional: the result comes back in the conversation either way. This is a text-only check of an unrecorded script. It maps relative attention risk inside the draft. It does not measure or predict published YouTube retention, and it cannot account for delivery, editing, thumbnail, topic or distribution.

Input Schema

NameRequiredDescriptionDefault
emailNoOptional. Only when the user gave an address and wants the result link by email: Prepublish stores it with the audit, emails the result link to it, and may send a short series of follow-up emails about the audit that include an unsubscribe link. Leave it out otherwise; the audit runs without it. Never invent an address. When the caller is authenticated with a Prepublish API key the account address is used, so do not ask for one in that case.
audienceNoTarget audience, only if the user said it.
categoryNoVideo category, only if the user said it.
script_textYesThe script text as the user wrote it. Paste it verbatim; do not rewrite, summarise or clean it first.
video_titleYesThe title the user plans to publish under. The audit checks whether the script delivers this promise.
video_duration_secondsNoIntended runtime in seconds, only if the user stated one. Used for pacing; never assumed.

Output Schema

NameRequiredDescriptionDefault
noticeYesThe scope limit that accompanies every Prepublish result. Repeat it to the user rather than dropping it.
statusNoPresent only when the audit had not settled inside this call; the value is "running".
analysisNoThe settled audit: status (and error_message when it failed), video_title, overall_score with hook_score, structure_score and pacing_score, ready_to_record, one_key_improvement, score_explanations, the attention_map (position_pct, hold_index, note, sentiment), the improvements in priority order (priority, category, title and, for the passages on this plan, location, original_quote, improved and why; a locked passage outside ChatGPT carries only priority, category and title, and which line it points to comes with the unlock), locked_count, and policy_preflight. The script text itself and internal bookkeeping are not included. Absent while the audit is still running.
next_stepNoPresent only when the audit is still running: what to do to collect it.
unlock_urlNoPresent only when part of this result is locked on the caller's plan: where the user pays to unlock it. Absent when nothing is locked.
analysis_idYesPrepublish id for this audit. Pass it to get_audit to re-read the result later.
unlock_offerNoPresent with unlock_url: the one sentence to relay when offering it.
open_in_browserYesPermalink to the same audit on prepublish.ai.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / properties / analysis / description
      Previous value: -"The settled audit: status (and error_message when it failed), video_title, overall_score with hook_score, structure_score and pacing_score, ready_to_record, one_key_improvement, score_explanations, the attention_map (position_pct, hold_index, note, sentiment), the improvements in priority order (priority, category, title, location, original_quote and, for the passages on this plan, improved and why), locked_count, and policy_preflight. The script text itself and internal bookkeeping are not included. Absent while the audit is still running."New value: +"The settled audit: status (and error_message when it failed), video_title, overall_score with hook_score, structure_score and pacing_score, ready_to_record, one_key_improvement, score_explanations, the attention_map (position_pct, hold_index, note, sentiment), the improvements in priority order (priority, category, title and, for the passages on this plan, location, original_quote, improved and why; a locked passage outside ChatGPT carries only priority, category and title, and which line it points to comes with the unlock), locked_count, and policy_preflight. The script text itself and internal bookkeeping are not included. Absent while the audit is still running."
  2. Changed2 schema fields changed
    • addedOutput schema / properties / unlock_offer
      Added value: +{
      +  "description": "Present with unlock_url: the one sentence to relay when offering it.",
      +  "type": "string"
      +}
    • addedOutput schema / properties / unlock_url
      Added value: +{
      +  "description": "Present only when part of this result is locked on the caller's plan: where the user pays to unlock it. Absent when nothing is locked.",
      +  "type": "string"
      +}
  3. Changed2 schema fields changed
    • addedInput schema / properties / audience / maxLength
      Added value: +500
    • addedInput schema / properties / category / maxLength
      Added value: +500
  4. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"Where the free result is sent. Prepublish stores this address with the audit, emails the result link to it, and may send a short series of follow-up emails about the audit that include an unsubscribe link. Required for every anonymous audit: the backend rejects the request without it. Ask the user; never invent it. When the caller is authenticated with a Prepublish API key the result comes back in the conversation instead, so do not ask for an address in that case."New value: +"Optional. Only when the user gave an address and wants the result link by email: Prepublish stores it with the audit, emails the result link to it, and may send a short series of follow-up emails about the audit that include an unsubscribe link. Leave it out otherwise; the audit runs without it. Never invent an address. When the caller is authenticated with a Prepublish API key the account address is used, so do not ask for one in that case."
  5. Changed2 schema fields changed
    • changedInput schema / properties / email / description
      Previous value: -"Where the free result is sent. Required for every anonymous audit: the backend rejects the request without it. Ask the user; never invent it. When the caller is authenticated with a Prepublish API key the result comes back in the conversation instead, so do not ask for an address in that case."New value: +"Where the free result is sent. Prepublish stores this address with the audit, emails the result link to it, and may send a short series of follow-up emails about the audit that include an unsubscribe link. Required for every anonymous audit: the backend rejects the request without it. Ask the user; never invent it. When the caller is authenticated with a Prepublish API key the result comes back in the conversation instead, so do not ask for an address in that case."
    • changedOutput schema / properties / analysis / description
      Previous value: -"The settled audit as Prepublish returned it: status, overall, hook, structure and pacing scores, the attention-risk map, improvements and, where the plan allows, rewrites. Absent while the audit is still running."New value: +"The settled audit: status (and error_message when it failed), video_title, overall_score with hook_score, structure_score and pacing_score, ready_to_record, one_key_improvement, score_explanations, the attention_map (position_pct, hold_index, note, sentiment), the improvements in priority order (priority, category, title, location, original_quote and, for the passages on this plan, improved and why), locked_count, and policy_preflight. The script text itself and internal bookkeeping are not included. Absent while the audit is still running."
  6. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "analysis": {
      +      "description": "The settled audit as Prepublish returned it: status, overall, hook, structure and pacing scores, the attention-risk map, improvements and, where the plan allows, rewrites. Absent while the audit is still running.",
      +      "type": "object"
      +    },
      +    "analysis_id": {
      +      "description": "Prepublish id for this audit. Pass it to get_audit to re-read the result later.",
      +      "type": "string"
      +    },
      +    "next_step": {
      +      "description": "Present only when the audit is still running: what to do to collect it.",
      +      "type": "string"
      +    },
      +    "notice": {
      +      "description": "The scope limit that accompanies every Prepublish result. Repeat it to the user rather than dropping it.",
      +      "type": "string"
      +    },
      +    "open_in_browser": {
      +      "description": "Permalink to the same audit on prepublish.ai.",
      +      "type": "string"
      +    },
      +    "status": {
      +      "description": "Present only when the audit had not settled inside this call; the value is \"running\".",
      +      "type": "string"
      +    }
      +  },
      +  "required": [
      +    "notice",
      +    "analysis_id",
      +    "open_in_browser"
      +  ],
      +  "type": "object"
      +}
  7. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"Where the free result is sent. Required for every anonymous audit: the backend rejects the request without it. Ask the user; never invent it."New value: +"Where the free result is sent. Required for every anonymous audit: the backend rejects the request without it. Ask the user; never invent it. When the caller is authenticated with a Prepublish API key the result comes back in the conversation instead, so do not ask for an address in that case."
  8. Changed1 schema field changed
    • changedInput schema / properties / email / description
      Previous value: -"Where the free result is sent. Required for every anonymous audit — the backend rejects the request without it. Ask the user; never invent it."New value: +"Where the free result is sent. Required for every anonymous audit: the backend rejects the request without it. Ask the user; never invent it."
  9. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Adds substantial context beyond annotations: the optional email side effect (storage, emailing the link, follow-up series), that results come back in-conversation regardless, and honest limits (text-only, doesn't predict published retention, ignores delivery/editing/thumbnail). No contradiction with readOnlyHint=false/destructiveHint=false — the audit creates stored results and optional emails, which is consistent with non-destructive write.

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 the action and output, then usage rules. The trailing caveat chain (doesn't measure retention, can't account for delivery/editing/...) is valuable but slightly verbose.

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?

Output schema exists so return values needn't be explained, yet behavior and limits are well covered. Complete enough for correct invocation; minor redundancy with the rich schema.

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 a detailed email param description, so baseline is 3. The description reinforces that email is optional and the audit runs without it, but adds little beyond the schema.

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 ("Run Prepublish's full audit on a YouTube script") and enumerates the outputs: scores, attention-risk map, rewrites. Clearly distinguishes itself from generation/review/grammar-check siblings.

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?

Explicitly says when to choose it (finished or near-finished draft, wants to know what is weak before recording) and lists three concrete exclusions: generating a script, reviewing a published video, checking grammar. Routing is unambiguous.

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