Skip to main content
Glama

memento_onboarding

Provides onboarding guidance for Memento's long-term memory system, including retrieval workflows, storage protocols, and best practices for cross-session knowledge management.

Instructions

Get comprehensive onboarding protocol for Memento including tool usage guidance, retrieval flow optimization, and best practices.

MEMENTO ONBOARDING PROTOCOL:

  1. INITIALIZATION: Run memento_onboarding() at session start

  2. RETRIEVAL FLOW:

    • Fact Check: Use search_mementos(tags=[...]) for simple identity/known facts

    • Complex Tasks: Use recall_mementos(query="...") for dev/architecture context

    • Fallback: If search fails, fallback to recall

  3. AUTOMATIC STORAGE: Store via store_memento on git commits, bug fixes, version releases

  4. ON-DEMAND TRIGGERS: Store instantly when user says "memento...", "remember...", etc.

  5. MEMORY SCHEMA: Required tags (project, tech, category). Importance: 0.8+ (critical), 0.5 (standard)

OPTIMIZED RETRIEVAL (Avoid 6+ tool calls):

  • Target: 1-3 tool calls for simple info

  • Maximum: 5 tool calls for complex tasks

  • Follow decision tree: Known tags → search_mementos, Conceptual → recall_mementos

CRITICAL DISTINCTION: Memento vs Session memory

  • Memento: Long-term, cross-session, global scope

  • Session Memory: Temporary, project-specific, session-only

USE memento_onboarding(topic="...") for specific guidance:

  • "protocol": Full onboarding protocol

  • "retrieval_flow": Optimized retrieval guide

  • "distinction": Memento vs Session memory

  • "examples": Practical examples

  • "best_practices": Usage guidelines

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
topicNoSpecific topic for onboarding guidanceonboarding

Implementation Reference

  • The primary handler for the 'memento_onboarding' tool, which processes the tool call and returns the onboarding content based on the specified topic.
    async def handle_memento_onboarding(
        context: Any, arguments: Dict[str, Any]
    ) -> CallToolResult:
        """
        Handle memento_onboarding tool call.
    
        Provides comprehensive onboarding protocol for Memento including
        tool usage guidance, retrieval flow optimization, and best practices.
    
        Args:
            context: Tool context with database and configuration
            arguments: Tool arguments including optional topic
    
        Returns:
            CallToolResult with onboarding content
        """
        topic = arguments.get("topic", "onboarding")
    
        onboarding_content = _generate_onboarding_content(topic)
    
        return CallToolResult(
            content=[
                TextContent(
                    type="text",
                    text=onboarding_content,
                )
            ]
        )
  • The tool registration where 'memento_onboarding' is defined, including its description, input schema, and purpose.
                name="memento_onboarding",
                description="""Get comprehensive onboarding protocol for Memento including tool usage guidance, retrieval flow optimization, and best practices.
    
    MEMENTO ONBOARDING PROTOCOL:
    1. INITIALIZATION: Run memento_onboarding() at session start

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/annibale-x/mcp-memento'

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