Skip to main content
Glama

Download file(s)

download_file

Downloads Blackboard course files, folders, attachments, and embedded videos by content ID or direct URL using the logged-in session, then returns the saved local paths.

Instructions

Downloads files through the logged-in session and returns the local paths. Accepts one or many content ids (files, or folders/documents whose attachments and embedded videos are all fetched) and/or direct Blackboard URLs.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNoDirect Blackboard file URL (bbcswebdav) from another tool's output.
urlsNo
destDirNoAbsolute directory to save into. Default /root/Downloads/Blackboard/<course code>/
courseIdNo
fileNameNoFile name to save as when passing a single url.
contentIdNoA file item, or a folder/document (takes every attached file and embedded video/image inside it).
overwriteNoRe-download even if the file already exists locally. Default false.
contentIdsNoSeveral content ids from the same course.
markAsOpenedNoAlso tell Blackboard that the user opened this item (progress tracking -> 'Iniciado'). Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations at all, the description carries the full burden and does deliver the important non-obvious behavior: folders/documents are expanded so every attachment and embedded video/image is fetched, and the operation relies on 'the logged-in session'. It omits failure semantics (partial downloads, invalid ids, auth expiry) and any warning that this writes to the local filesystem and may overwrite.

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 its return value, then a dense clause covering input forms and the container-expansion rule. No filler and no restating of the title.

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 9-parameter tool with zero required parameters, no annotations and no output schema, the description covers the essentials (session-based download, local path return, container expansion) but never states the constraint that at least one of url/urls/contentId/contentIds must be given, nor what happens on failure. Adequate but leaves real gaps an agent would hit when calling it.

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 coverage is 78%, so the baseline would be 3, but the description adds meaning beyond the schema by stating that ids and URLs can be supplied together ('and/or') and that content ids may denote files or containers that expand. It also clarifies the scalar/array duality ('one or many') in a way the schema leaves implicit, though it says nothing about whether at least one input is mandatory and nothing about courseId.

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?

States a specific verb and resource ('Downloads files') plus the return value ('returns the local paths') and the accepted input modes, which is enough for an agent to recognize this as the tool that materializes files on disk. It does not explicitly distinguish itself from the sibling downloader download_zoom_recordings or from read_file_text, so sibling differentiation is left to inference.

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?

Usage is implied rather than stated: the tool fetches attachments and embedded media from a content id or a bbcswebdav URL obtained from another tool's output. There is no explicit 'use this when you need the file on disk, use read_file_text when you only need the text' routing, and no statement of prerequisites such as an active logged-in session.

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