Skip to main content
Glama

Aitvar

Rewrite a draft’s script with AI

rewrite_video_script

Has the AI rewrite a draft’s script following an instruction, e.g. "make the hook punchier" or "add the 1969 study". Free, a limited number of times per draft.

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": {
      "video_id": "<video_id>",
      "instruction": "<instruction>"
    },
    "name": "rewrite_video_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
video_idYesThe video’s id (from write_video_script or list_my_videos).
instructionYesWhat to change.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations only declare the mechanical profile (not read-only, not destructive, non-idempotent); the description adds genuinely new context: the rewrite is AI-generated, it is free, and it is capped at a limited number of uses per draft. That quota is the kind of behavioral limit annotations cannot express. It still doesn't say whether the previous script is overwritten or versioned.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two sentences: the operation first, then the cost/quota constraint. No filler, no restatement of the title, and the important limit is stated up front rather than buried.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter mutation tool with no output schema, the definition covers the what and the quota, but leaves open whether the rewrite replaces the existing draft script and whether the new script text is returned. Those gaps matter for an agent deciding whether to call it or to follow up with get_video.

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 already 100%, so the schema does the baseline work. The description nonetheless adds meaning to the instruction parameter by showing concrete phrasings ("make the hook punchier", "add the 1969 study"), clarifying the expected granularity of what is otherwise a bare "What to change."

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?

"Has the AI rewrite a draft's script following an instruction" gives a specific verb (rewrite) and resource (draft script), and the two quoted example instructions make the operation concrete. It does not name or differentiate itself from the sibling update_video_script, so an agent must infer the boundary between manual editing and AI regeneration.

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?

The example instructions imply when this tool is appropriate (instruction-driven AI revision), and the quota note gives a usage constraint. However, there is no explicit when-not guidance and no reference to the closest alternative, update_video_script, leaving the agent to guess which to pick.

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