Skip to main content
Glama

Download File

download_file
DestructiveIdempotent

Download a file from a URL and save it to a specified local path. Supports binary files like PDFs, images, and archives.

Instructions

Download a URL to a local file, binary-safe (PDFs, images, archives...). Use fetch_url for reading web pages as text; use this when you need the actual file on disk — e.g. download a PDF, then read_file it to extract the text.

Args:

  • url (string): The file URL (http/https).

  • path (string): Destination file path. Parent directories are created.

Returns the saved path, size and content type.

Example: { "url": "https://arxiv.org/pdf/1706.03762", "path": "~/papers/attention.pdf" }

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesFile URL to download
pathYesDestination file path
Behavior4/5

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

Annotations declare destructiveHint=true and idempotentHint=true. Description adds that parent directories are created and returns (path, size, content type). No contradiction. Could mention error handling but not necessary for this level of detail.

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?

Very concise: one sentence for purpose, one for usage guidance, structured Args/Returns, and an example. Every sentence adds value, no fluff.

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?

Tool has only 2 params and no output schema, but description explains return values. Covers necessary context like binary safety and directory creation. Could mention error scenarios but adequate for this scope.

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 covers both parameters with descriptions. Description adds context that parent directories are created for path, and provides a clarifying example. Beyond baseline 3 because of these extras.

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 clearly states it downloads a URL to a local file, specifies binary safety, and explicitly distinguishes from sibling tool fetch_url. The verb 'download' and resource 'file' are unambiguous.

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?

Provides explicit guidance: use fetch_url for text, this for files on disk. Includes a concrete example (downloading a PDF) which clarifies typical use cases.

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/highercomve/mcptools'

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