Skip to main content
Glama
DollhouseMCP

DollhouseMCP

Official

create_element

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

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

  • Core implementation of the 'create_element' tool: defines the tool schema, description, and handler function that executes server.createElement(args). This is the primary handler logic for the MCP tool.
    {
      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)
    },
  • TypeScript interface defining the input parameters for create_element tool, used by the handler.
    interface CreateElementArgs {
      name: string;
      description: string;
      type: string;
      content?: string;
      metadata?: Record<string, any>;
    }
  • Registers the create_element tool (as part of element tools) with the ToolRegistry during server setup.
    // Register element tools (new generic tools for all element types)
    this.toolRegistry.registerMany(getElementTools(instance));
  • Server interface definition for the createElement method called 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 for behavioral disclosure. While 'Create' implies a write/mutation operation, the description doesn't address permissions needed, whether creation is reversible, what happens on duplicate names, or what the response looks like. For a creation tool with zero annotation coverage, this is inadequate.

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 a single, efficient sentence that communicates the core purpose without unnecessary words. It's appropriately sized for a creation tool and front-loads the essential information.

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 creation tool with no annotations and no output schema, the description is insufficient. It doesn't explain what happens after creation, what validation occurs, how errors are handled, or what the tool returns. Given the complexity implied by the 5 parameters (including nested objects and conditional requirements), more context is needed.

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 already documents all 5 parameters thoroughly. The description adds no parameter-specific information beyond what's in the schema. The baseline of 3 is appropriate when the schema does the heavy lifting for parameter documentation.

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 'Create a new element of any type' clearly states the verb (create) and resource (element), and specifies the scope ('of any type'). However, it doesn't distinguish this tool from sibling tools like 'edit_element' or 'import_persona' which also create or modify elements in different ways.

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?

The description provides no guidance on when to use this tool versus alternatives. With many sibling tools that handle elements (edit_element, delete_element, import_persona, list_elements, etc.), there's no indication of when this general creation tool is appropriate versus more specialized alternatives.

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/mcp-server'

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