Skip to main content
Glama

download_file

Saves a Canvas course file to disk by course and file ID, with optional zip extraction and overwrite control.

Instructions

Save a Canvas file to disk (zips, starter code, test files, datasets, PDFs). Find file ids with course_materials or get_assignment. extract=true also unpacks a zip into dest_dir. Never overwrites existing files unless overwrite=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": {
      "course_id": "<course_id>",
      "file_id": "<file_id>"
    },
    "name": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
extractNo
file_idYes
dest_dirNoFolder to save into (created if missing)/root/Downloads/Hull
course_idYes
overwriteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

A4.3/5.0
Behavior4/5

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

Annotations only declare readOnlyHint=false, destructiveHint=false, and openWorldHint=true; the description adds real value beyond that by stating the overwrite guard ('Never overwrites existing files unless overwrite=true') and the zip-unpacking side effect of extract=true. It stops short of describing what happens when extract=true is applied to a non-zip or whether extraction can overwrite files inside dest_dir.

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?

Three short sentences, front-loaded with the core action, then id discovery, then the two behavioral flags. No redundant or filler wording.

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?

For a five-parameter write tool with no output schema, the description covers purpose, id sourcing, extraction, and overwrite protection well. It omits what the tool returns (e.g., the saved path or file metadata), which an agent needs in order to chain a follow-up read, and it does not note any permission or size constraints.

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 only 20% (only dest_dir is documented), so the description must carry the load, and it does for the two non-obvious flags: extract=true unpacks a zip into dest_dir and overwrite=true permits replacing existing files. course_id and file_id are left to the schema and to the pointer to course_materials/get_assignment.

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?

Uses a specific verb and resource ('Save a Canvas file to disk') and enumerates the file types handled (zips, starter code, test files, datasets, PDFs), which makes the action immediately distinguishable from sibling readers like read_file or course_materials.

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?

Explicitly tells the agent where to obtain the required ids ('Find file ids with course_materials or get_assignment'), which resolves the main prerequisite. It does not explicitly contrast with read_file for content-only needs, so the when-not case is left implicit.

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