Skip to main content
Glama

kb_get_preferences

Retrieve stored user preferences to personalize interactions and maintain context across AI sessions.

Instructions

Get user preferences

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:223-230 (registration)
    Registration of the kb_get_preferences tool in the tools array, defining name, description, and empty input schema.
    { name: 'kb_get_preferences', description: 'Get user preferences', inputSchema: { type: 'object', properties: {} } },
  • MCP tool handler that executes kb_get_preferences by retrieving preferences via KnowledgeManager and returning as JSON-formatted text content.
    case 'kb_get_preferences': { return { content: [ { type: 'text', text: JSON.stringify(km.getPreferences(), null, 2) } ] }; }
  • Core helper method returning a shallow copy of preferences from the internal knowledge base storage.
    getPreferences(): Preferences { return { ...this.kb.preferences }; }

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