Skip to main content
Glama

canvas_download_file

Destructive

Download a Canvas course file to a local destination path using the file URL from canvas_list_course_files. Specify a destination inside the download directory to save the file.

Instructions

Download a Canvas file to disk. url is the absolute URL from canvas_list_course_files (only file URLs on the configured Canvas host are accepted); destinationPath is required and must be inside the download directory (CANVAS_OUTPUT_DIR, default ~/Downloads).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesThe url field returned by canvas_list_course_files (an https /files/ URL on the configured Canvas host; anything else is refused).
overwriteNo
destinationPathYesWhere to write the file. Must be inside the download directory (CANVAS_OUTPUT_DIR, default ~/Downloads); a relative path is resolved against it.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changedv2.1.3
    • changedInput schema / properties / destinationPath / description
      Previous value: -"Absolute path where the file should be written."New value: +"Where to write the file. Must be inside the download directory (CANVAS_OUTPUT_DIR, default ~/Downloads); a relative path is resolved against it."
    • changedInput schema / properties / url / description
      Previous value: -"The url field returned by canvas_list_course_files (absolute https URL)."New value: +"The url field returned by canvas_list_course_files (an https /files/ URL on the configured Canvas host; anything else is refused)."
  2. Changed1 schema field changedv2.0.0
    • changedInput schema / $schema
      Previous value: -"http://json-schema.org/draft-07/schema#"New value: +"https://json-schema.org/draft/2020-12/schema"
  3. Addedv1.2.5

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already indicate destructiveHint and openWorldHint, but the description adds valuable specifics: the URL host restriction, the required destination directory, and the relative path resolution. These details go beyond annotations and clarify the tool's side effects and constraints.

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 efficient sentences, front-loaded with the core action and immediately followed by constraints. No wasted words; every clause adds necessary information.

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?

The description covers the main constraints and path resolution, but it omits the behavior of the 'overwrite' parameter (e.g., what happens if the file exists). For a tool with no output schema and a potentially destructive operation, this is a notable gap. Otherwise, it is largely complete.

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 67% with descriptions for url and destinationPath, both of which are also echoed in the description. The description adds little new semantic value for those two parameters. The 'overwrite' parameter is completely undocumented in both the schema and the description, so the description fails to compensate for that missing parameter. At moderate coverage, this is a reasonable baseline.

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 'Download a Canvas file to disk' with a specific verb and resource. It distinguishes itself from sibling tools (all list/get operations) by being the only download action, and it references canvas_list_course_files as the source, providing immediate differentiation.

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?

It explicitly states that the url must come from canvas_list_course_files and be on the configured host, and that destinationPath must be inside the download directory. These are concrete usage constraints, and since no alternative download tool exists, this fully guides when to use it.

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