Skip to main content
Glama

Import a script

import_script
DestructiveIdempotent

Writes a whole document into a drama in one transaction: "json" (shortdrama.script.v1, as export_script produces) or "fountain" (any screenplay; sections "# Episode N: Title" become episodes, scene headings become scenes and locations, character cues become characters). Characters, locations and props are matched by name (created or updated), episodes by number, and every episode that includes scenes has its script replaced. Ideal for writing a season locally and sending it at once. Run lint_drama afterwards.

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>",
      "format": "<format>",
      "content": "<content>"
    },
    "name": "import_script"
  }
}

Input Schema

NameRequiredDescriptionDefault
formatYesFormat of the attached script: "json" (shortdrama.script.v1) or "fountain".
contentYesFountain text, or the JSON document (object or string)
drama_idYesThe drama id (drm_…), from list_dramas or create_drama.

Output Schema

NameRequiredDescriptionDefault
propsYes
scenesYes
drama_idYes
episodesYes
locationsYes
charactersYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Goes well beyond the destructiveHint=true annotation by disclosing the exact destruction model: every episode containing scenes has its script replaced, while characters/locations/props are matched by name and created or updated, and episodes are matched by number. What is missing is failure behavior for malformed input and confirmation that re-running is idempotent in practice, though the annotation already covers idempotency.

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 core action and transaction scope, and every clause about matching/overwriting carries information. The single long semicolon-and-parenthesis-heavy sentence is dense and could be split, but it is not padded.

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?

Complete for a 3-parameter destructive importer: formats, matching rules, overwrite scope, and the recommended post-step are all stated, annotations cover the safety profile, and an output schema exists so return values need not be described.

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; the description earns more by explaining what the enum values mean in operation — fountain '#' sections map to episodes, scene headings to scenes/locations, character cues to characters, and json is the shortdrama.script.v1 shape export_script emits. That mapping is real semantic value the schema's one-line enum description does not provide.

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 and resource ('Writes a whole document into a drama') plus the atomic scope ('in one transaction') and the two accepted formats. It also implicitly distinguishes itself from the episode-level writer by emphasizing whole-document, all-episode replacement, and names export_script as its inverse.

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?

Gives a clear usage scenario ('Ideal for writing a season locally and sending it at once') and a required follow-up step ('Run lint_drama afterwards'). It stops short of explicitly saying when not to use it, e.g. that single-episode edits should use write_episode_script, leaving that inference to the agent.

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.