Skip to main content
Glama

kb_remove_custom

Delete specific custom knowledge entries from persistent storage by specifying category and key to manage stored information.

Instructions

Remove custom knowledge

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryYes
keyYes

Implementation Reference

  • src/index.ts:179-190 (registration)
    Tool registration including name, description, and input schema for kb_remove_custom.
    { name: 'kb_remove_custom', description: 'Remove custom knowledge', inputSchema: { type: 'object', properties: { category: { type: 'string' }, key: { type: 'string' } }, required: ['category', 'key'] } },
  • MCP tool handler that delegates to KnowledgeManager.removeCustomKnowledge and formats response.
    case 'kb_remove_custom': { const { category, key } = args as any; const removed = await km.removeCustomKnowledge(category, key); return { content: [ { type: 'text', text: removed ? `✅ Removed custom knowledge: ${category}/${key}` : `❌ Not found: ${category}/${key}` } ] }; }
  • Core implementation in KnowledgeManager that removes the specified custom knowledge entry, logs to history, persists changes, and returns success status.
    async removeCustomKnowledge(category: string, key: string): Promise<boolean> { const index = this.kb.custom.findIndex(k => k.category === category && k.key === key); if (index >= 0) { const oldValue = this.kb.custom[index].value; this.kb.custom.splice(index, 1); this.addHistory({ action: 'delete', category: `custom:${category}`, field: key, oldValue }); await this.save(); return true; } return false; }

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/hlsitechio/mcp-instruct'

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