Skip to main content
Glama

download_files

Idempotent

Download Moodle course files into a local folder, skipping existing files by default or renaming conflicts to prevent overwrites.

Instructions

Download course files into a local folder. Existing files are never overwritten.

- files: refs from get_course_outline / get_announcements / check_updates (or Moodle pluginfile URLs).
- dest_dir: absolute local folder (or ~/...), created if needed.
- save_as: optional {ref: "relative/path/name.pdf"} to choose where each file goes inside dest_dir;
  by default a file keeps its Moodle name (and its sub-folder, for files inside folder modules).
- on_conflict: "skip" (default) leaves an existing file alone; "rename" saves the new one as "name (2).ext".

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
filesYes
courseYes
save_asNo
dest_dirYes
on_conflictNoskip

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.2/5.0
Behavior5/5

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

The description discloses behavior the annotations cannot express: dest_dir is created if missing, nested folder-module structure is preserved by default, and the exact conflict policy (skip vs. rename to 'name (2).ext'). This usefully extends the annotations' idempotentHint/destructiveHint rather than repeating them.

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?

Front-loaded with purpose and the overwrite guarantee, then a tight bullet list where each entry maps to a parameter or decision. Slightly dense but no filler sentences.

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?

For a write-to-disk tool with no output schema, the description covers naming, destination handling, and conflict resolution well. Missing only the meaning of the required 'course' argument and any mention of how download results/errors are reported.

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 description coverage is 0%, so the description carries the full burden, and it documents four of the five parameters (files, dest_dir, save_as, on_conflict) with formats, defaults, and examples. The required 'course' parameter is left completely unexplained, which is the one real gap.

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 first sentence gives a specific verb and resource ('Download course files into a local folder') plus an immediate behavioral fact ('existing files are never overwritten'). It does not, however, distinguish itself from siblings that also touch files, notably read_file and mirror_course, so an agent still has to infer the boundary.

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 'files' bullet tells the agent exactly where the input refs come from (get_course_outline / get_announcements / check_updates), which is real routing guidance. It stops short of when-not to use it or naming mirror_course as the whole-course alternative.

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