Skip to main content
Glama

create_element

Create new AI personas, skills, templates, agents, memories, or ensembles for dynamic persona management in the DollhouseMCP server.

Instructions

Create a new element of any type

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe element name
typeYesThe element type
descriptionYesElement description
contentNoElement content (required for some types)
metadataNoAdditional metadata specific to element type

Implementation Reference

  • Defines the MCP tool 'create_element' including its input schema, description, and handler function that delegates to the server's createElement method.
      tool: {
        name: "create_element",
        description: "Create a new element of any type",
        inputSchema: {
          type: "object",
          properties: {
            name: {
              type: "string",
              description: "The element name",
            },
            type: {
              type: "string",
              description: "The element type",
              enum: Object.values(ElementType),
            },
            description: {
              type: "string",
              description: "Element description",
            },
            content: {
              type: "string",
              description: "Element content (required for some types)",
            },
            metadata: {
              type: "object",
              description: "Additional metadata specific to element type",
              additionalProperties: true,
            },
          },
          required: ["name", "type", "description"],
        },
      },
      handler: (args: CreateElementArgs) => server.createElement(args)
    },
  • Registers all element tools, including 'create_element', using the getElementTools function from ElementTools.ts into the ToolRegistry.
    private registerTools(instance: IToolHandler): void {
      // Register element tools (new generic tools for all element types)
      this.toolRegistry.registerMany(getElementTools(instance));
  • TypeScript interface defining the input arguments for the create_element tool handler.
    interface CreateElementArgs {
      name: string;
      description: string;
      type: string;
      content?: string;
      metadata?: Record<string, any>;
    }
  • IToolHandler interface method signature for createElement, used by the tool handler.
    createElement(args: {name: string; type: string; description: string; content?: string; metadata?: Record<string, any>}): Promise<any>;
Behavior2/5

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

With no annotations provided, the description carries full burden but only states it creates elements. It doesn't disclose behavioral traits like authentication requirements, rate limits, whether creation is idempotent, what happens on duplicate names, or what the response contains. 'Create' implies mutation but lacks details about permissions or side effects.

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?

Single sentence, zero waste, front-loaded with the core action. Every word earns its place without redundancy or unnecessary elaboration.

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

Completeness2/5

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

For a mutation tool with 5 parameters, no annotations, and no output schema, the description is inadequate. It doesn't explain what 'element' means in this context, what happens after creation, or provide any behavioral context needed for safe invocation.

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 the schema fully documents all 5 parameters. The description adds no parameter-specific information beyond implying 'any type' relates to the 'type' enum. Baseline 3 is appropriate when schema does the heavy lifting.

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 clearly states the verb ('Create') and resource ('element'), specifying it can be 'of any type'. It distinguishes from deletion/deactivation siblings but doesn't explicitly differentiate from similar creation tools like 'import_persona' or 'submit_collection_content'.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

No guidance on when to use this tool versus alternatives like 'import_persona', 'submit_collection_content', or 'edit_element'. The description mentions 'any type' but doesn't specify when creation is appropriate versus other operations on elements.

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/DollhouseMCP/DollhouseMCP'

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