Skip to main content
Glama

download_module

Download all files from a Moodle course resource or folder and return their saved file paths for local access.

Instructions

Download the files of a course resource or folder; returns the file paths.

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": {
      "account": "<account>",
      "cmid": "<cmid>",
      "module": "<module>"
    },
    "name": "download_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmidYes
moduleYes
accountYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.4/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden, yet it discloses almost nothing beyond 'returns the file paths' — it does not say where files land, whether the operation is read-only, whether authentication or enrollment is required, or how large downloads behave. The return-value hint is useful but insufficient for an unannotated tool with side effects.

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 compact sentence with the return behavior front-loaded after a semicolon — no wasted words. It is under-specified rather than bloated, so it scores well on structure without reaching the top.

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

Completeness2/5

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

An output schema exists, so return values need not be explained, but for a download tool with three fully undocumented required parameters and no annotations, the description leaves critical gaps: which resource types are valid, what the account scoping means, and what the download actually produces.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All three parameters (account, cmid, module) have zero schema description coverage, and the description explains none of them. The phrase 'course resource or folder' loosely gestures at the module parameter but does not clarify what a 'module' string is, what 'cmid' identifies, or what an 'account' means in this system.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description gives a specific verb (download) and resource (files of a course resource or folder), which is more than a restatement of the name. However, it never distinguishes this tool from close siblings such as download_course_materials or download_attachments, and it is unclear whether 'module' and 'course resource' refer to the same thing, so an agent cannot confidently pick this over the alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no guidance on when to use this tool rather than download_course_materials or download_attachments, and no prerequisites or exclusions are stated. The agent must infer the usage context entirely from the name and one ambiguous clause.

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