Skip to main content
Glama

EQVPS — VPS and code sandboxes for AI agents

Download a file from a sandbox

download_file
Read-only

Read a SMALL file from the sandbox (absolute path, max 5 MB) into this conversation: content as UTF-8 text by default, as_text: false → content_base64. For build artifacts, archives, binaries or anything big use get_download_url instead — you get a short-lived link and download it with curl, without pulling base64 into your context. Requires: token + live sandbox_id. Max 5 MB — bigger: get_download_url.

Input Schema

NameRequiredDescriptionDefault
pathYesRequired. Absolute path inside the sandbox to read (max 5 MB), e.g. "/root/app/main.py". Must start with "/".
as_textNoOptional. True (default) = return `content` as UTF-8 text; false = return `content_base64` (for binary files).
sandbox_idYesRequired. Sandbox id as returned by create_sandbox / list_sandboxes, e.g. "sb_3f2a…".

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / as_text / description
      Added value: +"Optional. True (default) = return `content` as UTF-8 text; false = return `content_base64` (for binary files)."
    • addedInput schema / properties / path / description
      Added value: +"Required. Absolute path inside the sandbox to read (max 5 MB), e.g. \"/root/app/main.py\". Must start with \"/\"."
    • changedInput schema / properties / sandbox_id / description
      Previous value: -"Sandbox id as returned by create_sandbox / list_sandboxes, e.g. \"sb_3f2a…\"."New value: +"Required. Sandbox id as returned by create_sandbox / list_sandboxes, e.g. \"sb_3f2a…\"."
  2. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds substantial behavioral context beyond annotations: the 5 MB size cap, the default UTF-8 output and the base64 fallback via as_text, and the auth requirements (token + live sandbox_id). This prevents misuse for large payloads.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single dense paragraph that front-loads the core purpose, then the alternative, then the requirements. It is well-structured, though it slightly repeats 'max 5 MB' and 'get_download_url' at the end, which is minor redundancy.

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 simple read tool with full schema coverage, no output schema, and safety annotations already in place, the description covers everything an agent needs: scope, size limit, output format, auth prerequisites, and the correct alternative for larger files.

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 path, sandbox_id, and as_text, including the base64 behavior and the absolute-path constraint. The description mostly repeats that information without adding new syntax or edge-case meaning, making the baseline 3 appropriate.

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 states a specific verb and resource: reading a small file from a sandbox into the conversation, with the output representation (UTF-8 vs base64). It explicitly distinguishes itself from the sibling get_download_url for large files, so an agent can route correctly without opening schemas.

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

Usage Guidelines5/5

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

It gives explicit when-to-use (small files, max 5 MB) and when-not (build artifacts, archives, binaries, anything big) and names the alternative (get_download_url) with the reason (short-lived link, avoid base64 in context). Prerequisites (token + live sandbox_id) are also stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.