Skip to main content
Glama

download_file

Idempotent

Downloads a SmartLMS course file to the server's download directory and returns its path; accepts a pluginfile URL or resource cmid.

Instructions

Download a course file into the server's download directory and return its path.

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": {
      "target": "<target>"
    },
    "name": "download_file"
  }
}

Input Schema

NameRequiredDescriptionDefault
targetYespluginfile.php URL from another tool, or a resource cmid

Output Schema

NameRequiredDescriptionDefault
nameYes
pathYes
sizeYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Beyond the annotations, the description discloses that the file is written into the server's download directory and that the path is returned. It still does not explain overwrite/collision behavior or permission requirements, though the annotations already cover read-only status, open-world access, idempotency, and destructiveness.

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?

The description is a single front-loaded sentence with no filler. It communicates the action, side effect location, and return value efficiently.

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 one-parameter download tool with full schema coverage, annotations, and an output schema, the description is largely complete. Minor gaps remain around overwrite behavior and explicit usage guidance, but the essential behavior is clear.

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 100%, and the single target parameter is already fully documented in the schema as a pluginfile.php URL or resource cmid. The description adds no parameter-specific meaning beyond what the schema provides, so the baseline score of 3 is appropriate.

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 states a specific verb and resource: 'Download a course file' into the server's download directory and return its path. This clearly distinguishes the tool from sibling retrieval and listing tools without requiring the schema to explain the core action.

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?

The intended use is implied by 'Download a course file', but the description gives no explicit when-to-use guidance, exclusions, or alternatives. It is adequate for a simple tool, but it leaves routing decisions largely to inference.

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