Skip to main content
Glama

render_thumbnail

Idempotent

Render a 1280x720 cover PNG for a video deck from title, subtitle, badge, and theme inputs; writes to the given output path and needs local Node/Remotion.

Instructions

Render a 1280x720 cover PNG with the Remotion DupThumbnail composition and write it to the out path. Returns {ok, out, bytes, props}; raises an error if Remotion fails or no file is produced. Title, subtitle, badge and theme come from the arguments; missing values default from deck when it is given. Requires the local Remotion/Node toolchain. Cover image only: use preview_stills for slide frames and render_deck for the video.

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": {
      "out": "<out>"
    },
    "name": "render_thumbnail"
  }
}

Input Schema

NameRequiredDescriptionDefault
outYesOutput PNG file path, preferably under out/ (e.g. out/cover.png)
deckNoOptional source deck JSON to derive default title, subtitle, and theme
themeNoVisual theme name (e.g. quantum_ledger, neon_cyber)
titleNoHeadline text displayed on the thumbnail (overrides deck title)
subtitleNoSecondary line below the headline
accent_badgeNoShort corner badge text (e.g. '1080p · 60 FPS')

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.3
    • changedInput schema / properties / out / description
      Previous value: -"Output PNG path under out/ (e.g. out/cover.png)"New value: +"Output PNG file path, preferably under out/ (e.g. out/cover.png)"
  2. Changed6 schema fields changedv0.1.1
    • addedInput schema / properties / accent_badge / description
      Added value: +"Short corner badge text (e.g. '1080p · 60 FPS')"
    • addedInput schema / properties / deck / description
      Added value: +"Optional source deck JSON to derive default title, subtitle, and theme"
    • changedInput schema / properties / out / description
      Previous value: -"Output PNG path under out/"New value: +"Output PNG path under out/ (e.g. out/cover.png)"
    • addedInput schema / properties / subtitle / description
      Added value: +"Secondary line below the headline"
    • addedInput schema / properties / theme / description
      Added value: +"Visual theme name (e.g. quantum_ledger, neon_cyber)"
    • addedInput schema / properties / title / description
      Added value: +"Headline text displayed on the thumbnail (overrides deck title)"
  3. First observedv0.1.0

TDQS

A4.5/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, and the description adds useful context: the return shape {ok, out, bytes, props}, the error condition when Remotion fails or no file is produced, and the toolchain requirement. It does not say whether an existing file at the out path is overwritten or how long a render may take, which are the remaining behavioural gaps for a write-to-disk tool.

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?

Four tight sentences, front-loaded with the action and output, followed by return contract, defaults, prerequisite, and sibling routing. No filler or repetition of schema text.

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?

Covers everything needed to call it correctly: what it produces, the return payload, failure mode, prerequisite environment, argument defaults, and when to prefer a sibling. No output schema exists, but the description already summarises the return object.

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 real meaning beyond the schema by explaining that 'missing values default from deck when it is given', clarifying the precedence between deck and explicit title/subtitle/theme/accent_badge.

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 with exact output characteristics: 'Render a 1280x720 cover PNG with the Remotion DupThumbnail composition'. It also explicitly differentiates itself from preview_stills and render_deck, so an agent can select it without opening any 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 scope ('Cover image only') and names the two alternatives with the condition that selects each: preview_stills for slide frames, render_deck for the video. It also states the prerequisite of the local Remotion/Node toolchain.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.