Skip to main content
Glama

download_attachment

Read-onlyIdempotent

Generates a short-lived download URL for a student-visible lecture file using lectureId plus unitId or attachmentId, so students can retrieve the file.

Instructions

Mint a short-lived downloadUrl for one student-visible lecture file. Thin alias for download_file: pass lectureId and the material's unitId, or lectureId and attachmentId for a lecture-level file. Read-only. 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": {
      "lectureId": "<lectureId>"
    },
    "name": "download_attachment"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitIdNo
lectureIdYes
attachmentIdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover readOnly, idempotent, non-destructive, and openWorld, but the description adds real context the annotations do not: the URL is short-lived (an important follow-up constraint), results are limited to student-visible files, and the tool only works in HTTP mode. These are concrete behavioral constraints that change how an agent calls and handles the result. It doesn't give an expiry duration or mention auth requirements, keeping it from a 5.

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 purpose, then the alias relationship, the parameter pairings, and the constraints, with no filler. Every clause carries information an agent needs.

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 three-parameter read tool with no output schema, the description covers purpose, valid parameter pairings, result scope, URL lifetime, and the HTTP-mode prerequisite. It is nearly self-sufficient; only the return payload shape and behavior when both unitId and attachmentId are supplied are left unstated.

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 0%, so the description carries the full burden, and it does so by explaining the meaning of each parameter combination: unitId addresses a material's file, attachmentId addresses a lecture-level file, and lectureId is always present. That is the key semantic the schema's flat properties cannot express. It still omits whether the two identifiers are mutually exclusive or what happens if both are supplied.

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?

"Mint a short-lived downloadUrl for one student-visible lecture file" gives a specific verb (mint), a concrete output (downloadUrl), and a scope (student-visible lecture files). It also names the sibling download_file and frames itself as a thin alias, which is clearer than most. It stops short of explaining what distinguishes it from download_file, so it isn't a full 5.

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?

It says this is a thin alias for download_file and describes two valid parameter pairings (lectureId+unitId or lectureId+attachmentId), which implies usage but never states when an agent should pick this tool over download_file. There are no explicit when-to-use or when-not-to-use sentences, and no prerequisites beyond the HTTP-mode note.

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