Skip to main content
Glama

checkpoint_restore

Restore a virtual filesystem workspace to a saved checkpoint for data recovery or state rollback.

Instructions

Restore workspace to a checkpoint.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Implementation Reference

  • Core handler method in CheckpointTools class that restores the workspace from a given checkpoint_id by delegating to CheckpointManager.
    async def checkpoint_restore( self, request: CheckpointRestoreRequest ) -> CheckpointRestoreResponse: """ Restore workspace to a checkpoint. Args: request: CheckpointRestoreRequest with checkpoint_id Returns: CheckpointRestoreResponse with success status """ await self.checkpoint_manager.restore_checkpoint(request.checkpoint_id) return CheckpointRestoreResponse( success=True, checkpoint_id=request.checkpoint_id, restored_at=datetime.now(UTC), )
  • MCP tool registration using @server.tool decorator, which delegates to the CheckpointTools instance.
    @server.tool async def checkpoint_restore(request: CheckpointRestoreRequest): """Restore workspace to a checkpoint.""" return await checkpoint_tools_instance.checkpoint_restore(request)
  • Pydantic model defining the input schema for the checkpoint_restore tool.
    class CheckpointRestoreRequest(BaseModel): """Request to restore checkpoint""" checkpoint_id: str
  • Pydantic model defining the output schema for the checkpoint_restore tool.
    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