Skip to main content
Glama

Generate captions

generate_captions

Generates animated captions from a spoken clip's transcript (the same generator as Frapea's UI): transcript words group into caption text clips over the clip's span, word-timed so the animation follows speech. One undo, and they share a captionGroupId — restyle them all via set_clip_properties with text.wholeCaptionGroup. Needs a transcript (get_transcript tells you). Returns the created clip ids. PLACEMENT: they JOIN the existing caption track whenever they fit in its gaps, and only open a new one when they would overlap (a second language, a second layer). So captioning four narration segments in four calls leaves ONE caption track, not four — no tidying needed afterwards for this. Call manage_tracks {action:'tidy'} at the end of the build for the empty tracks left by everything else. They join the LOWEST caption track, so a picture layer you add ABOVE it after an earlier pass will cover them — captions render behind b-roll rather than looking wrong, which is the hardest kind of mistake to notice. Move the whole lane with manage_tracks {action:'merge'} if you want the captions on top.

Input Schema

NameRequiredDescriptionDefault
tokenYesThe session token `connect` returned. Pass it on every call — it says which browser to drive.
clipIdYesThe spoken clip to caption.
presetNoStyle preset: clean (default) | boldPop | karaoke | highlight | minimal | editorial.
positionNobottom (default) | top.
textCaseNooriginal (default) | upper | lower.
projectIdYesProject id from get_projects.
timelineIdYesTimeline containing the spoken clip.
censorProfanityNoStar out profane words.
maxWordsPerCaptionNoWords per caption before a new one starts (default 4).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only cover the safety profile (not read-only, not destructive, not idempotent). The description goes well beyond: it discloses that one undo reverts the operation, that the created clips share a captionGroupId and can be restyled as a group, that the tool returns created clip ids, and — most valuably — the non-obvious track-placement behavior (joins existing caption tracks when they fit, opens a new one on overlap, joins the LOWEST caption track so later b-roll can occlude them). These are exactly the behavioral traits annotations cannot express.

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 purpose in the first sentence, then layered with placement and rendering details. Every sentence carries real information, but the paragraph is dense and long for a single tool, with track-placement lore that could be tighter. Efficiency is good, hygiene could be better.

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, and the description compensates by stating the return value ('Returns the created clip ids'). Preconditions, side effects, follow-up tooling, and the subtle rendering-behind-b-roll hazard are all covered, leaving nothing an agent needs to know before invoking it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so all nine parameters (preset, position, textCase, censorProfanity, maxWordsPerCaption, etc.) are already documented in the schema. The description adds no parameter-level meaning beyond what the schema provides — it never mentions the styling options or word-grouping controls. Baseline 3 is appropriate when the schema does all the parameter work.

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 ('Generates animated captions from a spoken clip's transcript') and immediately scopes the input ('a spoken clip'). It distinguishes itself from siblings by naming the preconditions (get_transcript) and the related follow-up tools (set_clip_properties, manage_tracks), so an agent knows exactly what this tool produces versus what neighboring tools do.

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?

Explicitly states the prerequisite ('Needs a transcript (get_transcript tells you)'), names the alternatives for follow-up work (restyle via set_clip_properties with text.wholeCaptionGroup; tidy via manage_tracks {action:'tidy'}; merge via manage_tracks {action:'merge'}), and even explains when NOT to tidy up after captioning. This is a genuinely strong routing guide.

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