Skip to main content
Glama

upload_file

Transfer files from your host system to the /app directory of the container for code execution. Specify source file path and destination relative path to make files accessible within the container.

Instructions

Upload a file from the host filesystem to the container's /app directory.

    Makes a file from the host available inside the container for code execution.
    The uploaded file can then be accessed in execute_ipython_cell using the
    path '/app/{relpath}'.
    

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
local_pathYesAbsolute path to the source file on host filesystem that will be uploaded
relpathYesDestination path relative to container's /app directory (e.g., 'data/input.csv' saves to /app/data/input.csv)
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 of behavioral disclosure. It explains the tool's effect ('makes a file available inside the container') and how the uploaded file can be accessed later, but doesn't cover important behavioral aspects like error conditions (e.g., what happens if the local file doesn't exist), permissions, or whether the operation overwrites existing files. It adds some context but leaves gaps.

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 efficiently structured with three sentences that each serve a clear purpose: stating the core action, explaining the utility, and providing access instructions. There's no wasted text, and information is front-loaded appropriately for an AI agent.

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 tool's moderate complexity (file transfer operation), no annotations, and no output schema, the description provides adequate but incomplete coverage. It explains the basic functionality and integration with execute_ipython_cell, but lacks details about error handling, performance characteristics, or what the tool returns upon completion. It's minimally viable but has clear gaps.

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 already fully documents both parameters (local_path and relpath). The description adds minimal value beyond the schema by mentioning the destination path format ('/app/{relpath}'), but doesn't provide additional semantic context like file size limits or supported file types. Baseline 3 is appropriate when the schema does the heavy lifting.

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 specific action ('upload a file') and resource ('from the host filesystem to the container's /app directory'), distinguishing it from sibling tools like download_file (reverse operation) and execute_ipython_cell (different function). It provides a concrete purpose beyond just the tool name.

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

Usage Guidelines4/5

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

The description explicitly states when to use this tool ('to make a file available inside the container for code execution') and mentions its relationship with execute_ipython_cell for accessing the uploaded file. However, it doesn't provide explicit alternatives or exclusions (e.g., when not to use it vs. other file management tools).

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

Related 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/gradion-ai/ipybox'

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