Skip to main content
Glama

checkpoint_delete

Remove a specific checkpoint from the virtual filesystem workspace to manage storage and maintain organized session data.

Instructions

Delete a checkpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
checkpoint_idYes

Implementation Reference

  • The core handler function for the checkpoint_delete tool. It calls the CheckpointManager to delete the specified checkpoint and returns a CheckpointRestoreResponse indicating success.
    async def checkpoint_delete(self, checkpoint_id: str) -> CheckpointRestoreResponse:
        """
        Delete a checkpoint.
    
        Args:
            checkpoint_id: Checkpoint ID to delete
    
        Returns:
            Response with success status
        """
        await self.checkpoint_manager.delete_checkpoint(checkpoint_id)
    
        return CheckpointRestoreResponse(
            success=True,
            checkpoint_id=checkpoint_id,
            restored_at=datetime.now(UTC),
        )
  • The registration of the checkpoint_delete tool in the MCP server using the @server.tool decorator. This thin wrapper delegates to the CheckpointTools instance method.
    @server.tool
    async def checkpoint_delete(checkpoint_id: str):
        """Delete a checkpoint."""
        return await checkpoint_tools_instance.checkpoint_delete(checkpoint_id)
  • Pydantic model for the output response of the checkpoint_delete tool (reused from checkpoint restore response). Defines success status, checkpoint ID, and restore timestamp.
    class CheckpointRestoreResponse(BaseModel):
        """Response from checkpoint restore"""
    
        success: bool
        checkpoint_id: str
        restored_at: datetime

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/chrishayuk/chuk-mcp-vfs'

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