Skip to main content
Glama

Add an element to the current project

add_element

Add a single element (video, image, text, shape, audio, group, caption, or particles) to an existing project. Optionally nest it inside a group using parent_id; the element is validated before being added.

Instructions

Append a single element to an existing project — a TWEAK, e.g. dropping in one more caption or shape. By default it is added at the top level; pass parent_id to add it INTO a group (nested). The element is any valid schema element: video, image, text, shape, audio, group, caption, or particles. To create a composition or add several elements at once, build the JSON and use set_project instead. The new element is validated as part of the project as a whole before being added. Call get_schema(element_type) for the exact per-type fields; unrecognized keys are flagged.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
elementYesA Clipkit element object. Must include `type`.
parent_idNoOptional id of a group to add this element INTO (nested). Omit to add at the top level.
project_idNoWhich project to act on — the id returned by create_project / set_project / create_promo / load_project. Omit when working on a single local project.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
parent_idNo
element_typeNo
added_element_idNo
top_level_element_countYes
Behavior5/5

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

Beyond the annotations (readOnlyHint=false, destructiveHint=false), the description explains key behavioral aspects: the element is validated as part of the whole project before being added, and unrecognized keys are flagged. This gives the agent insight into error handling and validation behavior, which is not evident from annotations alone.

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?

The description is concise yet information-dense. Each sentence serves a purpose: the first defines the core function, the second explains default vs nested behavior, the third lists supported element types, the fourth differentiates from set_project, the fifth describes validation, and the sixth directs to get_schema. No filler or redundancy.

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?

Given the tool's complexity (nested element object, three parameters, an output schema exists), the description is comprehensive. It covers all essential aspects: purpose, placement behavior, supported element types, alternative tools, validation, and parameter semantics. The reference to get_schema handles per-type fields, and the output schema renders return-value documentation unnecessary. No significant gaps remain.

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 already has 100% coverage with descriptions for all parameters, but the tool description adds meaningful value by explaining the semantics of parent_id (top level vs. nested) and project_id (omitted for single local project). It also clarifies that the element must include a type and is a valid schema element, enriching the structured data with context that aids correct parameter construction.

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 clearly states the tool's purpose: 'Append a single element to an existing project.' It specifies the resource (project) and action (add element), and distinguishes itself from set_project by noting that set_project is for creating compositions or adding multiple elements at once. This makes the purpose unambiguous and well-differentiated from siblings.

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?

The description provides explicit usage guidance: it notes that by default the element is added at the top level, and parent_id is used to nest it into a group. It also gives a clear alternative: 'To create a composition or add several elements at once, build the JSON and use set_project instead.' Furthermore, it advises calling get_schema(element_type) for exact fields, giving the agent actionable paths for correct usage.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/clipkit-video/clipkit'

If you have feedback or need assistance with the MCP directory API, please join our Discord server