Skip to main content
Glama

kb_export

Export knowledge base data to JSON format for backup, transfer, or integration with other systems.

Instructions

Export knowledge base as JSON string

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Tool schema definition with empty input schema and description for exporting knowledge base as JSON.
    name: 'kb_export', description: 'Export knowledge base as JSON string', inputSchema: { type: 'object', properties: {} } },
  • MCP tool handler for 'kb_export' that calls KnowledgeManager.exportKnowledgeBase() and returns the JSON as text content.
    case 'kb_export': { const data = await km.exportKnowledgeBase(); return { content: [ { type: 'text', text: data } ] }; }
  • Core implementation of kb_export: serializes the entire knowledge base to formatted JSON string.
    async exportKnowledgeBase(): Promise<string> { return JSON.stringify(this.kb, null, 2); }

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