Skip to main content
Glama

validate_element

Validate elements like personas, skills, and agents for correctness and best practices in the DollhouseMCP server to ensure proper functionality and compatibility.

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

  • Tool registration for 'validate_element' including schema and handler that delegates to server.validateElement
    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)
  • Type definition for input arguments to validate_element tool
    interface ValidateElementArgs { name: string; type: string; strict?: boolean; }
  • IToolHandler interface definition for validateElement method signature
    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/DollhouseMCP'

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