Skip to main content
Glama

kb_get_preferences

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

Instructions

Get user preferences

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The tool handler that executes kb_get_preferences by calling km.getPreferences() and returning the JSON stringified result.
    case 'kb_get_preferences': { return { content: [ { type: 'text', text: JSON.stringify(km.getPreferences(), null, 2) } ] }; }
  • Tool registration including name, description, and input schema (empty object).
    name: 'kb_get_preferences', description: 'Get user preferences', inputSchema: { type: 'object', properties: {} } },
  • KnowledgeManager.getPreferences() method that returns a copy of the stored preferences object.
    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