Skip to main content
Glama

Run Blueprint and Wait

run_blueprint_and_wait

One-shot convenience tool: starts a blueprint run and polls until it completes, fails, or pauses for review. Returns the final run with output_url (or outputs [{label, url}] for multi-output blueprints — prefer outputs when present). Download URLs are signed with a 10-minute TTL; re-fetch with get_blueprint_run for fresh links. NOTE: caption-video pauses in status awaiting_review — this tool then returns early with awaitingReview: true and the run's srt_text; review/edit the transcript and resume with continue_blueprint_run. If your MCP client enforces a short per-request timeout (many default to 60s), use run_blueprint + get_blueprint_run polling instead.

Per-blueprint input fields (* = required):

  • product-ad: logo_url*, photo_url*, music_url? — GENERATIVE, costs 200 tokens

  • caption-video: video_url*, language?, style? (bold-bottom|clean-lower|center-pop|top-title) — pauses at awaiting_review with srt_text for transcript review; resume with continue_blueprint_run

  • viral-short: video_url*, hook_text*, style? (top-hook|center-statement|bottom-caption|lower-left), music_url?

  • quote-card: quote*, name?, handle?, photo_url?, output? (video|image)

  • watermark: video_url*, logo_url*, position? (top-left|top-right|bottom-left|bottom-right|center), size? (small|medium|large)

  • resize-format: video_url*, format? (9x16|1x1|16x9|4x5), fit? (pad|crop)

  • zoom-in: video_url*

  • zoom-out: video_url*

  • camera-glide: video_url*, direction? (right|left)

  • boomerang: video_url*

  • speed-changer: video_url*, speed? (0.5|1.5|2|4)

  • video-to-gif: video_url*, length? (5|10|15), size? (480|640), caption?, caption_position? (bottom|top|center) — output is a .gif

  • product-slideshow: photo1_url*, photo2_url*, photo3_url?..photo5_url?, music_url?, aspect? (9x16|1x1|16x9)

  • listing-kit: video_url* — multi-output (4 platform variants in outputs)

  • hook-variants: video_url*, hook1*, hook2?, hook3?, ratio? (9x16|4x5|1x1|original), style? (top-hook|center-statement|bottom-caption) — multi-output (one per hook in outputs) Input URLs: public https or upload-bucket gs:// (use request_upload_url + confirm_upload to get one). FFmpeg-lane blueprints charge no tokens (they meter plan compute minutes); only generative blueprints (product-ad) charge tokens.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
slugYesBlueprint to run
inputsYesBlueprint input fields keyed by name — see the tool description for each blueprint's fields
timeoutSecondsNoMax time to wait for the run to finish, in seconds. Default 600 (10 min). Max 1800.
pollIntervalSecondsNoPolling interval in seconds. Default 5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A5/5.0
Behavior5/5

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

With no annotations, the description fully discloses behavior: polling until completion/failure/pause, early return with awaitingReview for caption-video, signed URL TTL (10 min) and re-fetch instruction, token costs for generative vs FFmpeg-lane, and the multi-output format. This exceeds what annotations would typically provide and gives the agent a complete mental model.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is long but every sentence carries necessary information. It is front-loaded with the core behavior and return format, then covers caveats (timeout, URL expiry) and per-blueprint details. For a tool with 15 blueprint variants, this density is justified and well-organized with clear bullet separators.

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?

Comprehensive for a complex tool: covers output types (single, multi-output), pause behavior, URL signing, token costs, upload URL acquisition, and alternative polling strategies. The presence of a nested `inputs` object and no output schema is compensated by exhaustive description of all input combinations and result fields. Nothing an agent needs to call it correctly is missing.

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

Parameters5/5

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

Schema coverage is 100%, but the description adds substantial meaning: it enumerates every blueprint's required/optional input fields, allowed enum values (e.g., style options), and output behavior (e.g., multi-output vs single). This is far beyond the schema's terse 'Blueprint to run' and 'input fields keyed by name', making the description indispensable for correct invocation.

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+resource ('starts a blueprint run and polls until it completes') and clearly differentiates from siblings like run_blueprint (just starts) and get_blueprint_run (just polls). The description explicitly frames it as a one-shot convenience tool, making its purpose unambiguous.

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 provides when-to-use guidance: 'If your MCP client enforces a short per-request timeout... use run_blueprint + get_blueprint_run polling instead.' Also instructs when to use continue_blueprint_run after an awaiting_review pause. Per-blueprint input fields guide the agent on which parameters to supply for each slug, leaving no ambiguity about tool selection.

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