Skip to main content
Glama
mutoukenji

mcp-curl-downloader

by mutoukenji

download_file

Download files from HTTP/HTTPS URLs to local directories or file paths. Includes options for custom filenames, headers, and overwrite control.

Instructions

Download a file from a URL to a local directory or file path.

Features:

  • Supports HTTP and HTTPS protocols

  • Streams large files efficiently (no memory pressure)

  • Auto-detects filename from URL or Content-Disposition header

  • Creates parent directories automatically

  • Configurable timeout (300s) and size limit (500MB)

  • Safe filename sanitization (removes dangerous characters)

Examples:

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe URL of the file to download (http/https only)
headersNoOptional HTTP headers as key-value pairs (e.g., {'Authorization': 'Bearer token'})
filenameNoOptional custom filename. Only used when dest_path is a directory. Unsafe characters will be sanitized automatically.
dest_pathYesDestination directory path or full file path. If a directory is specified, the filename will be auto-detected from the URL.
overwriteNoWhether to overwrite the file if it already exists. Default: false
Behavior4/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It does this well, disclosing streaming behavior (no memory pressure), auto-filename detection, parent directory creation, configurable timeout/size limits, and safe filename sanitization. It also covers overwrite semantics. This is rich, useful behavioral context that goes beyond what the schema conveys.

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 well-structured with feature bullets and three concrete examples. Every bullet adds distinct value and the examples illustrate real usage patterns with different parameter combinations. No filler or 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?

The tool is moderately complex with nested headers object, dest_path ambiguity (directory vs full file path), and filename/path resolution logic. The description thoroughly explains the dest_path semantics (directory vs file, auto-detection), filename behavior, and header usage. Schema coverage is 100% and the description complements rather than repeats it. No output schema exists, but the description adds enough context about the tool's behavior to make the agent confident about invocation and expected semantics.

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 meaningful value by clarifying dest_path's dual behavior (directory vs full file path), showing how filename interacts with directory dest_path, and demonstrating headers usage with a real Authorization example. The distinction between directory and file dest_path behavior is the key semantic insight that the schema hint at but the description makes explicit.

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 specific verb+resource: 'Download a file from a URL to a local directory or file path.' This clearly states the action and the input/output resources. The feature list distinguishes this from a generic fetch/curl-style operation by highlighting streaming, auto-naming, directory creation, and sanitization. No sibling tools exist to differentiate from, but the purpose is unambiguous and well-scoped.

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 gives clear context for when to use the tool through examples covering three common scenarios (simple download, custom destination name, authenticated requests). While it doesn't explicitly state when NOT to use it or name alternatives (no siblings exist), the examples and features make intended usage patterns apparent. The overwrite behavior and timeout/size limits give practical operational guidance that helps an agent reason about constraints.

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/mutoukenji/mcp-curl-downloader'

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