Skip to main content
Glama

download

Download files from URLs to disk with secure defaults including ECH encryption and DoH. Supports proxies, custom headers, and file size limits up to 2GB.

Instructions

Download a file from a URL and save it to disk. Supports binary and text files. For reading web page content as text, use the webfetch tool. Features: ECH (Encrypted Client Hello) and DoH (DNS over HTTPS) enabled by default. Supports HTTP and SOCKS5 proxies. SSRF protection blocks private/internal IPs. Max download size: 100 MB (adjustable via max_size_mb, hard limit 2 GB).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesURL of the file to download,required
output_pathYesAbsolute path to save the downloaded file,required
headersNoCustom HTTP headers (e.g. User-Agent, Referer, Authorization)
overwriteNoOverwrite existing file. Default: false
timeout_secNoRequest timeout in seconds. Default: 60, Max: 600
max_size_mbNoMaximum download size in MB. Default: 100, Max: 2048
proxy_urlNoHTTP or SOCKS5 proxy URL (e.g. http://proxy:8080, socks5://proxy:1080)
no_dohNoDisable DNS over HTTPS. Default: false (DoH enabled)
no_echNoDisable Encrypted Client Hello. Default: false (ECH enabled)
Behavior5/5

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

With no annotations provided, the description carries the full burden and excels by disclosing: security features (SSRF protection, ECH/DoH defaults), network capabilities (HTTP/SOCKS5 proxy support), and operational limits (100MB default/2GB hard limit). No contradictions with annotations exist.

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?

Every sentence earns its place: purpose (sentence 1), capability (sentence 2), sibling differentiation (sentence 3), security features (sentences 4-6), and limits (sentence 7). No redundancy despite the rich information density.

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 9 parameters, no annotations, and no output schema, the description provides excellent behavioral context (security, limits, proxies). It could be elevated to a 5 by briefly mentioning error conditions or return behavior, but it is substantially complete for tool selection.

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 fully documents all 9 parameters. The description references 'max_size_mb' explicitly and alludes to ECH/DoH features (matching the no_ech/no_doh flags), but with complete schema coverage, the baseline score of 3 is 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 opens with a precise action ('Download a file from a URL') and outcome ('save it to disk'). It distinguishes itself from the sibling 'webfetch' tool explicitly, clarifying that this tool is for file persistence while webfetch is for reading web content.

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?

Explicitly states the alternative tool with specific condition: 'For reading web page content as text, use the webfetch tool.' This provides clear when-not-to-use guidance, effectively differentiating from the sibling 'webfetch' and 'httpreq' 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

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/knewstimek/agent-tool'

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