Skip to main content
Glama

write_script

Script Writer (10 credits): hooks, the plan's sections with re-hooks and payoffs, the script, its runtime counted from its words, machine-sounding lines flagged, a fact-check list, Markdown. Runs as a job (get_call reads it). Same as POST /v1/scripts.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "write_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
api_keyNo
minutesNo
subjectNo
audienceNo
idempotency_keyNo1 to 255 visible ASCII characters; the same key and request within 24 hours answer the saved remix and charge nothing; the same key with another request is 422 idempotency_key_reused

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations provided, the description carries the full burden and does disclose the important traits: 10-credit cost, async job execution with get_call as the reader, and Markdown output. It omits auth/permission expectations despite an api_key parameter, and leaves unclear what input plan/skeleton (referenced as 'the plan's sections') must exist beforehand.

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?

A single dense sentence leads with the tool's identity and cost, then lists outputs, followed by a short operational note. The telegraphic style is efficient with no filler, though the compressed comma list takes a beat to parse.

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?

An output schema exists, so listing return contents is partly redundant, but the async job lifecycle note is genuinely useful. The real gap is the near-absent explanation of the subject/audience/minutes inputs for a 5-parameter generative tool.

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 description coverage is only 20% – just idempotency_key is documented – and the description does not explain subject, audience, or api_key at all. Only 'its runtime counted from its words' loosely hints at the minutes parameter, which defaults to 8, so the description falls well short of compensating for the coverage gap.

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?

The description enumerates the concrete deliverables (hooks, plan sections with re-hooks/payoffs, the script itself, runtime, flagged lines, fact-check list) that make this a full script-writing tool. It is distinguishable from siblings like write_hook or write_ideas by the breadth of output, though it never names those siblings explicitly.

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?

Usage is only implied: the credit cost and 'Runs as a job (get_call reads it)' tell an agent this is an expensive async operation to poll afterward. There is no explicit statement of when to choose this over review_script, write_upload_pack, or the narrower write_hook/write_titles tools.

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