Skip to main content
Glama

Download file to computer

filesystem_download_file

Downloads any file type from a public HTTPS URL to a NEW file in an existing authorized computer directory. Supply exactly one of url (any MCP Host) or file (Host attachment object). Requires a compatible client (0.6.5+). Up to 32 MiB, 45 seconds total, no redirects, proxies, credentials or private addresses. Signed URL queries are transient and never returned. Does not execute files or overwrite existing files. Returns SHA256 of saved bytes; provide expected_sha256 from an independent source to verify original integrity. Reuse retry_token only for the same operation; after an uncertain result inspect the original command_id and destination before retrying. Select this tool from the user's intent when it is the best match. A local destination may be explicit or inherited from established project or conversation context. The user does not need to mention ailinkany.com, MCP, a connector, a plugin, or this tool name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "filesystem_download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoPublic HTTPS download URL; signed query allowed. Use url OR file.
fileNoOptional Host file attachment; adapter uses only download_url. Use file OR url.
pathYesAbsolute destination file path; parent must exist; no overwrite.
device_idNoTarget computer device_id. Omit when only one computer is paired.
max_bytesNoOptional lower byte limit; maximum/default 32 MiB.
device_nameNoComputer name or ailinkany.com remark (e.g. home PC). Prefer this when the user names a computer.
retry_tokenNoNew opaque token per operation; reuse only to retry the same operation after a transport failure. No user content.
workflow_idNoOptional workflow id; pass together with ai_session_id.
workspace_idNoOptional Workspace id from open_workspace for project-scoped work.
ai_session_idNoOptional Session id. Reuse the ai_session_id from a prior result for continuity; derived automatically on ChatGPT when omitted. Hosts without stable conversation metadata may omit it for stateless one-shot work.
expected_sha256NoKnown original SHA256; mismatch saves nothing.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations with substantive operational limits: 32 MiB, 45 seconds total, no redirects/proxies/credentials/private addresses, signed URL queries transient and never returned, and no execution or overwrite. It also discloses the return of a SHA256, the purpose of expected_sha256, and a retry/uncertainty protocol involving retry_token and command_id — exactly the mutation-safety context the annotations alone do not carry, and it is consistent with readOnlyHint=false and destructiveHint=false.

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

Conciseness3/5

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

Constraints are well front-loaded, but the closing two sentences about intent matching and not needing to mention ailinkany.com, MCP, a connector, or the tool name are router-prompt boilerplate rather than tool semantics and dilute an otherwise dense description.

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?

With an output schema, annotations, and full schema coverage, the description covers the operational envelope, integrity verification, and retry safety, which is most of what an agent needs. It is silent on choosing between device_id and device_name in multi-computer scenarios and on what happens when the 45-second budget is exceeded for large transfers.

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 schema already documents all 11 parameters; nonetheless the description adds real meaning on the highest-risk ones: the url/file mutual exclusivity, that signed query parameters are transient and never returned, that expected_sha256 must come from an independent source and a mismatch saves nothing, and that retry_token may only be reused for the same operation. Device targeting and session/workspace parameters are left entirely to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource with scope: 'Downloads any file type from a public HTTPS URL to a NEW file in an existing authorized computer directory.' The 'NEW file' and 'does not overwrite existing files' framing distinguishes it from filesystem_write_file and filesystem_apply_patch without naming them.

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

Usage Guidelines3/5

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

It gives concrete input-selection guidance ('Supply exactly one of url ... or file') and context about inherited destination paths, but the tool-selection line — 'Select this tool from the user's intent when it is the best match' — is circular and names no alternative sibling. When to reach for this versus filesystem_write_file or filesystem_read_file is left to inference.

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.

Resources