Skip to main content
Glama

Check a script before making it

shape_video_script
Read-only

What the engine makes of a script, in about a second, with nothing made or spent and no recording needed: its style, roughly how long it runs, whether it opens on a [hook] and ends on a [cta], its warnings, and the BEAT FINDINGS — every moment of a play checked against the sentence it sits before. Blocking findings come first: fix those before make_video_from_script, which refuses outright a beat no play can draw (code orphan or covered). When repair is offered, its script is the same words with the markers moved or the beats placed. Use it as often as you like.

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": {
      "script": "<script>"
    },
    "name": "shape_video_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
clientNoClient website slug (or id). Required for platform-scoped keys.
scriptYesThe full marked-up script, markers included.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior5/5

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

Annotations already cover the safety profile (readOnly, non-destructive, closed-world), and the description adds substantially beyond them: ~1 second runtime, nothing made or spent, no recording required, ordering of blocking findings first, and the existence of a `repair` payload containing the same words with markers moved or beats placed. That is exactly the behavioral context an agent needs before deciding to call it.

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 value proposition and cost ('in about a second, with nothing made or spent'), then returns, then next-step routing. It is a single dense run-on sentence with dashes and capitalized BEAT FINDINGS, which is readable but slightly overstuffed; a small amount of structure would help without losing content.

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?

There is no output schema, so the description carries the full return-value burden and does: it enumerates style, duration, hook/cta presence, warnings, beat findings, blocking vs non-blocking, and the repair alternative. For a two-parameter read-only validator, nothing essential is missing.

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% for both parameters, so the schema already explains `script` (full marked-up script, markers included) and `client` (slug or id, required for platform-scoped keys). The description adds only that the script must carry its markers, which is largely duplicative. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource: it evaluates a marked-up script and returns style, duration, hook/cta detection, warnings and per-beat findings. It draws a sharp line against make_video_from_script (a dry-run that precedes it), but it never distinguishes itself from the near-identically named sibling check_video_script, which an agent could easily confuse with it.

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?

Explicit sequencing guidance: fix blocking findings before calling make_video_from_script, which 'refuses outright a beat no play can draw (code orphan or covered).' It also states there is no cost to repeat use ('as often as you like'), which is real usage guidance. The gap is the absence of any when-to-use contrast with check_video_script/draft_video_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