Skip to main content
Glama

Get a download URL for a sandbox file

create_download_url

Generate a short-lived, path-bound download URL for a sandbox file, enabling raw-byte downloads without an Authorization header or size limit until the URL expires.

Instructions

Get a download URL for a sandbox file. Returns a short-lived URL that the sandbox serves itself. GET it to download the file as raw bytes, with no size limit and no Authorization header. The URL is bound to this path and expires after ttlSeconds (default 15 minutes, at most 1 hour). Needs file.read. Treat the URL as a secret until it expires.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "sandboxId": "<sandboxId>",
      "path": "<path>"
    },
    "name": "create_download_url"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesAbsolute path, or path relative to the sandbox work directory (/home/user). It must resolve under /home/user or /tmp.
sandboxIdYesPublic Sandbox id returned by create/list/get sandbox calls.
ttlSecondsNoHow long the URL stays valid.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.0

TDQS

A4.1/5.0
Behavior3/5

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

The description adds substantial context beyond the annotations: the URL is bound to the given path, expires after ttlSeconds, requires the file.read permission, and should be treated as a secret. It does not explain why the operation is flagged non-readOnly and non-idempotent (whether a new URL is minted each call, or whether anything is mutated), leaving an agent to reconcile the write-ish annotations with what reads like a lookup.

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?

Four short sentences, front-loaded with the purpose, then mechanics, then constraints, then the security caveat. Every sentence carries a fact an agent needs and nothing is repeated.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter tool with no output schema, the definition covers the permission required, the lifetime bounds, path binding, how to consume the returned URL (plain GET, no auth header, no size cap), and the secret-handling caveat. An agent has everything needed to call it and to use the result safely.

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 coverage is 100% and the schema already documents path resolution rules, the sandbox id pattern, and ttlSeconds default/min/max. The description only restates the TTL default and cap, adding no new semantics for any parameter, so the baseline of 3 applies.

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?

States a specific verb and resource ('Get a download URL for a sandbox file') and immediately characterizes the artifact — a short-lived, sandbox-served URL for raw bytes — which lets an agent tell it apart from an inline content read such as read_file without opening any schema.

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 makes the selecting conditions clear: use it when you need raw bytes with no size limit and no Authorization header, versus an authenticated inline read. It never names an alternative tool explicitly and gives no explicit 'do not use for X' exclusion, so it stops short of full routing guidance.

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