Skip to main content
Glama

submit_colab_job

Submit Python scripts, notebooks, or local projects to run on idle Google Colab Pro GPU/TPU accounts within your allowance; outputs save to /content/outputs for retrieval.

Instructions

Submit a Python script (.py), notebook (.ipynb), or local project directory to run on an idle Google Colab Pro GPU/TPU account within this key's CU allowance and allowed models. Administrator credentials additionally support Google Drive mounting (drive_profile) to /content/drive/MyDrive. Supports running public dataset download commands inside Colab before training. Write outputs to /content/outputs (or $COLAB_OUTPUT_DIR) to retrieve them automatically.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "entrypoint": "<entrypoint>"
    },
    "name": "submit_colab_job"
  }
}

Input Schema

NameRequiredDescriptionDefault
gpuNoGPU accelerator: T4, L4, A100 (Pro), H100 or G4 (Pro+), or CPUT4
tpuNoOptional TPU type (v5e1, v6e1); overrides gpu when non-empty
nameNoExperiment nameai-exp
env_varsNoExtra environment variables passed to training script
high_memNo
priorityNoScheduling priority (-10 to 100; higher runs first)
entrypointYesEntrypoint script/notebook relative to workspace (e.g. 'train.py')train.py
script_argsNoCLI arguments passed to entrypoint
pip_packagesNoPackages installed via uv/pip before running
drive_profileNoAdministrator-only rclone Drive profile; leave empty for restricted MCP keys
drive_subpathNoOptional subpath inside Google Drive to scope mount/sync
script_contentNoInline UTF-8 Python script content (optional if local_workspace_dir is provided)
timeout_secondsNoMaximum job runtime in seconds
dataset_commandsNoShell commands executed inside Colab VM to download/extract public datasets
local_workspace_dirNoOptional local directory path to tar.gz and upload as the job workspace
drive_sync_outputs_toNoOptional Google Drive folder path to copy /content/outputs into on exit

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.3.0
    • changedInput schema / properties / drive_profile / description
      Previous value: -"Server rclone Google Drive profile name (mounts to /content/drive/MyDrive)"New value: +"Administrator-only rclone Drive profile; leave empty for restricted MCP keys"
  2. First observedv0.2.0

TDQS

A4/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden and does disclose useful behavior: idle-account scheduling, CU/model gating, admin-only Drive mounting at a fixed path, pre-training dataset commands, and automatic retrieval of anything written to /content/outputs or $COLAB_OUTPUT_DIR. It omits the most important behavioral fact for a 'submit' tool — whether the call blocks until completion or returns immediately with a job handle to poll — and says nothing about what happens on timeout or quota exhaustion.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four dense sentences that front-load the core action and constraint, then move to admin Drive mounting and the output-retrieval contract. No filler, though the long compound sentences could be split for faster scanning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 16-parameter, annotation-free mutation tool with no output schema, the definition covers inputs well but leaves the job lifecycle underspecified: no statement of return value, job handle, or how to follow up with get_colab_job. An agent can form the right call but cannot predict the response shape or whether it must poll.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 94%, so the baseline is 3; the description adds genuine value on top by explaining that drive_profile is administrator-only and must stay empty for restricted keys, that mounting targets /content/drive/MyDrive, and that dataset_commands run before the entrypoint. It does not clarify high_mem, priority, or gpu/tpu interaction beyond what the schema already says.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource: submit a Python script, notebook, or local project directory to run on an idle Colab Pro GPU/TPU account. The accepted input types and execution target are stated concretely, and the verb cleanly separates it from siblings like get_colab_job, cancel_colab_job, and list_colab_jobs.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives real preconditions: the job runs only within the key's CU allowance and allowed model list, drive_profile requires administrator credentials, and dataset_commands execute inside the VM before training. It never names an alternative tool or a when-not-to-use condition (e.g., checking colab_pool_status for idle capacity first, or polling with get_colab_job afterward), so routing guidance is clear but incomplete.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.