Skip to main content
Glama

Create element

create_element

Make an @element in a space from images, a video or a voice you sent there, so every image and video made in the space and its sub-spaces keeps that character, product or place the same when a prompt names @name. Send each file with upload_file and space_id first. The answer has the element_id.

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": {
      "space_id": "<space_id>",
      "name": "<name>",
      "media_ids": "<media_ids>"
    },
    "name": "create_element"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYesWhat a prompt calls it after @: letters, digits and _, with a letter, up to 30.
space_idYesA space id from list_spaces.
media_idsYesmedia_id values from upload_file's answers with space_id, or from list_elements: up to 4 images (the first is the face) or one video instead, plus one voice or sound. A video runs at least 3 s and audio at least 5 s; a model uses the first seconds it takes of a longer one.
descriptionNoWho or what it is, in a line a prompt can lean on.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • addedInput schema / properties / media_ids / items / anyOf
      Added value: +[
      +  {
      +    "format": "uuid",
      +    "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
      +    "type": "string"
      +  },
      +  {
      +    "pattern": "^clip:[\\w-]+\\.[\\w-]+$",
      +    "type": "string"
      +  }
      +]
    • removedInput schema / properties / media_ids / items / format
      Removed value: -"uuid"
    • removedInput schema / properties / media_ids / items / pattern
      Removed value: -"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"
    • removedInput schema / properties / media_ids / items / type
      Removed value: -"string"
  2. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations only declare that this is a non-read-only, non-destructive, closed-world write. The description adds context beyond that: the element's effect extends to all media generated in the space and its sub-spaces, it requires prior uploads, and the response carries the element_id. It does not cover name-collision behavior or whether an element can later be replaced.

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 purpose and scope come first, followed by the upload prerequisite and the returned element_id, with no filler sentences. The phrasing 'Make an @element' is slightly awkward but functionally dense and front-loaded.

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 a 4-parameter creation tool with no output schema, the description covers purpose, cross-space scope, prerequisite flow, and the return value. It leaves out failure modes such as duplicate names or invalid media combos, but nothing essential to invoking it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so name, space_id and media_ids (including the 4-image/1-video plus voice composition and duration floors) are already documented inline. The description only restates the media types at a high level ('from images, a video or a voice') and adds no constraint the schema does not already contain, so the baseline of 3 applies.

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 uses a concrete verb and resource ('Make an @element in a space') and then states the effect: every image and video in the space and its sub-spaces keeps that character, product or place consistent when a prompt names @name. That is specific enough to separate it from siblings like update_element or list_elements 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 Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

It gives a clear prerequisite: 'Send each file with upload_file and space_id first', which tells the agent the ordering of calls. It stops short of saying when to choose this over update_element (modify an existing element) or list_elements (inspect), so it lacks explicit exclusions or named 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.

Resources