Skip to main content
Glama

generate_script

Generate, lint, and repair a short-drama script from a topic through an OpenAI-compatible API, returning the script and lint report.

Instructions

Optional end-to-end generator using an OpenAI-compatible API (requires OPENAI_API_KEY or DRAMA_FORGE_API_KEY). Automatically generates, lints, repairs, and returns the script + lint report.

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": {
      "topic": "<topic>"
    },
    "name": "generate_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
modeNo
topicYes
target_toolNoseedance
aspect_ratioNo
duration_secNo
extra_requirementsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose two important traits: an external OpenAI-compatible API dependency with required env vars, and an automated generate/lint/repair loop. It omits failure behavior, cost/latency implications, whether the repair loop is bounded, and what happens if the API key is absent.

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?

Two compact sentences, front-loaded with the optional/end-to-end framing followed by the credential requirement and behavior. No filler, though the parenthetical credential clause sits awkwardly mid-sentence.

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?

It covers the operational essentials for a network-backed generator, but for a six-parameter tool with no annotations, no output schema, and zero schema coverage, the parameter space and return shape are entirely undocumented. An agent knows it can call it but not how to shape a good call.

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 0% across six parameters, so the description must compensate and does not. It says nothing about mode, target_tool, aspect_ratio, duration_sec, or extra_requirements, and never ties the 'topic' requirement or the script output to a target platform.

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 names a specific verb and resource ('generates, lints, repairs, and returns the script + lint report'), which also implicitly distinguishes it from the lint_script and export_script siblings by describing a full pipeline. It does not explicitly say how it differs from create_blueprint plus a separate lint step, so sibling differentiation is left to inference.

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?

'Optional end-to-end generator' hints that this is one path among alternatives and states the credential prerequisite, which is useful context. However, it never says when to prefer this over create_blueprint or list_modes/recommend_mode, so the agent must infer the selection conditions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.