Skip to main content
Glama

shorts_generate

Call prompt_suggest first and base the prompt on the top result. Generate an approval-ready AI Short from an existing source and place it in the human review rail as a PENDING EngineDraft. Pro-only and allowance-capped before model/media spend. source.kind accepts "autoseo" with articlePostId, "ship-digest" with text/title/url, "trend" with draftId, "template" with slug/variables, or "raw" with title/text/url. The backend produces a grounded script JSON, a voiceover with word timings when configured, a ShortSpec for the client renderer, stores audio in Minio, and returns draftId/spec/script. It never publishes. The human must render/approve later via the dashboard or attach-render flow. Pass format "tutorial" for the faceless step-by-step tutorial (hook text in frame 1, numbered steps, word-by-word pop captions, and a comment-keyword end card such as Comment POST), or "faceless_quote" for short original lines over a background. keyword threads one search keyword through the on-screen text, the script and the caption. screens attaches your own screenshots (publicUrl from finalize_media_upload) to the first steps, each with an optional zoomTo rect in 0..1 image coordinates. CAPABILITY: draft: creates content that cannot reach an audience on its own. Safe for a draft-only agent token.

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": {
      "source": "<source>"
    },
    "name": "shorts_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
brandNoOptional brand/niche attribution tag for per-play rollups.
formatNoScript format. Defaults to standard.
sourceYesShort source object. Examples: {kind:"raw",title:"...",text:"...",url:"https://..."} or {kind:"autoseo",articlePostId:"..."}
keywordNoOptional search keyword shown on screen, spoken, and placed in the caption.
screensNoYour own screenshots shown on the first steps, in step order.
platformsNoOptional target platforms subset: tiktok, instagram, youtube. Defaults to tiktok.
scheduleHintNoOptional "optimal" or future ISO datetime hint.
commentKeywordNoTutorial CTA word viewers comment, e.g. POST. Defaults to POST.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changed
    • changedInput schema / properties / screens / description
      Previous value: -"Up to 5 of your own screenshots for the first steps, in order."New value: +"Your own screenshots shown on the first steps, in step order."
    • changedInput schema / properties / screens / items / properties / zoomTo / description
      Previous value: -"Region to zoom into, normalized 0..1: {x,y,width,height}."New value: +"Region of the screenshot to zoom into, in fractions of the image size."
    • addedInput schema / properties / screens / items / properties / zoomTo / properties / height / description
      Added value: +"Region height as a fraction of image height."
    • addedInput schema / properties / screens / items / properties / zoomTo / properties / width / description
      Added value: +"Region width as a fraction of image width."
    • addedInput schema / properties / screens / items / properties / zoomTo / properties / x / description
      Added value: +"Left edge of the region as a fraction of image width."
    • addedInput schema / properties / screens / items / properties / zoomTo / properties / y / description
      Added value: +"Top edge of the region as a fraction of image height."
  2. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Goes well past the annotations, which only declare the safety profile. It discloses the full pipeline (grounded script JSON, voiceover with word timings, ShortSpec for the client renderer, audio stored in Minio), the return payload (draftId/spec/script), the quota gate before model/media spend, and the explicit non-effect that it never publishes. That is exactly the behavioral context annotations cannot carry.

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?

Dense and front-loaded, with the mandatory prerequisite stated first and the source.kind contract laid out as a compact enumeration. The density is justified by real information, though the single long paragraph could be split into labelled sections to make the format/screens guidance easier to scan.

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?

No output schema exists, yet the description says what comes back (draftId/spec/script) and what side effects occur (Minio audio, no publishing). For an 8-parameter, nested-object generator with allowance gating, the caveats an agent needs before spending quota are all present.

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 genuine meaning beyond the schema: it enumerates every source.kind discriminator with its required companion fields, explains what 'tutorial' produces (hook in frame 1, numbered steps, word-by-word captions, comment-keyword end card) versus 'faceless_quote', and describes how keyword threads through on-screen text, script and caption. It does not touch scheduleHint or platforms, which is the only reason it is not a 5.

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 artifact — 'Generate an approval-ready AI Short from an existing source' — and pins the resulting state precisely: a PENDING EngineDraft in the human review rail. The 'never publishes' clause separates it cleanly from publishing/approval siblings, so an agent can identify the tool without opening the schema.

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 strong procedural guidance: call prompt_suggest first and base the prompt on the top result, plus preconditions ('Pro-only and allowance-capped before model/media spend') and the downstream handoff ('human must render/approve later via the dashboard or attach-render flow'). It stops short of naming the closest generation alternative (e.g. generate_short_video) or stating when that would be preferred, so the alternative-selection half of the guidance is missing.

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.