Skip to main content
Glama

delete_memento

Remove a stored memory and all its associated connections from the MCP Memento server's knowledge base.

Instructions

Delete a memento and all its relationships

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
memory_idYesID of the memory to delete

Implementation Reference

  • The handler function that executes the deletion of a memento in the database.
    async def handle_delete_memento(
        memory_db: SQLiteMemoryDatabase, arguments: Dict[str, Any]
    ) -> CallToolResult:
        """Handle delete_memory tool call.
    
        Args:
            memory_db: Database instance for memory operations
            arguments: Tool arguments from MCP call containing:
                - memory_id: ID of memory to delete
    
        Returns:
            CallToolResult with success message or error
        """
        memory_id = arguments["memory_id"]
    
        success = await memory_db.delete_memory(memory_id)
    
        if success:
            return CallToolResult(
                content=[
                    TextContent(
                        type="text", text=f"Memory deleted successfully: {memory_id}"
                    )
                ]
            )
        else:
            return CallToolResult(
                content=[
                    TextContent(
                        type="text",
                        text=f"Failed to delete memory (may not exist): {memory_id}",
                    )
                ],
                isError=True,
            )
  • The MCP tool definition for delete_memento, including its description and input schema.
    Tool(
        name="delete_memento",
        description="Delete a memento and all its relationships",
        inputSchema={
            "type": "object",
            "properties": {
                "memory_id": {
                    "type": "string",
                    "description": "ID of the memory to delete",
                },
            },
            "required": ["memory_id"],
  • The mapping of the delete_memento tool name to its handler function in the registry.
    "delete_memento": handle_delete_memento,
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations provided, so description carries full burden. Partially succeeds by disclosing that relationships are destroyed alongside the memento (cascade behavior). However, fails to mention irreversibility, authorization requirements, or impact on related mementos when their relationships are severed.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise at 7 words with front-loaded verb. No redundant text. However, brevity borders on under-specification for a destructive tool that warrants safety warnings.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

As a destructive mutation tool with cascade effects, no output schema, and zero annotations, the description is insufficient. It mentions relationship deletion but omits critical safety context (permanent data loss, orphaned relationship handling) required for responsible invocation.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (memory_id fully documented in schema). Description adds no parameter-specific guidance, but per rubric guidelines, baseline is 3 when schema coverage is high.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States specific verb 'Delete' and resource 'memento' plus scope 'all its relationships', effectively distinguishing from sibling read tools (get_memento, search_mementos) and update tools. However, lacks explicit guidance distinguishing when to use this versus update_memento.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides no guidance on when to use this tool versus alternatives, nor warnings about irreversibility. For a destructive cascade operation, the absence of prerequisites or safety considerations is a significant gap.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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

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