Skip to main content
Glama

Export the script

export_script
Read-only

Exports a drama (or a range of episodes) as one document: "json" (shortdrama.script.v1: settings, bible, cast, locations, props, episodes with scenes, references by name) or "fountain" (a standard screenplay; machine data rides in notes so it imports back losslessly). Edit it anywhere, then import_script.

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": {
      "drama_id": "<drama_id>"
    },
    "name": "export_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatNoScript format: "json" (shortdrama.script.v1) or "fountain" (screenplay text).json
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.
episode_toNoLast episode number to include. Omit to go to the last episode.
episode_fromNoFirst episode number to include (1-based). Omit to start at episode 1.

Output Schema

NameRequiredDescriptionDefault
formatYes
contentYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false, so safety is covered. The description adds real value by disclosing that fountain output embeds machine data in notes for lossless reimport, but it says nothing about size limits, performance, or whether the export is referenced by a URL given the presence of create_upload_url.

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 dense sentences, front-loaded with the verb and the format choice; the round-trip instruction lands at the end where it belongs. The parenthetical schema listings are slightly heavy but carry genuine information.

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 need no explanation, and the description covers formats, scope, and the round-trip contract. What's missing is the relationship to export_drama_package, the other export-flavored sibling an agent will weigh.

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 100%, so the baseline is 3, but the description adds meaning beyond it by explaining that the drama can be narrowed to a range of episodes and by characterizing what each format contains. The precise episode_from/episode_to boundary semantics still rest on 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 (exports) and resource (drama or episode range) and names the two concrete output formats with their schema identifiers. It also distinguishes itself from import_script by naming the round-trip path.

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?

Makes the use case explicit: take the whole document somewhere else to edit it, then bring it back with import_script. It doesn't say when to prefer export_drama_package instead, which is the closest sibling.

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.