Skip to main content
Glama
DollhouseMCP

DollhouseMCP

Official

deactivate_element

Deactivate personas, skills, templates, agents, memories, or ensembles in the DollhouseMCP server to manage AI behavior configurations.

Instructions

Deactivate a specific element

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe element name to deactivate
typeYesThe element type

Implementation Reference

  • Registration of element tools including deactivate_element via getElementTools call to ToolRegistry
    // Register element tools (new generic tools for all element types)
    this.toolRegistry.registerMany(getElementTools(instance));
  • The tool definition, input schema, and handler for 'deactivate_element'. The handler delegates to server.deactivateElement(name, type).
      tool: {
        name: "deactivate_element",
        description: "Deactivate a specific element",
        inputSchema: {
          type: "object",
          properties: {
            name: {
              type: "string",
              description: "The element name to deactivate",
            },
            type: {
              type: "string",
              description: "The element type",
              enum: Object.values(ElementType),
            },
          },
          required: ["name", "type"],
        },
      },
      handler: (args: DeactivateElementArgs) => server.deactivateElement(args.name, args.type)
    },
  • TypeScript interface defining the arguments for deactivate_element
    interface DeactivateElementArgs {
      name: string;
      type: string;
    }
  • Interface definition for the server method called by the tool handler
    deactivateElement(name: string, type: string): Promise<any>;

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