Skip to main content
Glama

save_checkpoint

Capture simulation state for later restoration, enabling you to resume from saved checkpoints without restarting from time zero.

Instructions

Save a simulation checkpoint for later restoration.

Checkpoints capture the complete simulator state. Use restore_checkpoint to return to this point without re-simulating from time 0.

Args: name: Checkpoint name (alphanumeric, e.g. "chk_10ms"). Auto-generated if empty.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Implementation Reference

  • The implementation of the `save_checkpoint` MCP tool which triggers a simulation checkpoint via the bridge.
    @mcp.tool()
    async def save_checkpoint(name: str = "") -> str:
        """Save a simulation checkpoint for later restoration.
    
        Checkpoints capture the complete simulator state. Use restore_checkpoint
        to return to this point without re-simulating from time 0.
    
        Args:
            name: Checkpoint name (alphanumeric, e.g. "chk_10ms"). Auto-generated if empty.
        """
        bridge = _get_bridge()
        cmd = f"__SAVE__ {name}" if name else "__SAVE__"
        result = await bridge.execute(cmd)
        return result

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/hslee-cmyk/xcelium-mcp'

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