MCP server for D2L Brightspace API with automated authentication
This server demonstrates solid definition quality with comprehensive descriptions and clear naming conventions. All 12 tools are explicitly registered with names, descriptions, and input schemas. Tool names follow the verb_noun pattern (get_*, download_*) which is ideal for LLM action inference. Descriptions are substantive (averaging 150-250 chars) and include use-case context. However, there are notable gaps: parameter descriptions lack detail on constraints (e.g., valid ranges for daysBack/daysAhead), output schemas are not documented, and error handling guidance is minimal. The download_file tool accepts free-form URLs without validation patterns, and several tools accept optional orgUnitId but don't explain fallback behavior clearly. Schema definitions are present but incomplete, parameters have types and basic descriptions, but lack format constraints, enum values, and range specifications that would prevent LLM hallucination.
Download a file from D2L Brightspace. Provide a D2L content URL (e.g., https://learn.ul.ie/content/enforced/68929-CS4444.../file.docx or /content/enforced/...). The file will be saved to your Downloads folder by default, or to a custom path if specified. Returns the local file path, filename, size, and content type. Use this to download lecture slides, assignment files, course materials, or any file linked in course content.
Get course announcements/news items from instructors. Returns: title, body (text and HTML), created date, author, attachments, whether it's pinned. Use to answer: "Any new announcements?", "What did the professor post?", "Are there any updates?", "What's the latest news?"
Get full details about a specific assignment including complete instructions, due date, point value, allowed file types, and grading rubrics. Use after get_assignments when you need more detail about one assignment.
Get the user's submissions for an assignment. Shows submitted files, submission timestamps, feedback comments, and grades received. Use to answer: "Did I submit this assignment?", "What grade did I get?", "When did I submit?", "What feedback did I receive?"
Output schemas not documented. Tools return JSON strings but LLMs have no formal spec of returned fields (e.g., what fields does get_assignments return? What's the structure of the response?). This forces LLMs to guess at field names and risks extraction errors.
Parameter constraints missing. 'daysBack' and 'daysAhead' in get_upcoming_due_dates lack min/max values. 'url' in download_file accepts free-form strings with no validation pattern. 'savePath' has no constraints. Without explicit ranges and patterns, LLMs will pass invalid values (e.g., daysBack=10000, invalid URLs).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-22 | C | 62 | <=2025-11-25 | v2 |
| 2026-03-09 | F | 37 | - | v1 |
List all assignments for a course with their due dates and instructions. Returns: Name, DueDate (ISO 8601 format - compare with current date to find upcoming/overdue), instructions (in CustomInstructions.Text), point value (Assessment.ScoreDenominator), and Id (needed for get_assignment_submissions). Use this to answer: "What assignments do I have?", "What's due this week?", "What are my upcoming deadlines?", "Show me assignment instructions", "What homework is due soon?"
Get the complete course syllabus/structure including all modules, topics, lectures, and learning materials. Returns module titles, descriptions, topic names with URLs, and linked assignments. Use to answer: "What's in this course?", "Show me the syllabus", "What topics are covered?", "What lectures are available?", "What reading materials do I have?"
Get all contents within a specific course module/section including child topics, sub-modules, and materials. Use to explore one section of the course in detail.
Get the main sections/modules of a course. Returns module names, descriptions, and ModuleIds. Use for a high-level overview of course organization.
Get details about a specific course topic/lecture/reading including title, description, URL, and linked assignments. Use after get_course_content to get more info about a specific item.
List all courses you're enrolled in. Returns: course name, course code, org unit ID (needed for other tools), access status, start/end dates. Use to answer: "What courses am I in?", "Show my classes", "What's the course ID for X?", "List my enrollments"
Get your grades for a course. Returns all grade items with your scores, including: grade item name, points earned, points possible, percentage (DisplayedGrade), and any feedback comments. Use to answer: "What are my grades?", "What's my score on the quiz?", "How did I do on the assignment?", "What grade did I get?"
Get calendar events and due dates for a course within a time range. Returns: event title, start/end date, associated entity (assignment, quiz, etc.), course name. By default returns events from 7 days ago to 30 days ahead. Use to answer: "What's due this week?", "When is the assignment due?", "What are my upcoming deadlines?", "What do I need to submit?"
orgUnitId parameter is optional with fallback to D2L_COURSE_ID env var, but this dependency is not documented in parameter descriptions. When orgUnitId is omitted, the behavior is unclear, does it fail? Does it silently use the env var? This ambiguity can cause silent misuse by LLMs.
Error handling guidance absent. Tool descriptions do not explain what to do if a course ID is invalid, if a file download fails, or if an API call times out. LLMs receive errors with no recovery path and cannot self-correct.
download_file description contains example URLs (https://learn.ul.ie/content/enforced/68929-CS4444.../file.docx) which LLMs may reuse literally instead of adapting to actual context. Example values should be moved to parameter constraints or removed entirely.
No pagination guidance for list tools. get_assignments, get_announcements, get_my_grades, and get_course_content may return large lists but lack limit/offset/cursor parameters or documentation of result caps. Large response payloads can exhaust context windows.
download_file is marked WRITE but has no confirmation mechanism. Agents could inadvertently download large files or files to unintended paths. No dry-run or explicit confirmation step to prevent accidents.