Skip to main content
Glama

sandbox_upload_url

Get a presigned URL to upload a file to a sandbox. Use a POST request with multipart/form-data to transfer the file to the destination path inside the sandbox.

Instructions

Get a presigned URL to upload a file to the sandbox. Send a POST request with the file as multipart/form-data to the returned URL.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sandboxIdYesThe sandbox ID.
pathNoDestination path inside the sandbox. Defaults to /home/user.
Behavior4/5

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

No annotations are provided, so the description carries full burden. It discloses that the tool returns a presigned URL (a temporary, secure URL) and that a subsequent POST request is needed. This is good transparency for a non-destructive tool, though it could mention whether the URL expires or the sandbox state is unaffected.

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, each earned: first states purpose, second gives immediate usage instruction. No extraneous content.

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 tool's simplicity (2 params, no output schema, no nested objects), the description is complete enough to guide an agent. It covers the primary action and follow-up HTTP request, though it could clarify the response format or that the URL is only valid for a short time.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so baseline is 3. The description adds value by implying the 'path' parameter defaults to '/home/user' (not explicitly in schema). The description does not add detail about the sandboxId, but the schema covers it sufficiently.

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 clearly states the tool gets a presigned URL for uploading a file to a sandbox, using a specific verb ('Get') and resource. It distinguishes from siblings like sandbox_download_url and sandbox_get_url by mentioning the upload intent, but could more explicitly contrast these.

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 includes 'Send a POST request with the file as multipart/form-data to the returned URL', which provides a brief usage hint. However, it does not specify when to use this vs. other upload methods (e.g., sandbox_file_write) or any prerequisites (e.g., sandboxId must reference an active sandbox).

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/asif-nvc/e2b-sandbox-mcp'

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