colab-persist
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| runtime_statusA | Check the configured Colab runtime and Drive connection without provisioning compute. |
| runtime_specsA | List the runtime types (GPU, TPU, CPU, high-memory) this account is eligible for, and its Colab tier. |
| plan_datasetA | Validate a local immutable shard manifest and size a bounded cache for large datasets. Reads only the manifest, not the corpus. Does not provision a VM, contact Drive, or confirm source files, VM free disk, Drive quota, throughput or GPU model fit. Training scripts use colab_persist.datasets.ShardCache on the VM. |
| start_runtimeA | Provision or reuse the configured runtime. Default GPU is L4. Consumes Colab units. Drive connects automatically through the Drive API; no browser consent is needed. Use runtime_specs to see eligible GPU/TPU types. Choose at most one of gpu, tpu or cpu. |
| prepare_workspaceC | Create a managed workspace or restore its latest Drive checkpoint on a fresh VM. |
| run_scriptA | Run a local Python script on the active GPU VM as a detached managed job. Restores previous files, uploads the script (or an explicitly selected source directory), checkpoints to Drive periodically with verified uploads, saves on exit, then stops by default. The job keeps running on the VM if this call is interrupted. With detach=true the call returns right after launch; follow with job_status or attach_job. Only workspace files are saved. |
| job_statusA | Check a managed job's state, last checkpoint and recent log lines. Refreshes the VM's Drive token. |
| attach_jobB | Follow a running managed job until it ends, then save and (by default) stop. Can be long-running. |
| list_checkpointsB | List complete checkpoints in Drive. Works from this computer without a running VM. |
| restore_workspaceB | Restore a verified Drive checkpoint into an empty workspace. Refuses overwrites. |
| save_workspacesA | Checkpoint all managed workspaces to Drive with verified uploads. VM stays allocated. Refuses if managed jobs are active. |
| safe_stopA | Save all managed workspaces and stop the VM only after Drive verifies every upload. Unmanaged processes and files outside the workspace are not captured. Saving failures leave the VM running so the user can recover. Refuses while managed jobs are active. With no managed workspace there is nothing to save; the VM stops and the result reports nothing_to_save: true. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 12 tools
Most tools target distinct lifecycle stages (status, provisioning, jobs, checkpoints, stopping). A few pairs could be confused: prepare_workspace both creates and restores while restore_workspace restores explicitly, and save_workspaces versus safe_stop both save (though safe_stop also stops the VM). These overlaps are manageable given the descriptions.
The set is predominantly consistent verb_noun snake_case (start_runtime, run_script, attach_job, list_checkpoints, restore_workspace). Minor deviations are noun-first names like runtime_status, runtime_specs, job_status and the adjective-first safe_stop, but the pattern remains readable and predictable.
Twelve tools is well within the ideal 3-15 range and each maps to a meaningful part of the Colab persistence workflow. The surface is cohesive rather than padded, with no redundant tools.
Core lifecycle coverage is strong: runtime discovery/status/start, workspace prepare/save/restore, job run/status/attach, checkpoint listing, safe stop, and dataset planning. Notable gaps remain around job cancellation (no cancel_job/stop_job) and checkpoint deletion, and safe_stop refuses while jobs are active, so agents may lack a recovery path for stuck jobs.