Skip to main content
Glama

kb_get_history

Retrieve recent changes to your knowledge base to track updates and maintain awareness of modifications.

Instructions

Get recent history of knowledge base changes

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoNumber of history entries to return

Implementation Reference

  • Handler for the kb_get_history tool. Extracts the optional 'limit' parameter (default 20), retrieves history using KnowledgeManager.getHistory(), and returns it as formatted JSON text content.
    case 'kb_get_history': { const limit = (args as any).limit || 20; const history = km.getHistory(limit); return { content: [ { type: 'text', text: JSON.stringify(history, null, 2) } ] }; }
  • Tool schema and registration definition including name, description, and inputSchema for the kb_get_history tool, registered in the tools list for MCP ListToolsRequest.
    { name: 'kb_get_history', description: 'Get recent history of knowledge base changes', inputSchema: { type: 'object', properties: { limit: { type: 'number', default: 20, description: 'Number of history entries to return' } } }
  • Core helper method in KnowledgeManager that implements the history retrieval logic by slicing the last 'limit' entries from the internal kb.history array.
    getHistory(limit: number = 20): HistoryEntry[] { return this.kb.history.slice(-limit); }

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