Skip to main content
Glama
D2L BrightSpace MCP

D2L BrightSpace MCP

Get Assignment Files

get_assignment_files
Read-only

Read instructor-attached assignment files—specs, rubrics, starter workbooks—and return their extracted text so you can answer what an assignment requires or summarize a handout.

Instructions

Read the files an instructor attached to an assignment: the spec or instructions PDF, a starter workbook, a rubric document. Call it with just courseId to see which assignments have attachments, then with folderId and fileId to read one. Use this when the user asks what an assignment requires, what the instructions say, or to summarize a handout. Returns the text itself. Use download_file instead when the user wants the file saved to disk. Example: "What does the lab report assignment ask for?"

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": {
      "courseId": "<courseId>"
    },
    "name": "get_assignment_files"
  }
}

Input Schema

NameRequiredDescriptionDefault
fileIdNoAttachment file ID to read. Requires folderId. Omit to list the files without reading them.
courseIdYesCourse ID whose assignment attachments to look at.
folderIdNoAssignment (dropbox folder) ID. Omit to list every assignment in the course that has attachments.
maxCharsNoMaximum characters of extracted text to return. The response reports whether it was truncated.
extractTextNoExtract readable text from the file. Works for PDF, DOCX, XLSX, PPTX, and plain text.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already carry the readOnly profile, so the description's job is to add workflow context, which it does: it discloses the two-step progressive-disclosure pattern (courseId alone to list, then folderId+fileId to read) and that it 'Returns the text itself.' It omits the truncation/maxChars behavior, which the schema covers but is worth surfacing for an agent budgeting output size.

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?

Front-loaded with purpose, then usage, then the alternative, then an example — a strong ordering. Slightly long and the quoted example partially restates the earlier 'what does the assignment require' clause, but no sentence is wasted.

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?

There is no output schema, and the description explicitly says the return is the extracted text, covering the main unknown. Combined with the sequencing guidance and the sibling routing, an agent has everything needed to choose and invoke it correctly.

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 coverage is 100%, so the baseline is 3; the description adds value by tying the parameters into a call sequence ('Call it with just courseId... then with folderId and fileId') that the per-parameter descriptions state only in isolation. It does not mention maxChars or extractText, but those are fully specified in the schema.

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?

Opens with a specific verb and resource ('Read the files an instructor attached to an assignment') and immediately enumerates the concrete file types (spec PDF, starter workbook, rubric). It is clearly distinguishable from get_assignments and download_file, which it names directly.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States exactly when to use it ('when the user asks what an assignment requires, what the instructions say, or to summarize a handout') and when to use the alternative ('Use download_file instead when the user wants the file saved to disk'). The example query reinforces the trigger condition.

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