Skip to main content
Glama

Get Assignment File

get-assignment-file-link
Read-only

Fetch an assignment file—teacher document, student submission, or corrected copy—and get a 15-minute browser link or local file path.

Instructions

Fetch an assignment file (teacher document, student submission, or corrected copy). In HTTP mode with MCP_SERVER_URL set, returns a browser link that expires after 15 minutes; otherwise saves the file locally and returns its path. Get file IDs and roles from get-assignment-detail.

Input Schema

NameRequiredDescriptionDefault
roleYes
file_idYesAssignment file ID (UUID) from get-assignment-detail — a teacher document, student submission, or corrected copy.
term_idNoAcademic term ID in YYYYN format (e.g. '20263').
course_idYesFull course ID including group number (e.g. '2433C5EM.1012'). Always required, even for document and assignment downloads where the item ID alone looks sufficient.
assignment_idYesAssignment ID (UUID) from get-course-assignments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv3.7.0

TDQS

A4.3/5.0
Behavior4/5

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

Beyond the readOnly/non-destructive annotations, it discloses the dual-mode behavior: an expiring 15-minute browser link under HTTP mode with MCP_SERVER_URL, otherwise a locally saved file path. That is genuinely useful context for a tool whose output shape varies by environment, though it omits any auth/permission requirements.

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, zero waste: the first states purpose and scope, the second states the environment-dependent return behavior plus the input source. Front-loaded and appropriately sized.

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?

No output schema exists, yet the description explains what is returned in both modes (expiring link vs local path), and the schema covers parameter details. An agent has everything needed to call it and interpret the result.

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 description coverage is 80%, so the schema already documents role, file_id, course_id, and assignment_id including the "course_id always required" note. The description only adds provenance guidance (IDs from get-assignment-detail) and nothing about the optional term_id, so it sits at the baseline for high-coverage schemas.

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?

States a specific verb+resource ("Fetch an assignment file") and enumerates the three file kinds covered. It is clearly distinguishable from siblings like get-assignment-detail (metadata) and get-document-link (course documents).

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?

It tells the agent where to source inputs ("Get file IDs and roles from get-assignment-detail"), which implies the correct workflow order. It does not explicitly say when to prefer this over e.g. get-assignment-submit-link or get-document-link, so no exclusions are stated.

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