Skip to main content
Glama

Download a project file

download_file

Saves any Overleaf project file (PDF, image, .bib, .tex) to a local path, creates missing folders, and replaces existing files without changing Overleaf.

Instructions

Saves a copy of one project file of any type (PDF, image, .bib, .tex) to a path on this computer, creating missing local folders and replacing a file already at that path. Changes nothing on Overleaf. Use it for binary files that read_file cannot show as text, or to work on a file with local tools; for the compiled PDF use compile with savePdfTo.

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>",
      "localPath": "<localPath>"
    },
    "name": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath of the file inside the project, e.g. "figures/plot.pdf"
projectNoProject name, id or Overleaf URL. May be omitted when exactly one project is pinned.
localPathYesAbsolute path on this computer to save to, including the file name

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.4
    • changedInput schema / properties / localPath / description
      Previous value: -"Absolute destination path on this computer"New value: +"Absolute path on this computer to save to, including the file name"
    • addedInput schema / properties / path / description
      Added value: +"Path of the file inside the project, e.g. \"figures/plot.pdf\""
  2. First observedv2.1.1

TDQS

A4.5/5.0
Behavior4/5

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

Adds real behavior beyond the annotations: it creates missing local folders, replaces an existing file at the target path, and explicitly states 'Changes nothing on Overleaf', which reconciles the readOnlyHint=false with the fact that the write is local only. It does not mention size limits, permissions, or failure modes, so it stops short of a 5.

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?

Two sentences, front-loaded with the core action and side effects, then the routing guidance. Every clause carries information; nothing is padding.

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?

For a three-parameter tool with full schema coverage and no output schema, the description covers action, side effects, scope (local only), and alternatives. An agent has everything needed to call it correctly.

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 path, project, and localPath are already documented in the schema. The description adds only the notion that any file type is acceptable and that localPath is a full destination path, which is largely redundant with the schema. Baseline 3 applies.

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?

States a specific verb and resource: 'Saves a copy of one project file of any type ... to a path on this computer', and enumerates file types. It is clearly distinguishable from read_file (text) and compile (PDF generation), which are named explicitly.

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?

Gives explicit when-to-use conditions ('binary files that read_file cannot show as text', 'work on a file with local tools') and names the alternative for the compiled PDF case ('use compile with savePdfTo'). Both the selection and the exclusion are stated.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.