Skip to main content
Glama

kb_get_custom

Retrieve custom knowledge from persistent storage by category, enabling AI agents to access structured personal and organizational information for informed responses.

Instructions

Get custom knowledge by category

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNoCategory to retrieve (optional, returns all if not specified)

Implementation Reference

  • MCP tool handler for kb_get_custom: extracts category from arguments, calls KnowledgeManager.getCustom(), and returns JSON string of results.
    case 'kb_get_custom': { const category = (args as any).category; const custom = km.getCustom(category); return { content: [ { type: 'text', text: JSON.stringify(custom, null, 2) } ] }; }
  • Tool schema definition including name, description, and input schema for kb_get_custom.
    { name: 'kb_get_custom', description: 'Get custom knowledge by category', inputSchema: { type: 'object', properties: { category: { type: 'string', description: 'Category to retrieve (optional, returns all if not specified)' } } } },
  • Core helper method in KnowledgeManager that filters and returns custom knowledge entries by optional category.
    getCustom(category?: string): CustomKnowledge[] { if (category) { return this.kb.custom.filter(k => k.category === category); } return [...this.kb.custom]; }

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