Skip to main content
Glama
MOT1209

Google Colab MCP Server

by MOT1209

colab_write_file

Create or update files in the Colab sandbox by writing text content to a relative path.

Instructions

Write text content to a file in the runtime's sandboxed workspace. Path is relative to the runtime's sandboxed workspace (e.g. /content/mcp_workspace).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYes
contentYes
session_idNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It discloses the file is written to the sandboxed workspace and that paths are relative, which is useful context. However, it does not mention whether the file is overwritten or appended, what happens if the path does not exist, whether the directory is created automatically, or any permission requirements. For a write operation, these are important behavioral traits not disclosed.

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 description is a single sentence that is concise and gets to the point. It is not overly verbose, but it lacks structured details like parameter explanations or usage examples that could be front-loaded. It does not waste words, but the brevity means some information is missing. Overall, it is appropriately sized for a simple tool.

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?

For a write tool with no output schema and no annotations, the description is somewhat minimal. It covers the essential purpose and path context, but lacks information about session_id, overwrite behavior, directory creation, and error conditions. Given the complexity (3 parameters, sandboxed environment), an agent might need additional details to avoid misusing the tool. The description is adequate but not comprehensive.

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 the parameters. The description explains 'path' (relative to sandboxed workspace) and 'content' (text content), but does not explain 'session_id' at all. Since 'session_id' is a parameter that likely selects the runtime session, its absence in the description is a gap. The parameter names are not self-explanatory enough without documentation.

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 ('write') and resource ('text content to a file'), and specifies the location (sandboxed workspace) with an example path. It distinguishes from siblings like colab_read_file and colab_upload_file by clarifying it writes text content, not binary uploads. However, it doesn't explicitly name a sibling to differentiate from, but the purpose is clear.

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 it: when you want to write text content to a file in the runtime workspacechesheetbs. It mentions the relative path convention, which serves as a usage hint. However, it does not explicitly state when not to use it or mention alternatives (e.g., when to use colab_upload_file for binary files). No exclusions are provided.

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