Skip to main content
Glama

colab_session_list

List all active Colab sessions with their names, IDs, hardware, shape, variant, and status to inspect running environments.

Instructions

List all active Colab sessions.

Returns: List of sessions with name, session_id, hardware, shape, variant, status

Raises: ToolError: AUTH_EXPIRED, CLI_ERROR

Input Schema

NameRequiredDescriptionDefault

No arguments

Output Schema

NameRequiredDescriptionDefault
sessionsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

With no annotations at all, the description carries the full burden, and it does deliver real behavioral context: the exact fields returned and two named failure modes (AUTH_EXPIRED, CLI_ERROR). It stops short of stating ordering/pagination or confirming the operation is strictly non-mutating.

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

Conciseness5/5

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

Three lines, front-loaded with the single action sentence, then structured Returns/Raises blocks. Nothing is padded and the caller's two questions (what do I get, what can go wrong) are answered immediately.

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

Completeness4/5

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

For a zero-param, no-annotation tool, the definition covers purpose, return shape and error modes. An output schema exists, so the Returns block is mildly redundant, and it omits whether stopped sessions are excluded from 'active' or how many sessions can come back.

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?

Zero parameters, so there is nothing to disambiguate — baseline 4 applies. The description correctly implies no filtering is possible, since it lists all active sessions unconditionally.

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

Purpose4/5

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

States a specific verb and resource ('List all active Colab sessions') with a clear scope qualifier ('active'). The plural 'all' implicitly contrasts with colab_session_get, but the description never names that sibling, so differentiation is inferred rather than stated.

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

Usage Guidelines3/5

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

Usage is only implied by the enumeration semantics of 'List all active' — an agent can infer this is the discovery/entry-point call before colab_session_get or colab_code_execute. There is no explicit when-to-use, when-not-to-use, or alternative named.

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