Skip to main content
Glama

run_code_cell

Run a code cell in a Colab notebook by providing its cell ID and get the output back.

Instructions

Executes the code in the cell with the provided cell ID. The cell must be a code cell type. The output of the cell execution is returned.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cellIdYesThe ID of the code cell to execute.
Behavior3/5

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

With no annotations provided, the description carries the full burden. It discloses that the tool executes code and returns output, and it includes a prerequisite (cell must be code type). However, it does not mention potential side effects, error conditions, or async behavior.

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 two sentences long, concise, and front-loaded with the core action. Every sentence adds value without waste.

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?

Given the low complexity (1 param, no output schema, no annotations), the description covers the essential purpose and a key constraint. It could improve by distinguishing from similar sibling tools like run_cell_range, but it is still good for a simple tool.

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?

The schema has 100% coverage, and the parameter description is already present. The description adds a usage constraint (cell must be code type) but does not add semantic meaning beyond the schema for the 'cellId' parameter.

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 clearly states the verb 'executes' and the resource 'code cell', and it distinguishes from siblings like add_code_cell or run_all_cells by specifying it runs a single cell and returns output.

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 mentions the cell must be a code cell type, which provides some context, but it does not explicitly compare with sibling tools like run_cell_range or run_all_cells, nor does it state when not to use this tool.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/404F0X/better_colab_MCP'

If you have feedback or need assistance with the MCP directory API, please join our Discord server