Skip to main content
Glama

delete_persona

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

Instructions

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

Input Schema

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

Implementation Reference

  • src/index.ts:359-372 (registration)
    Registration of the 'delete_persona' tool in the ListToolsRequestHandler, defining its name, description, and input schema.
    { name: 'delete_persona', description: '페르소나 프로필을 삭제합니다', inputSchema: { type: 'object', properties: { name: { type: 'string', description: '삭제할 페르소나 이름', }, }, required: ['name'], }, },
  • Zod schema for validating the input arguments of the delete_persona tool, requiring a valid persona name.
    export const deletePersonaSchema = z.object({ name: personaNameSchema, });
  • Handler logic in the CallToolRequestHandler switch statement that validates arguments using deletePersonaSchema, calls deletePersona, and returns success message.
    case 'delete_persona': { const validated = deletePersonaSchema.parse(args); await deletePersona(validated.name); return { content: [ { type: 'text', text: `페르소나 "${validated.name}"이(가) 삭제되었습니다.`, }, ], }; }
  • Core helper function that validates the persona name and deletes the corresponding .txt file from the local persona directory.
    async function deletePersona(name: string): Promise<void> { const validatedName = validatePersonaName(name); const filePath = path.join(PERSONA_DIR, `${validatedName}.txt`); await fs.unlink(filePath); }

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