Skip to main content
Glama

checkpoint_create

Save a snapshot of the current workspace state to preserve progress and enable rollback to previous versions.

Instructions

Create a checkpoint of the current workspace state.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Implementation Reference

  • The core handler function in CheckpointTools class that executes the checkpoint creation logic by calling the checkpoint_manager and constructing the response.
    async def checkpoint_create( self, request: CheckpointCreateRequest ) -> CheckpointCreateResponse: """ Create a checkpoint of the current workspace state. Args: request: CheckpointCreateRequest with name and description Returns: CheckpointCreateResponse with checkpoint info """ checkpoint_info = await self.checkpoint_manager.create_checkpoint( name=request.name, description=request.description ) return CheckpointCreateResponse( success=True, checkpoint_id=checkpoint_info.id, created_at=checkpoint_info.created_at, )
  • MCP server tool registration using @server.tool decorator, which proxies the call to the CheckpointTools instance's checkpoint_create method.
    @server.tool async def checkpoint_create(request: CheckpointCreateRequest): """Create a checkpoint of the current workspace state.""" return await checkpoint_tools_instance.checkpoint_create(request)
  • Pydantic schema definitions for the input CheckpointCreateRequest and output CheckpointCreateResponse models used by the tool.
    class CheckpointCreateRequest(BaseModel): """Request to create checkpoint""" name: str | None = None description: str = "" class CheckpointCreateResponse(BaseModel): """Response from checkpoint creation""" success: bool checkpoint_id: str created_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