Skip to main content
Glama
Colab MCP
by ALiwoto

connect_colab_tab

Move an MCP connection to an existing Colab tab selected from list_colab_tabs so the Chrome companion transfers the token without reloading the notebook.

Instructions

Move this MCP connection to an existing Colab tab from list_colab_tabs. The Chrome companion transfers the token automatically without reloading the target notebook. Does not change its runtime or execute cells. Finish or cancel file transfers first.

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": {
      "tab_id": "<tab_id>"
    },
    "name": "connect_colab_tab"
  }
}

Input Schema

NameRequiredDescriptionDefault
tab_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

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 real work: it discloses automatic token transfer by the Chrome companion, no notebook reload, no runtime change, no cell execution, and a file-transfer precondition. It omits what happens to the previously attached tab, required auth/permissions, and failure modes, which keeps it below 5.

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?

Four short sentences with the core action front-loaded, followed by mechanism, negative behaviors, and preconditions. No filler and nothing repeated.

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 single-parameter, no-annotation, no-output-schema tool, the description covers action, mechanism, side-effect boundaries, and a precondition. Only the return/confirmation behavior after a successful connection switch is left unstated.

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

Parameters3/5

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

Schema coverage is 0% and tab_id has no description or example, so the description must compensate. It usefully states where tab_id comes from (list_colab_tabs) but adds nothing about format, validity, or behavior for an unknown/closed tab id.

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 gives a specific verb and resource ('Move this MCP connection to an existing Colab tab') and names the sibling tool that supplies the target ('from list_colab_tabs'). It is clearly distinguishable from siblings like open_colab_browser_connection or list_colab_tabs.

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?

It tells the agent to source tab_id from list_colab_tabs and to finish or cancel file transfers first, which implicitly routes to cancel_transfer/transfer_status. There is no explicit when-not guidance (e.g., what to do if the tab no longer exists or the connection is already attached), so it stops short of a 5.

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