Skip to main content
Glama

preview_component

Read-onlyIdempotent

Preview a component in isolation with frame contact sheets, theme options, props, and keyframes to catch script errors before building a composition.

Instructions

Look at a component (a project one, or a kit one) on its own before putting it in a composition: frames over dur seconds as a contact sheet, in light and dark (or one theme), with props set (attrs) and keyframes on its animatable props (anim: [{ prop: "attr:", at, dur, from, to, ease? }]; by default every animatable number of a project component runs from its minimum to its maximum, else 0 to 1). Returns the sheets, each frame and any script error the component threw (fix those first).

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": {
      "tag": "<tag>"
    },
    "name": "preview_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
hNo
wNo
durNo
tagYes
animNoKeyframes, as a layer's anim[]
attrsNoProps, as a layer sets them
themeNoboth
framesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false, so safety is covered. The description adds genuinely useful behavior beyond that: the component's script is actually executed and any thrown error is returned, and the default keyframe behavior (min→max, else 0→1) is disclosed. It does not say anything about cost, rate limits, or how large a both-theme multi-frame sheet can get, which matters for an 8-param render 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?

It is a single dense sentence with parentheticals, front-loading the core purpose and parameter format before the return values and error note. Every clause carries information, though the run-on structure with nested parentheses makes it harder to scan than a few short sentences would.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For an 8-parameter tool with nested objects and no output schema, the description is fairly complete: it describes the return payload (sheets, each frame, script errors) so the agent knows what comes back. Minor gaps remain, such as whether `w`/`h`/`frames` interact (contact-sheet layout) and whether the anim default applies to kit components as well as project ones.

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 description coverage is only 25%, so the description must compensate, and it does: it explains the complex `anim` object shape (prop as "attr:<prop>", at, dur, from, to, ease?), what `attrs` means ('as a layer sets them'), what `theme` toggles, and that `dur` is the time span sampled by frames. The `anim` schema description is merely 'Keyframes, as a layer's anim[]', so this added detail is the main source of meaning.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a concrete verb and resource ('Look at a component (a project one, or a kit one)') and specifies output form (frames over `dur` seconds as a contact sheet, light and dark). It is clear what the tool does, but it never explicitly distinguishes itself from the similarly named siblings `preview` and `sheet`.

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 gives a clear usage context: 'on its own before putting it in a composition', which tells the agent to use it pre-composition, and 'fix those first' for script errors. It stops short of naming alternatives or stating when not to use it (e.g., when `preview` or `sheet` is the better call).

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

Deploy Server

Other Tools