Skip to main content
Glama

colab_ensure_session

Ensure a named Colab session exists by reusing it when found or creating it when absent; safe to call repeatedly.

Instructions

Make sure a named session exists: reuse it if colab status finds it, otherwise create it. Safe to call repeatedly.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
gpuNo
tpuNo
sessionYes
high_memNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/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 behavioral burden. It usefully discloses idempotency and the reuse-versus-create condition, but omits details such as authentication requirements, provisioning time, failure modes, or what creating a session entails.

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?

Two tight sentences, front-loaded with the core action and an important safety property. No wasted words.

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?

An output schema exists, so return details need not be explained. However, with no annotations and no parameter descriptions in the schema, the description is incomplete for three of four parameters and lacks behavioral details around session creation.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate for four undocumented parameters. It only implies the required 'session' parameter through 'named session' and says nothing about gpu, tpu, or high_mem.

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?

The description states a specific verb and resource ('Make sure a named session exists') and explains the reuse-or-create mechanism. It is clear what the tool does, but it does not explicitly contrast itself with sibling tools such as colab_new or colab_sessions.

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?

The phrase 'Safe to call repeatedly' implies usage for idempotent session setup, but the description does not explicitly state when to choose this over colab_new or other alternatives. Usage is inferable but not fully guided.

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