Skip to main content
Glama

download_file

Read-onlyIdempotent

Create a short-lived, single-use download URL for one student-accessible Artemis file, such as lecture attachments, announcement files, or your own submissions.

Instructions

Mint a short-lived downloadUrl for one student-accessible Artemis file. path may be a full https URL on this server, an absolute /api/core/files/... path, or the relative form Artemis returns under api/core/files/. The result includes name, mimeType, expiresAt, and the normalized path. The URL is single-use and the server fetches the file only when that URL is opened. Allowed files are lecture attachments, conversation and announcement files, problem-statement files, the student's own file-upload submissions, slide images, and course icons. Read-only. Does not fetch other hosts or other paths. Requires HTTP mode.

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

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare read-only, idempotent, non-destructive, and open-world, so the safety profile is covered; the description adds genuinely new behavior. It discloses that the URL is short-lived and single-use, that the server defers the actual fetch until the URL is opened, and that the response carries name, mimeType, expiresAt, and the normalized path. The host/path restriction and HTTP-mode requirement are operational constraints an agent could not infer from annotations.

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 core action and return shape are front-loaded in the first two sentences, followed by accepted path forms, scope limits, and the transport caveat. Every sentence contributes a distinct fact; nothing restates the tool name or the annotations.

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

Completeness5/5

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

For a one-parameter tool with no output schema, the description covers input formats, scope boundaries, deferred-fetch behavior, and the shape of the returned object. An agent has enough to decide whether to call it and how to form the argument without further lookups.

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

Parameters5/5

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

Schema coverage is 0% and the single parameter is just a 1-2000 char string, so the description carries the full burden — and it does: path may be a full https URL on this server, an absolute /api/core/files/... path, or the relative form Artemis returns under api/core/files/. That is exactly the disambiguation an agent needs to construct a valid call.

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: "Mint a short-lived downloadUrl for one student-accessible Artemis file," then enumerates the in-scope file categories (lecture attachments, conversation/announcement files, problem statements, own submissions, slide images, course icons). That scoping makes the tool's remit concrete. It does not explicitly contrast itself with the sibling download_attachment, whose name suggests overlapping territory, so the differentiation is implicit rather than stated.

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?

Gives clear usage context: use it for one student-accessible file, with an explicit exclusion ("Does not fetch other hosts or other paths") and a prerequisite ("Requires HTTP mode"). The allowed-file list effectively defines when the tool will succeed. It stops short of naming an alternative tool for cases outside its scope, which would be needed for a 5.

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