Skip to main content
Glama

Create a character episode

autoshort_create_character_episode
Idempotent

Make the episode: 3-8 shots, 12-60 seconds, the same fictional character in every shot, narrated with captions. CHARGES credits. The series must have a REVIEWED, CONFIRMED season plan and the episode must be one of its episodes exactly as planned (SEASON_PLAN_REQUIRED / SEASON_NOT_REVIEWED / EPISODE_NOT_IN_PLAN otherwise, with a nextAction, nothing charged); the narrator voice, language, style, look and outfit come from the plan. ALWAYS call autoshort_quote_character_episode first and get the customer yes: this call refuses unless confirm is true and expectedCredits equals the quoted price (a changed price answers 409 and charges nothing). Credits are held when it starts. A shot that cannot be animated keeps a still image and its clip credits go back; if too few shots move, or anything else fails, everything goes back. Takes about 10-25 minutes: poll autoshort_get_video with arguments { id: <the returned id / videoId> } (or use a webhook); it reports status, stage and, when COMPLETED, videoUrl. Pass idempotencyKey so a retry never charges twice. One episode at a time per account, 3 per day.

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": {
      "seriesId": "<seriesId>",
      "confirm": "<confirm>",
      "expectedCredits": "<expectedCredits>"
    },
    "name": "autoshort_create_character_episode"
  }
}

Input Schema

NameRequiredDescriptionDefault
shotsNoShots you write yourself (better pictures than the automatic split). Give `shots` OR `script`.
titleNoOptional title.
scriptNoThe narration, about 29-138 words. The system splits it into shots by sentence. Give `script` OR `shots`.
confirmYesMust be true: making an episode spends credits.
sheetIdNoOmit it: the character sheet is the one the season plan names for this episode. If given it must equal that sheet.
languageNoOmit it: the narration language is the season plan's. If given it must equal the plan's.
seriesIdYesA series id from autoshort_list_series whose season plan is reviewed and confirmed.
shotCountNoWith `script`: how many shots to split it into. Omit for an automatic count.
resolutionNoClip resolution. Default '480p'. '720p' costs more per second (see quote.pricePerResolution) and is only accepted when it is listed as available there; the quote and the create must use the same resolution.
idempotencyKeyNoRetry-safe: a repeat with the same key returns the first answer (replayed: true) and charges nothing.
expectedCreditsYesThe credits the quote showed. Must match the current price.
caption_secondary_languageNoOptional second caption line: a translated line under the caption, in this language code such as 'vi' or 'en'. 'none' for no second line. Omit to follow the series, then the account default (off unless set). No extra charge.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / shots / items / properties / with
      Added value: +{
      +  "description": "Copied from the season plan as is (a two-character shot's co-star). Ignored here: the confirmed plan decides who is in the shot.",
      +  "type": "string"
      +}
  2. Changed2 schema fields changed
    • changedInput schema / properties / script / description
      Previous value: -"The narration, about 74-138 words. The system splits it into shots by sentence. Give `script` OR `shots`."New value: +"The narration, about 29-138 words. The system splits it into shots by sentence. Give `script` OR `shots`."
    • changedInput schema / properties / script / minLength
      Previous value: -120New value: +60
  3. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only declare the generic profile (not read-only, open-world, idempotent, non-destructive); the description supplies the operationally critical context: credits are charged, when they are held, the per-shot and whole-job refund rules, the 409-on-price-change behavior, the 10-25 minute runtime, and that the plan overrides voice/language/style/look/outfit. It also documents the rate limits and the idempotency replay guarantee, none of which appear in the annotations.

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?

The core action and its constraints are front-loaded, and the semicolon-chained clauses pack error codes, refund logic, and polling into few sentences with little waste. It is dense and long for a single description, but nearly every clause carries decision-relevant information rather than filler.

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?

For a 12-parameter, credit-spending, long-running generation tool with no output schema, the description covers prerequisites, cost guards, failure and refund semantics, duration, the exact polling call and what it reports, idempotency, and concurrency limits. An agent has everything needed to invoke it safely and to recover from the documented error states.

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 still adds meaning by explaining the coupling of `confirm` and `expectedCredits` to the quote (must equal the quoted price or a 409 with nothing charged) and by stating that plan-sourced values (narrator voice, language, style, look, outfit) govern the shot content. It does not, however, elaborate on the shots-vs-script tradeoff or resolution pricing beyond what the schema already says.

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?

The opening clause gives a specific verb and resource ('Make the episode') plus concrete constraints: 3-8 shots, 12-60 seconds, one consistent character, narrated with captions. It is unmistakably the generation call for a planned character episode, distinct from quote, sheet, or generic video generation siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It states a hard prerequisite chain (reviewed, confirmed season plan containing this episode exactly as planned), an explicit 'ALWAYS call autoshort_quote_character_episode first and get the customer yes', and names the follow-up tool with exact arguments: poll autoshort_get_video with { id: ... }. It also gives the when-not cases via error codes and the throughput limits (one episode at a time, 3 per day).

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