Skip to main content
Glama

Compose a layout reel

compose_layout

Build a layout video inside emero, free: images, clips, text labels and boxes placed on a canvas, segment by segment, joined with straight cuts, with a silent track (or the clips' sound, or one audio file). Rendered by emero, saved to the library, usable as a workflow cover. load_skill("combining-videos") → Layout reels first.

  • Easiest: template: "start-end-frame-reel" with vars: { segments: [{ start_id, end_id, clip_id }, …], tag_text? }: per segment the start and end stills side by side under yellow "Start Frame" / "End Frame" tabs, the clip full width below, a "Made with Emero" tag under it, 1080x1920, silent.

  • Or a full spec: { canvas: { w, h, fps?, background? }, audio?: "silent" | "from_clips" | { audio_id, volume? }, segments: [{ duration?: "clip" | seconds, layers: [...] }] }. Layers, drawn in order: image { id, x, y, w, h, fit? cover|contain|stretch } · video { id, x, y, w, h, fit?, trim? { start, end } } · label { text, font? "DM Sans"|"Inter", weight? 400-700, size, color?, fill, anchor { x, y }, align? center-bottom|center-top|center|top-left, pad_x?, height, radius?, square_corners? none|top|bottom } · rect { x, y, w, h, fill, radius? }. Coordinates are output pixels, or fractions 0-1 of the canvas. Colors #RRGGBB. Limits: 10 segments, 120s, 12 layers per segment.

  • preview: true (or { segment, at }) returns ONE still as an image id right away: look at it before the full render. Every result lists each label's drawn box (x, y, w, h) so you can check placement. The full render returns a job id: call check_generation with it.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "compose_layout"
  }
}

Input Schema

NameRequiredDescriptionDefault
specNoa full layout spec (see the description); use this OR template
varsNotemplate variables, e.g. { segments: [{ start_id, end_id, clip_id }], tag_text }
previewNo
templateNo
project_idNoOpaque per-chat project id: "p-" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. An agent working in a folder (Claude Code, Codex) uses the folder's .emero.json project_id instead: load_skill("projects").
project_nameNoShort human title for the project (2-5 words from the user request, e.g. "Perfume ad campaign"). Pass it on your first generate/ingest_url so the project is not left "Untitled". You may also rename at will later — pass an updated project_name (on a generate/ingest_url, or on set_settings with no other change) whenever the user asks, e.g. "call this project cats".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedInput schema / properties / project_id / description
      Previous value: -"Opaque per-chat project id: \"p-\" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list."New value: +"Opaque per-chat project id: \"p-\" plus 6 random letters and digits. Every chat is a new project. Mint one on your first emero call and pass that SAME id on every call in this chat. Never mint a second one in the same chat, even for a new topic, campaign or subject. Only when the user asks to continue an earlier project, reuse its id from get_emero_brain's project list. An agent working in a folder (Claude Code, Codex) uses the folder's .emero.json project_id instead: load_skill(\"projects\")."
  2. Changed1 schema field changed
    • changedInput schema / properties / project_id / pattern
      Previous value: -"^p-[a-z0-9]{6}$"New value: +"^[A-Za-z0-9_-]{1,64}$"
  3. Changed1 schema field changed
    • changedInput schema / properties / project_id / pattern
      Previous value: -"^[A-Za-z0-9_-]{1,64}$"New value: +"^p-[a-z0-9]{6}$"
  4. Added

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, the description discloses that rendering produces a job id handled by check_generation, that preview returns one still as an image id, and that results list each label’s drawn box for placement checks. It also covers limits, audio behavior, and library saving, which are significant behavioral details for a mutation/rendering tool.

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?

The description is front-loaded with purpose and workflow, and its bullet structure keeps a complex spec readable. It is dense and long, but most detail earns its place for a tool with this many rendering options.

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?

For a complex rendering tool with no output schema, the description explains return behavior for both preview and full render, the follow-up check_generation call, and the relevant spec and template structures. The remaining schema-documented project_id and project_name fields are already well covered in the input schema.

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?

The input schema leaves spec and vars largely opaque, but the description fully explains the template vars, the full spec shape, canvas/audio/segment/layer structures, coordinate conventions, colors, and limits. This adds substantial meaning beyond the schema for the most important parameters.

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 states a specific verb and resource: build a layout video inside emero with images, clips, text labels, and boxes placed on a canvas, segment by segment. It also distinguishes the output as a layout reel with straight cuts and an optional audio track, making the tool’s purpose clear without needing the schema.

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?

The description gives clear usage context: start with load_skill("combining-videos"), use the easiest template or a full spec, and call preview before the full render. It does not explicitly compare against alternatives like combine_videos or state when not to use this tool, so it falls short of the highest level.

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.