Skip to main content
Glama

save_file

Download any file type from a URL and save it locally. Returns the absolute path of the saved file for persisting crawl artifacts.

Instructions

Download a resource from a URL and save it to the local output directory. Handles any file type (images, PDFs, CSVs, etc.) via HTTP GET. Returns the absolute path of the saved file. Use to persist crawl artifacts; path traversal is blocked for security.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filenameNoCustom filename to save as (e.g. "report.pdf"). If omitted, derived from the URL's last path segment. Path traversal characters (../) are rejected.
output_dirNoOverride the default output directory. Can be relative (resolved against CWD) or absolute. If omitted, uses the configured output_dir from settings.
subdirNoSubdirectory within the output directory to save into (e.g. "images", "data/csv"). Created automatically if it doesn't exist.
urlYesFully qualified URL of the resource to download (e.g. "https://example.com/report.pdf"). Must include protocol.
Behavior3/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. It discloses security behavior (path traversal blocked) and general operation (HTTP GET, any file type). However, it lacks details on error handling (e.g., failed downloads), overwrite behavior, or authentication requirements.

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 concise with three sentences, front-loading the core action and return value. Every sentence provides essential information, with no redundancy or 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?

Given the tool's simplicity and the lack of an output schema, the description covers key aspects: input parameters, return value, and security. It does not mention sibling tools, but the context is sufficiently clear for an agent to use the tool correctly.

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 the baseline is 3. The description adds extra meaning: for 'filename', it explains derivation from URL; for 'output_dir', it clarifies relative/absolute paths and defaults; for 'subdir', it notes auto-creation; and for 'url', it stresses the need for a protocol and fully qualified URL.

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 the tool's function: downloading a resource from a URL and saving it locally. It specifies the HTTP method (GET), file type handling, and return value (absolute path). This distinguishes it from sibling tools like 'read_content' or 'screenshot', which do not persist files.

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 provides clear usage context: 'Use to persist crawl artifacts.' It implies when to use the tool. However, it does not explicitly state when not to use it or compare with alternatives, so a slight deduction applies.

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/Mingye-Lu/AgenticCrawler'

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