Skip to main content
Glama

colab_session_stop

Terminate and permanently delete a Google Colab session, removing its kernel state. Use this destructive action to stop and clean up a session that is no longer needed.

Instructions

Stop (terminate and delete) a Colab session.

WARNING: This is a destructive operation. The session and its kernel state will be permanently deleted. Files in /content persist on the runtime filesystem but the session cannot be resumed.

Args: name: Session display name

Returns: Confirmation that session was terminated

Raises: ToolError: SESSION_NOT_FOUND, AUTH_EXPIRED, CLI_ERROR

Input Schema

NameRequiredDescriptionDefault
nameYes

Output Schema

NameRequiredDescriptionDefault
nameYes
terminatedNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior4/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 so well: it declares the operation destructive and permanent, explains that kernel state is lost, that /content files persist on the runtime filesystem, that the session cannot be resumed, and it enumerates failure modes (SESSION_NOT_FOUND, AUTH_EXPIRED, CLI_ERROR). It stops short of stating auth/permission requirements or idempotency behavior on an already-stopped session.

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 core action and the WARNING are front-loaded, which is exactly right for a destructive tool. The Args/Returns/Raises scaffolding is slightly heavier than needed for a single-parameter tool but every line still carries information.

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?

For a one-parameter destructive tool, the description covers the mutation semantics, data persistence boundary, irreversibility, return confirmation, and error taxonomy. With an output schema present, the brief Returns line is sufficient and nothing an agent needs to call it safely is missing.

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 description coverage is 0%, so the description must compensate, and it does by labeling 'name' as the session display name — usefully implying it is not an ID. It does not specify format, case sensitivity, or how to discover valid names (presumably via colab_session_list).

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?

States a specific verb and resource ('Stop (terminate and delete) a Colab session') and disambiguates the ambiguous word 'stop' by parenthetically defining it as terminate-and-delete. It is clearly distinguishable from siblings such as colab_session_create, colab_session_list, and colab_session_get.

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 context of use is implied by the destructive framing, but there is no explicit guidance on when to prefer this over alternatives (e.g., check state with colab_session_get first) or when not to call it. The consequence statement helps the agent decide, but routing guidance is absent.

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