Skip to main content
Glama

Create Layer

create_layer

Create a new layer at the document root, or update an existing layer by name, with configurable RGB color and flags such as solo, view, locked, and render.

Instructions

Create a LayerObject at the document's layer root. With update_if_exists:true the existing layer with the same name is updated in place (idempotent). Pass color:[r,g,b] (0..1) and/or flags:{solo,view,render,manager,locked,...} to configure it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesLayer display name (also used for lookup).
colorNo[r,g,b] in 0..1.
flagsNoInitial flag values.
update_if_existsNoIdempotent update. Default false.

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.3.1

TDQS

A3.9/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It discloses the idempotent update behavior and the configurable fields, but it fails to state what happens when a layer with the same name exists and update_if_exists is false (e.g., error, duplication, or overwrite). This is a meaningful gap for a create/update operation.

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?

Three tight sentences: purpose first, then the key behavioral nuance (update_if_exists), then configuration parameters. Every sentence earns its place with zero fluff.

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

Completeness3/5

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

The tool has a nested flags object and no output schema, so the description must cover the essentials. It explains creation, idempotent update, and parameter usage, but omits critical edge-case behavior (what if the name already exists without update_if_exists?) and any mention of return values or errors. Given the moderate complexity, it is adequately complete but has clear gaps.

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 coverage is 100%, so the baseline is 3. The description adds the 'and/or' relationship between color and flags and reiterates the color format and flag examples, but most parameter meaning is already in the schema. No significant extra clarification is provided.

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 opens with 'Create a LayerObject at the document's layer root,' which clearly specifies the verb, resource, and placement. This distinguishes it from sibling tools like list_layers and create_entity, as it is the only one that mentions LayerObject creation at the root.

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 context: you use this to create a layer, optionally updating an existing one via update_if_exists. It does not explicitly mention alternatives or when not to use it, but the purpose is unambiguous enough for an agent to select it correctly among siblings.

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

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/kumoproductions/mcp-cinema4d'

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