Skip to main content
Glama
DollhouseMCP

DollhouseMCP

Official

delete_element

Remove elements like personas, skills, or agents from DollhouseMCP and optionally delete their associated data files to manage AI persona configurations.

Instructions

Delete an element and optionally its associated data files

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe element name to delete
typeYesThe element type
deleteDataNoWhether to delete associated data files (if not specified, will prompt)

Implementation Reference

  • Registration of the 'delete_element' tool, defining its name, description, input schema, and handler that delegates to the server's deleteElement method.
      tool: {
        name: "delete_element",
        description: "Delete an element and optionally its associated data files",
        inputSchema: {
          type: "object",
          properties: {
            name: {
              type: "string",
              description: "The element name to delete",
            },
            type: {
              type: "string",
              description: "The element type",
              enum: Object.values(ElementType),
            },
            deleteData: {
              type: "boolean",
              description: "Whether to delete associated data files (if not specified, will prompt)",
              default: undefined,
            },
          },
          required: ["name", "type"],
        },
      },
      handler: (args: DeleteElementArgs) => server.deleteElement(args)
    },
  • TypeScript interface defining the input arguments for the delete_element tool.
    interface DeleteElementArgs {
      name: string;
      type: string;
      deleteData?: boolean;
    }
  • IToolHandler interface method signature for deleteElement, specifying input shape and return type.
    deleteElement(args: {name: string; type: string; deleteData?: boolean}): Promise<any>;
  • The tool handler function for delete_element, which calls the server's deleteElement method with the provided arguments.
    handler: (args: DeleteElementArgs) => server.deleteElement(args)
Behavior2/5

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

No annotations are provided, so the description carries full burden. While 'delete' implies a destructive operation, the description doesn't disclose whether deletion is permanent, reversible, requires specific permissions, or what happens to dependencies. The optional data file deletion adds some context, but overall behavioral disclosure is minimal for a destructive tool.

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 action and an important option. Every word earns its place with zero waste, making it appropriately sized and front-loaded.

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 destructive deletion tool with no annotations and no output schema, the description is inadequate. It doesn't explain what 'delete' means operationally, what gets returned, error conditions, or how this differs from similar tools. The context demands more completeness given the tool's potential impact.

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 three parameters thoroughly. The description adds minimal value by mentioning 'associated data files' which relates to the 'deleteData' parameter, but doesn't provide additional semantics beyond what's in the schema. This meets the baseline for high schema coverage.

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 'delete' and the resource 'element', making the purpose specific and understandable. It also mentions 'associated data files' which adds useful context. However, it doesn't explicitly differentiate from sibling tools like 'deactivate_element' or 'clear_github_auth' which might also remove things.

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. It doesn't mention prerequisites, when deletion is appropriate versus deactivation, or what happens if the element doesn't exist. With many sibling tools available, this lack of differentiation is a significant gap.

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