Skip to main content
Glama

List Course Submission Files

list_course_submission_files
Read-only

List all file attachments from student submissions in a course, with filenames, file IDs, content type, and size—use for archiving before course expiration.

Instructions

List every file attachment submitted by students across all assignments in a course. Returns a manifest — one entry per file — including the original filename, a file_id for re-fetching via download_file, content type, and size. Useful for bulk-archiving student work before a course expires or a Free-For-Teacher account is concluded. Outputs are bounded by max_files (default 500); when the limit is hit, truncated is true and truncation_note explains how to retrieve the rest. Download URLs are time-limited (typically 1 hour) — use the returned file_id with download_file to get a fresh URL at download time. When CANVAS_PSEUDONYMIZE_STUDENTS is enabled, user_name is a stable per-course pseudonym (e.g. "Student 1"); user_id (the raw numeric Canvas ID) is always returned and works as a stable per-student folder key.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
course_idYesCanvas course ID.
max_filesNoMaximum number of file entries to return (1–2000). Default 500. When the limit is hit, truncated is set to true.
student_idsNoRestrict to these student user IDs. Omit to include all students. When CANVAS_PSEUDONYMIZE_STUDENTS is enabled, pass the real Canvas user_id after resolving the pseudonym via resolve_pseudonym.
assignment_idsNoRestrict to these assignment IDs. Omit to scan all assignments.
workflow_stateNoOnly include submissions in this workflow state. Omit to include all states.
attachments_onlyNoWhen true (default), skip submissions that have no file attachments. When false, still only emit file entries but process every submission.
Behavior5/5

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

Beyond the readOnlyHint and openWorldHint annotations, the description reveals crucial behavior: results are capped by max_files, truncated signals a shortened result set, URLs are time-limited, and pseudonymization behavior changes user_name but not user_id. These details materially affect how the agent interprets results.

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?

The description is longer than a simple two-sentence tool, but every sentence adds a distinct operational constraint or clarification (bounding, truncation, URL expiry, pseudonyms). It is front-loaded with the core purpose and then provides necessary edge-case behavior.

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?

With no output schema, the description carries the burden of explaining return fields and semantics. It names the primary output values, explains truncation and time-limited URLs, and covers the pseudonymization edge case. For a tool with six parameters and complex operational behavior, this is highly complete.

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?

Input schema coverage is 100%, so the baseline is 3, but the description adds meaningful meaning beyond the schema: max_files triggers truncation, student_ids should be real Canvas IDs after pseudonym resolution, and the returned file_id is the way to request a fresh URL. This gives the agent guidance on how parameters interact with opaque behaviors.

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 opens with a specific verb+resource+scope statement: 'List every file attachment submitted by students across all assignments in a course.' It clarifies this returns a manifest of file entries (filename, file_id, content type, size), clearly distinguishing it from broader submission-listing tools like list_submissions.

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?

The description gives an explicit use case—bulk-archiving student work before a course expires or teacher account concludes—and points the user toward download_file for fresh URLs at download time. It doesn't explicitly contrast with list_files or list_submissions, but the clear scope and filters make the intended usage evident.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/bruchris/canvas-lms-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server