Skip to main content
Glama

Render motion graphics

render_motion_graphics

Render an animated HTML page to an MP4: title cards, kinetic typography, animated charts, logo stings, lower thirds, explainers with shapes and text. You write the page; Masonry films it frame by frame at 30 fps, so the motion is exact and text is crisp, which video models cannot do. Use it when the user wants designed motion rather than filmed footage. It takes a self-contained page (nothing loaded from the network) that animates with CSS animations or window.__render(t). Costs a few credits of render time. Waits for the video and returns it; if it is still rendering when the wait ends, the reply carries a job_id for check_generation.

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": {
      "html": "<html>",
      "duration": "<duration>"
    },
    "name": "render_motion_graphics"
  }
}

Input Schema

NameRequiredDescriptionDefault
htmlYesOne complete, self-contained HTML page. It fills the frame (100vw x 100vh) and animates with CSS animations and/or a function window.__render(t) that draws the frame at t seconds. No network: inline all CSS and JavaScript, use system fonts, and embed images as data: URIs or draw with SVG or canvas. No setTimeout, setInterval, requestAnimationFrame or Date for timing.
titleNoShort name for the video.
durationYesLength in seconds, 1 to 60.
aspect_ratioNo9:16 (default), 16:9, 1:1 or 4:5.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations only cover safety flags (not read-only, not destructive, closed-world), so the description carries most of the behavioral burden and does so: it discloses credit cost, that the call blocks waiting for the video, and that a partial wait returns a job_id. It also states the hard constraint that the page must be self-contained with no network loads, which is the primary failure mode.

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 purpose, then constraints, then cost and return behavior — a sensible ordering with little filler. Five sentences is on the long side, and the aside about video models is slightly promotional, though it does earn its place as differentiation.

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?

There is no output schema, yet the description explains what comes back (the video, or a job_id) and points to check_generation. For a four-parameter render tool with async behavior and a credit cost, nothing an agent needs in order 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.

Parameters4/5

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

Schema coverage is 100%, so duration, aspect_ratio, and title are already documented, and the description leaves them there. It does add value by foregrounding the most failure-prone parameter semantics: the HTML must be self-contained, network-free, and animate via CSS or window.__render(t) — reinforcing the constraint that matters most in practice.

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?

Opens with a specific verb and resource ('Render an animated HTML page to an MP4') and then enumerates concrete artifact types: title cards, kinetic typography, animated charts, logo stings, lower thirds. It explicitly distinguishes itself from filmed-footage tools ('designed motion rather than filmed footage'), so an agent can separate it from generate_video without opening either schema.

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?

Gives an explicit selection rule tied to user intent ('when the user wants designed motion rather than filmed footage') and an explicit fallback path for the async case ('the reply carries a job_id for check_generation'). Both the when-to-use and the follow-up routing are stated rather than inferred.

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