Skip to main content
Glama

Create a component

scaffold_component

Write a compiling TypeScript skeleton and return the Asset ID. Pass name and kind (node|circle|rect|shader|counter|video|gradient). Do not pass source. Use kind=gradient for a scrim with typed colors and local coordinates; read guide/gradients-overlays. Use kind=shader for an SkSL adjustment layer. Read builtin-shaders before a shader. Required: read builtin-vidova-basics first unless that body is already in this conversation. Read builtin-fonts before setting fontFamily. After it succeeds, edit with replace_component or patch_component, inspect it visually with preview_component, and place with patch_film using the Asset ID (then check over footage with preview_frame or preview_range). Read builtin-film-custom-components before that placement. branchId null (or left out) means the current version; a version id from list_branches writes that version without switching the editor to it. Not for a published library element; that is import_element. Not for film XML tags.

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": {
      "kind": "<kind>",
      "name": "<name>",
      "branchId": "<branchId>",
      "projectId": "<projectId>"
    },
    "name": "scaffold_component"
  }
}

Input Schema

NameRequiredDescriptionDefault
kindYes
nameYesComponent class name, a JavaScript identifier, or shared/<name> for a shared module that components import as ./shared/<name>.
branchIdYesVersion id from list_branches to write to, without switching the editor to it. null, or leaving it out, means the current version.
projectIdYesThe project this call runs on without changing the open project. null (or leaving it out) uses the open project. wait_for_jobs takes the projectId of the calls that started the jobs.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations only declare non-read-only, non-destructive, non-idempotent, closed-world; the description adds substantive behavior beyond that: the return value (Asset ID), the prohibition on passing source, the branchId semantics for writing a version without switching the editor, and the required reading before certain kinds. It stops short of saying what happens if a component of that name already exists, which matters for a non-idempotent create.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core purpose is front-loaded and most sentences carry real information (prerequisites, workflow order, exclusions), but the body is a run-on sequence that interleaves kind semantics, required reading, post-creation workflow, and branch semantics without grouping. It is dense enough that an agent must re-read to separate preconditions from follow-up steps.

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 no output schema, the description supplies the return value; with four required params and a 75%-covered schema, it covers the ambiguous ones (kind, branchId) and the ordering constraints around guide reads. Preconditions, exclusions, and the follow-on editing/placement path are all present, leaving little an agent needs that 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 75% and the description still adds meaning: it enumerates the kind values and attaches behavioral guidance to two of them (gradient = scrim with typed colors and local coordinates; shader = SkSL adjustment layer, read builtin-shaders first). branchId is essentially restated from the schema, and projectId is not addressed in prose, so it is additive rather than complete.

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?

"Write a compiling TypeScript skeleton and return the Asset ID" gives a concrete verb, a concrete artifact, and the return value in one line. It also draws explicit boundaries against import_element (published library elements) and film XML <component> tags, so an agent can tell it apart from siblings without opening their schemas.

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?

States prerequisites with conditions (read builtin-vidova-basics first unless already in conversation, builtin-fonts before fontFamily, builtin-shaders before a shader), the downstream workflow (replace_component/patch_component, preview_component, patch_film, then preview_frame/preview_range), and explicit exclusions. This is close to the maximum for when/when-not/alternatives.

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.