Skip to main content
Glama

context_provenance

Retrieve recent provenance events to track context history and maintain information continuity across sessions.

Instructions

Get recent context/provenance events

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNo

Implementation Reference

  • The core logic that retrieves provenance events by reading events.jsonl from the contextfs namespace.
    function getProvenance(limit = 50) {
      const eventsPath = path.join(CONTEXTFS_ROOT, NAMESPACES.provenance, 'events.jsonl');
      const events = readJsonl(eventsPath);
      return events.slice(-limit);
    }
  • The tool definition and input schema registration.
    readOnlyTool({
      name: 'context_provenance',
      description: 'Get recent context/provenance events',
      inputSchema: {
        type: 'object',
        properties: {
          limit: { type: 'number' },
        },
      },
    }),

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/IgorGanapolsky/mcp-memory-gateway'

If you have feedback or need assistance with the MCP directory API, please join our Discord server