Skip to main content
Glama

colab_fs_write

Write files in a Google Colab runtime by providing base64-encoded data, with options to append, atomically replace, and create parent directories.

Instructions

Write a small chunk. Append retries are not idempotent; stat before retrying ambiguous writes.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
pathYesRuntime path confined to /content; relative paths resolve under /content.
appendNoTrue appends; false atomically replaces the file. Default false.
sessionNoTracked session name. Null is allowed only when exactly one session exists.
data_base64YesBase64-encoded bytes; decoded payload is limited to 1,000,000 bytes.
create_parentsNoTrue creates missing parent directories; default false.
Behavior3/5

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

With no annotations, the description carries the burden of disclosure. It does provide a non-obvious behavioral caveat about append retries not being idempotent and advising a stat before retry. However, it omits other relevant traits like atomicity details (though schema covers replace/append) and does not mention permission requirements or failure 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?

Extremely concise: two sentences with no filler. The key action is front-loaded, and the retry warning is an efficient addition that earns its place.

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?

Given the moderate complexity (5 params, no output schema, no annotations), the description is minimal but not fully complete. It provides a useful retry caution, yet lacks usage guidance and fails to mention what happens on success/failure, leaving the agent to infer from schema and sibling context.

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 100%, so the schema fully documents all five parameters. The description adds minimal parameter meaning beyond the schema; 'small chunk' hints at size limits, but the schema already states the 1,000,000-byte cap for data_base64.

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 the action ('Write') and resource ('a small chunk'), clearly indicating a file write operation. It distinguishes from siblings like colab_fs_read and colab_fs_list by focusing on writing, though 'chunk' is slightly vague and could imply partial writes.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No explicit guidance on when to use this tool versus alternatives such as colab_upload or colab_fs_move. The retry warning implies a write scenario, but there is no mention of preferred use cases or exclusions.

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/anluin/colab-mcp'

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