Skip to main content
Glama
MOT1209

Google Colab MCP Server

by MOT1209

colab_edit_cell

Replace the contents of an existing notebook cell by specifying its index and new source code.

Instructions

Replace the source of one existing cell by index.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
indexYes
sourceYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the behavioral burden. It clearly communicates that this is a mutating operation that replaces the old cell source with the provided source. Yet it does not disclose persistence behavior, side effects, authentication needs, or what happens when the index is invalid.

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?

The description is a single front-loaded sentence with no filler. Every word earns its place, and the core action is immediately clear.

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 simple three-parameter edit operation, the description covers the operation, target, and replacement content. It does not fully specify the meaning of 'path' or error behavior, but the essential calling context is mostly sufficient despite lacking annotations and an output schema.

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 description coverage is 0%, so the description must compensate. It adds meaning to 'source' as the replacement source and 'index' as the cell's position among existing cells, but 'path' is left unexplained and must be inferred from the tool name and domain.

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 states a specific verb ('Replace'), a precise object ('the source of one existing cell'), and the selection mechanism ('by index'). This clearly distinguishes it from sibling tools like colab_add_cell, colab_delete_cell, and colab_execute_cell.

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 description implies when to use this tool: when you need to overwrite an existing cell's source by its index. However, it does not explicitly state alternatives or provide exclusion criteria like 'use colab_add_cell to create a new cell instead.'

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