Skip to main content
Glama

colab_poll

Read-only

Poll a background job for current status and results. Retrieve execution output when complete or error details on failure.

Instructions

Poll a background job for its current status and results.

Use this after launching a background execution with colab_execute(..., background=True) to check progress and retrieve results when complete.

Interpreting the response:

  • status='starting' or 'running': job is in progress, poll again later.

  • status='completed': result field contains the execution output.

  • status='failed': error field describes what went wrong.

  • status='cancelled': job was stopped via colab_cancel.

Common issues:

  • Unknown job_id: use colab_jobs to list all tracked jobs.

  • Jobs are cleaned up automatically after 5 minutes.

Args: job_id: The job identifier returned by colab_execute.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
job_idYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so the description adds value by detailing the response statuses (starting/running/completed/failed/cancelled), cleanup after 5 minutes, and common issues, providing rich behavioral context beyond the annotations.

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?

The description is well-structured with sections for usage, response interpretation, common issues, and args. It is front-loaded with the purpose and avoids unnecessary words, though it is slightly lengthy.

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

Completeness5/5

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

Given the existence of an output schema, the description adequately covers all necessary context: usage, response interpretation, common issues, and parameter semantics. It is complete for a polling tool.

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 0%, but the description compensates by explaining job_id as 'The job identifier returned by colab_execute', adding meaning to the only parameter.

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?

The description clearly states 'Poll a background job for its current status and results' and distinguishes itself by explicitly directing usage after colab_execute(..., background=True), differentiating from sibling tools like colab_jobs and colab_cancel.

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

Usage Guidelines5/5

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

It explicitly says when to use ('after launching a background execution with colab_execute(..., background=True)') and provides context for when not to use or alternatives (e.g., 'use colab_jobs to list all tracked jobs' for unknown job_id).

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

Install Server

Other Tools

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/mio-github/mcp-colab-gpu'

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