Skip to main content
Glama

upload_file

Copies a local file into a Colab notebook runtime filesystem, transferring it in base64 chunks and verifying the SHA-256 hash after upload.

Instructions

Copy a local file into the notebook runtime's filesystem (e.g. /content/data.csv).

Transfers in base64 chunks through temporary cells and verifies the SHA-256 on the runtime afterwards.

Input Schema

NameRequiredDescriptionDefault
overwriteNo
local_pathYes
remote_pathYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.1

TDQS

B3.3/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden. It usefully discloses the transfer mechanism (base64 chunks through temporary cells) and post-transfer SHA-256 verification, but omits the highest-risk behavior: the schema's overwrite parameter defaults to true, meaning an existing remote file is silently replaced, and nothing about size limits or runtime filesystem ephemerality is mentioned.

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?

Two sentences, zero waste. The core action and destination example come first, with the transport/verification detail following as supporting context.

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?

An output schema exists, so return values need not be explained, and the mechanism is well covered. However, for a write tool with no annotations, the silent-overwrite default and runtime connectivity/size constraints are material omissions that an agent would want before invoking it.

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% across 3 parameters. The description only illustrates remote_path format via the example; local_path format is unaddressed and the destructive default of overwrite=true is never surfaced, which is exactly the gap the description needed to fill.

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?

States a specific verb and resource pairing — 'Copy a local file into the notebook runtime's filesystem' — with a concrete destination example (/content/data.csv). It implicitly contrasts with the download_file sibling via directionality, but never names the inverse operation.

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 directional wording ('local file into the runtime') implies when to prefer this over download_file, but there is no explicit when-to-use statement, no prerequisites, and no exclusions such as whether the runtime must be connected first.

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