Skip to main content
Glama

files_download

Read-only

Download a Nextcloud file by path in chunks of up to 8 MiB; continue with next_offset while truncated is true to retrieve the complete file.

Instructions

Download a file of any size in chunks; repeat with next_offset while truncated is true.

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": "files_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYesPath of the file to download, e.g. /Docs/scan.pdf
offsetNoByte offset; continue with next_offset from the prior chunk
chunk_bytesNoBytes in this chunk; default and maximum 8 MiB

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.9.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered; the description usefully adds the chunked-transfer model and the loop-termination signal. However, it names "next_offset" as the continuation parameter while the schema only defines "offset", and "truncated" is never defined or tied to any declared output, so the behavioral disclosure is partially self-inconsistent.

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

Conciseness4/5

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

A single short sentence with the core scope front-loaded and no filler. It is tight to the point of being terse, and the undefined references to next_offset and truncated cost it a bit of clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description must carry the return-shape burden, and it only gestures at it via "truncated" and "next_offset" without defining either or mapping them to actual response fields. The download loop is conveyed, but an agent cannot reliably know what to read from the response to continue.

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 coverage is 100%, so the baseline is 3 — path, offset, and chunk_bytes are already fully documented including the 8 MiB cap. The description adds only the looping semantics, and does so with a parameter name (next_offset) that does not exist in the schema, so it does not meaningfully enrich the parameters beyond what the schema provides.

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?

The description gives a specific verb and resource ("Download a file") and adds the defining scope trait "of any size in chunks", which separates it from a simple whole-file read like files_read. It stops short of naming an explicit alternative, so the differentiation is implied by the chunking scope rather than stated.

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 operational guidance for the paginated case ("repeat with next_offset while truncated is true"), which tells the agent how to continue but not when to pick this tool over files_read or files_read_as_markdown. There are no exclusions or prerequisites, so the when-to-use decision is left inferred.

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