Skip to main content
Glama

validate_element

Check element correctness and best practices for personas, skills, templates, agents, memories, or ensembles in DollhouseMCP's AI persona management system.

Instructions

Validate an element for correctness and best practices

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe element name to validate
typeYesThe element type
strictNoWhether to apply strict validation rules

Implementation Reference

  • Core tool definition including handler logic for 'validate_element'. The handler delegates to the server's validateElement method after schema validation.
    { tool: { name: "validate_element", description: "Validate an element for correctness and best practices", inputSchema: { type: "object", properties: { name: { type: "string", description: "The element name to validate", }, type: { type: "string", description: "The element type", enum: Object.values(ElementType), }, strict: { type: "boolean", description: "Whether to apply strict validation rules", default: false, }, }, required: ["name", "type"], }, }, handler: (args: ValidateElementArgs) => server.validateElement(args) },
  • TypeScript interface defining input parameters for validate_element tool.
    interface ValidateElementArgs { name: string; type: string; strict?: boolean; }
  • Global registration of all element tools, including validate_element, into the tool registry.
    // Register element tools (new generic tools for all element types) this.toolRegistry.registerMany(getElementTools(instance));
  • IToolHandler interface defining the validateElement method signature used by the tool handler.
    validateElement(args: {name: string; type: string; strict?: boolean}): 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