Skip to main content
Glama

Render a motion ad from a Library card

render_motion_ad

[writes flayr data · write scope] Turns one Library image (the card) into a 6-15 s motion ad: hook (push-in on the card), up to 3 body beats (pans with the text), then a CTA end card in the brand color with the CTA and the link host. 9:16 unless aspect is 1:1 or 16:9. The text is used exactly as given; it is not rewritten. Saves a new draft in the card's brand (labels format:motion-ad, source:template); nothing is posted and the card is unchanged. Free. Returns a jobId: poll get_job_status. (Wraps POST /api/v2/video-studio/templates/motion-ad-from-card/render.)

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": {
      "contentId": "<contentId>",
      "hook": "<hook>",
      "cta": "<cta>",
      "ctaUrl": "<ctaUrl>"
    },
    "name": "render_motion_ad"
  }
}

Input Schema

NameRequiredDescriptionDefault
ctaYes
bodyNoUp to 3 beats are used; blanks are dropped.
hookYes
aspectNo
ctaUrlYeshttp(s) link; its host is shown on the end card.
contentIdYesThe card: a Library image.
textColorNo#RRGGBB.
brandColorNo#RRGGBB; defaults to the brand profile color.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only give the generic mutation profile (readOnlyHint=false, destructiveHint=false, idempotentHint=false); the description goes well beyond them by disclosing the required `write` scope, that a new draft is created in the card's brand with labels format:motion-ad and source:template, that nothing is posted, that the source card is unchanged, that it is free, and that the result is asynchronous via jobId.

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?

It is dense but front-loaded, with the scope tag and write classification first, then the output structure, then side effects and follow-up. The trailing wrapped-endpoint note is the weakest line, though it usefully identifies the underlying API surface.

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?

With 8 parameters, no output schema, and several mutation side effects, the description covers everything an agent needs: inputs' meaning, defaults, what is created, what is left untouched, costs, and how to retrieve the result via get_job_status. No significant gap remains.

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 63%, and the description compensates on several keys: contentId is defined as the Library image card, aspect defaults to 9:16, the CTA URL's host is what appears on the end card, and text inputs are used verbatim rather than rewritten. textColor and brandColor gain no detail in the description beyond the schema's #RRGGBB notes, keeping it below 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?

The description opens with a precise verb+resource ("Turns one Library image (the card) into a 6-15 s motion ad") and enumerates the produced structure: hook push-in, up to 3 body beats, CTA end card. This is clearly distinguishable from sibling render/edit tools like combine_clips, apply_frame, or create_frame.

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?

It tells the agent the preconditions and outcomes that drive selection: writes with the `write` scope, saves a new draft rather than posting, leaves the card unchanged, and is free. It also routes the follow-up step explicitly ("Returns a jobId: poll get_job_status"). It stops short of naming when to pick this over other creation paths, but the context is clear.

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