Skip to main content
Glama

delete_persona

Remove a specific persona profile from the Persona MCP server to manage your available expert personas and optimize system resources.

Instructions

페르소나 프로필을 삭제합니다

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYes삭제할 페르소나 이름

Implementation Reference

  • The core handler function that performs the actual deletion of the persona file after validating the name and constructing the file path.
    async function deletePersona(name: string): Promise<void> { const validatedName = validatePersonaName(name); const filePath = path.join(PERSONA_DIR, `${validatedName}.txt`); await fs.unlink(filePath); }
  • Zod schema defining the input structure for the delete_persona tool, requiring a validated persona name.
    export const deletePersonaSchema = z.object({ name: personaNameSchema, });
  • src/index.ts:359-372 (registration)
    Tool registration in the ListTools handler, specifying the name, description, and input schema for delete_persona.
    { name: 'delete_persona', description: '페르소나 프로필을 삭제합니다', inputSchema: { type: 'object', properties: { name: { type: 'string', description: '삭제할 페르소나 이름', }, }, required: ['name'], }, },
  • Dispatcher case in the CallTool handler that validates the input using the schema and invokes the deletePersona handler function.
    case 'delete_persona': { const validated = deletePersonaSchema.parse(args); await deletePersona(validated.name); return { content: [ { type: 'text', text: `페르소나 "${validated.name}"이(가) 삭제되었습니다.`, }, ], }; }

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/seanshin0214/persona-mcp'

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