politemall-mcp

v0.3.0
@qiaoguanming/politemall-mcp Checked 4 days ago Published 1 month ago

MCP server for the POLITEMall and NYP D2L Brightspace learning systems.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

call_d2l_operation Call D2L operation (advanced)

Invoke any cataloged D2L Valence route by its operation key — the long-tail escape hatch for routes without a dedicated tool above. Use list_d2l_operations first to find the right operation key and its parameters. Course-scoped operations need courseId (orgUnitId is derived from it automatically — never pass orgUnitId directly); global/user-scoped operations need school instead. Always read-only (GET); an operation that returns a file is read as text when the file is a web page or text (HTML comes back as Markdown, in parts: pass offset to continue when truncated is true), and rejected whe…

ParameterTypeDescription
operation *stringThe catalog operation key, from list_d2l_operations, e.g. "le.checklists.list"
courseIdstringRequired for course-scoped operations — the course's courseId from list_courses
maxCharsintegerMaximum characters of text to return (default 20000, max 100000). The response says whether it was truncated and the offset to continue from.
offsetintegerCharacter position to start reading the text from (default 0). Use the nextOffset from a truncated response to read the next part.
pathParamsobjectPath parameters the operation needs, other than orgUnitId
queryParamsobjectQuery parameters the operation accepts
schoolstringRequired for global/user-scoped operations that aren't tied to one course

create_quiz Create quiz

Create a new, empty quiz in a D2L course. WRITES to the school's Brightspace: it adds a quiz that instructors can see in the course. Needs a role that can manage quizzes (instructor/TA); other accounts get a permission error. The quiz is created HIDDEN from students (isActive false) unless you set isActive true, and it has no questions: follow with save_quiz_questions to add them. Use update_quiz to change an existing quiz instead, and get_quizzes first to check the quiz does not already exist: calling create_quiz twice creates two quizzes, so do not retry after an unclear failure without chec…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
name *stringThe quiz name shown to students
allowHintsbooleanLet students see question hints
attemptsAllowedAttempts per student, 1 to 10. null means unlimited
descriptionstringDescription shown on the quiz list (plain text)
dryRunbooleanWhen true, validates the input and returns the request(s) that would be sent, without changing anything in D2L. Use it to show the user what will happen before the real call
dueDateDue date; later attempts are late. null clears it
endDateWhen the quiz stops being available. null clears it
instructionsstringInstructions shown to students at the top of the quiz (plain text)
isActivebooleanWhether students can see the quiz. create_quiz defaults to false (hidden)
preventMovingBackwardsbooleanStop students returning to earlier questions
shuffleQuestionsbooleanPresent the questions in a random order
startDateWhen the quiz becomes available. null clears it
timeLimitMinutesTime limit in minutes, 1 to 9999, enforced by D2L. 0 or null means no time limit

get_all_final_grades Get all final grades (instructor/TA)

Get every enrolled student's calculated/adjusted final grade for a D2L course — the gradebook's final-grade column. Requires an instructor/TA/grader role; students calling this get a permission error, not their own grade (use get_my_final_grade for that instead). Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_announcements Get announcements

Fetch recent announcements, newest first, with plain-text bodies. Pass courseId for one course, or omit it to get the latest across all your active courses on every connected school (each item then carries courseId and courseName). Drafts are excluded. Use this when the user asks about announcements, news, updates from instructors, recent posts, or what a lecturer said. The response says how many exist in total, so you can tell when count cut the list short. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the pag…

ParameterTypeDescription
countintegerMaximum number of announcements to return (default 10, max 50)
courseIdstringThe course's courseId, from list_courses. If omitted, returns recent announcements across all active courses.

get_assignment_files Get assignment files

Read the files an instructor attached to an assignment: the brief or instructions PDF, a starter workbook, a rubric document. Call it with just courseId to see which assignments have attachments (no file is opened), then again with folderId and fileId to read one — the response contains the file's text; if it is long, truncated is true and nextOffset is the offset to pass as offset to read the next part. Use this when the user asks what an assignment requires, what the instructions say, or wants a handout summarised. folderId comes from get_assignments (the assignment's id). Evidence links:…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
extractTextbooleanExtract readable text (PDF, DOCX, XLSX, PPTX, plain text). Default true.
fileIdintegerAttachment file id to read. Requires folderId. Omit to list files without reading them.
folderIdintegerAssignment (dropbox folder) id. Omit to list every assignment in the course that has attachments.
maxCharsintegerMaximum characters of text to return (default 12000, max 100000). The response says whether it was truncated and the offset to continue from.
offsetintegerCharacter position to start reading the text from (default 0). Use the nextOffset from a truncated response to read the next part.

get_assignments Get assignments

Fetch assignments and quizzes, soonest due first, for one course or — if courseId is omitted — every active course on every connected school. Each assignment shows its due date, points, instructions (Markdown), rubric, whether YOU have submitted (submissionStatus), your submitted files and any feedback/score; each quiz shows dates, time limit and attempts. type 'gradeOnly' rows are scored items with no assignment or quiz behind them (e.g. an in-class test). attachmentCount > 0 means the instructor attached files: read them with get_assignment_files. Use this when the user asks about assign…

ParameterTypeDescription
courseIdstringThe course's courseId, from list_courses. If omitted, returns assignments for all active courses.

get_calendar_events Get calendar events

Get calendar events for a D2L course. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_class_grades Get class grades (instructor/TA)

Get every grade item and score for EVERY student in a D2L course — the gradebook view. Requires an instructor/TA/grader role in the course; students calling this get a permission error, not their own grades (use get_grades for that instead). Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_classlist Get classlist

Get who is in a course: headcount per role plus the people. By default only instructors and other staff are listed (with names and usernames) — students are left out for privacy and size; pass includeStudents=true only when the user actually needs classmates, and use searchTerm to look one person up. Use this when the user asks who teaches a course, who the tutors are, how big the class is, or to find someone by name. classSize and roleCounts always cover the whole class, and the response reports truncation. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
includeStudentsbooleanAlso list students/learners. Default false: instructors and other staff only.
limitintegerMaximum people to list (default 100). The response reports the true total and whether it was truncated.
searchTermstringCase-insensitive match on name, username or email.

get_content_topic Get content topic

Get a single content topic (title, type, dates, url) — a drill-down from get_course_content's table of contents — and read its content. For a topic whose file is a PDF, DOCX, PPTX, HTML page or text file, the response includes extractedText (HTML as Markdown); a native page's description is returned as descriptionMarkdown. Long text is returned in parts: extractedTextTruncated says more remains and extractedTextNextOffset is the offset to pass as offset to read the next part (extractedTextTotalChars is the full length). If the file is too large or unreadable, extractedTextUnavailable expla…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
topicId *numberThe topic's id, from get_course_content
maxCharsintegerMaximum characters of text to return (default 20000, max 100000). The response says whether it was truncated and the offset to continue from.
offsetintegerCharacter position to start reading the text from (default 0). Use the nextOffset from a truncated response to read the next part.

get_course_content Get course content

Fetch the content tree for a course showing modules, topics, files, and links. Use this when the user asks about course materials, lecture slides, uploaded files, content structure, or what's in a course module. Use moduleTitle to filter to a specific module (e.g. 'Labs', 'Week 3') instead of fetching the entire tree, typeFilter to keep only files, links, HTML pages or videos, and maxDepth (1 = top-level modules with their direct children) for a table-of-contents view. Topic ids can be passed to get_content_topic. Completion (isCompleted) appears only when the course tracks it (progressAvailab…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
maxDepthintegerLimit how deep the tree goes. 1 returns top-level modules with their direct children only; deeper modules then report childrenOmitted.
moduleTitlestringCase-insensitive substring match on top-level module titles (e.g. 'Labs', 'Week 3'). Children of matching modules are included in full.
typeFilterstringOptional filter to narrow results by content type. Default all.

get_course_overview Get course overview

Get the course description/overview content for a D2L course (the "Class Overview"/syllabus feature). Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_discussion_forums Get discussion forums

List discussion forums for a D2L course. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_discussion_posts Get discussion posts

List posts (with content and author) within a discussion topic. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
forumId *numberThe forum's ForumId, from get_discussion_forums
topicId *numberThe topic's TopicId, from get_discussion_topics

get_discussion_topics Get discussion topics

List topics within a discussion forum. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
forumId *numberThe forum's ForumId, from get_discussion_forums

get_dropbox_submissions Get dropbox submissions (instructor/TA)

Get submissions for a dropbox/assignment folder — files, submission dates, score, and grading status. What you get depends on your role in the course: an instructor/TA/grader gets every student's submission; a learner is NOT refused but gets only their own entry, so a single-row result does not mean the class has one submission. To fetch your own submission with feedback, use get_my_dropbox_submission. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
folderId *numberThe dropbox folder's Id, from get_assignments

get_due_items Get due items

Get content items with due dates across every connected D2L school (POLITEMall and/or NYP) and every course, in one call — completed and pending. dateCompleted is null for items not yet done. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

get_grades Get grades

Get your grade items and scores for a D2L course. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_groups Get groups

List group categories and groups (with member counts) for a D2L course. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_my_calendar_events Get my calendar events (all courses)

Get your calendar events across every connected D2L school and every enrolled course in one call — cross-course parity with get_due_items. Defaults to a rolling window from 7 days ago to 60 days ahead; pass startDate/endDate (ISO 8601) to widen or narrow it. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion i…

ParameterTypeDescription
endDatestringISO 8601 datetime; defaults to 60 days from now
startDatestringISO 8601 datetime; defaults to 7 days ago

get_my_dropbox_submission Get my dropbox submission

Get your own submission (files, dates, score, feedback) for a dropbox/assignment folder. Student-facing counterpart to get_dropbox_submissions, which is instructor/TA-only. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
folderId *numberThe dropbox folder's Id, from get_assignments

get_my_final_grade Get my final grade

Get your calculated/adjusted final grade for a D2L course — distinct from get_grades, which lists per-item scores. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_overdue_items Get overdue items

Get D2L-computed overdue content items across every connected school and course in one call — a filtered view distinct from get_due_items (which includes not-yet-due pending items too). Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

get_quiz_attempts Get quiz attempts

Get your attempt history (score, started/completed times) for a specific quiz. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
quizId *numberThe quiz's QuizId, from get_quizzes

get_quiz_questions Get quiz questions

Get the questions defined for a quiz (text, points, type) — visibility follows the quiz's own settings and your D2L permissions. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
quizId *numberThe quiz's QuizId, from get_quizzes

get_quiz_results Get quiz results (instructor/TA)

Get every student's attempts (score, started/completed times) for a quiz — the instructor grading view. Requires permission to view/grade the quiz. Optionally scope to one student by their classlist Identifier instead of the whole class. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
quizId *numberThe quiz's QuizId, from get_quizzes
studentUserIdstringA student's Identifier from get_classlist, to scope to just that student

get_quizzes Get quizzes

List quizzes for a D2L course (name, due date, availability window). Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

get_recent_updates Get recent updates

Get counts of unread/pending activity (discussions, assignment feedback, quizzes) across every connected school and course in one call — a "what's new" activity feed. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

get_rubrics Get rubrics

Get rubric(s) for a D2L course. Pass rubricId to fetch one specific rubric's full criteria/levels directly. Otherwise pass objectType (e.g. "Discussion", "Dropbox") and objectId (that object's id, e.g. a topicId or folderId) to list the rubrics attached to it — D2L scopes rubric listing to a specific gradable object, not the whole course, so there's no way to list every rubric in a course at once. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
objectIdnumberThe object's id (e.g. a topicId from get_discussion_topics or folderId from get_assignments) — required if rubricId is omitted
objectTypestringThe object type to list rubrics for, e.g. "Discussion" or "Dropbox" — required if rubricId is omitted
rubricIdnumberA specific rubric's Id, if already known — returns its full criteria/levels

get_survey_attempts Get survey attempts

Get your attempt history for a specific survey. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
surveyId *numberThe survey's SurveyId, from get_surveys

get_survey_questions Get survey questions

Get the questions defined for a survey (text, points, type) — visibility follows the survey's own settings and your D2L permissions. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
surveyId *numberThe survey's SurveyId, from get_surveys

get_survey_results Get survey results (instructor/TA)

Get every student's attempts for a survey — the instructor grading/review view. Requires permission to view/grade the survey. Optionally scope to one student by their classlist Identifier instead of the whole class. Not available on anonymous surveys when scoping to one student, since anonymous attempts have no recorded student identity. Evidence links: the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
surveyId *numberThe survey's SurveyId, from get_surveys
studentUserIdstringA student's Identifier from get_classlist, to scope to just that student

get_surveys Get surveys

List surveys for a D2L course. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it) and the result carries a `pageUrl` (the page that shows this data). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none. Date fields also come with a `...Sgt` companion in Singapore time, which is what the site shows.

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses

list_courses List courses

List your enrolled courses across every connected D2L school (POLITEMall and/or NYP). courseId values are opaque strings scoped to a school — pass them as-is to the other D2L tools. For SkillsFuture/STEP enrollments, use list_step_courses instead. Evidence links: each item carries a `sourceUrl` (the page on the school's site that shows it). Cite these as inline links so the user can check; use only these, never build or edit a link, and say so when an item has none.

list_d2l_operations List D2L operations (advanced)

List/search the full catalog of D2L Valence operations reachable via call_d2l_operation — the long-tail routes that don't have a dedicated tool above. Filter by category (e.g. "grades", "checklists", "quizzes") and/or a keyword search across the operation key and description. Use this first to find an operation's key and required parameters before calling call_d2l_operation.

ParameterTypeDescription
categorystringRestrict to one catalog category, e.g. "grades", "checklists", "cpd"
querystringKeyword to match against the operation key or description

save_quiz_questions Save quiz questions

Add questions to a D2L quiz, or edit existing ones, from structured data. WRITES to the school's Brightspace: new questions appear in the quiz and edited ones are overwritten. Needs a role that can manage quizzes (instructor/TA). You do the reading: turn the user's spreadsheet, CSV or document into the questions array yourself, this tool never reads files. Each question has a type (multiple_choice, true_false, multi_select, matching, ordering, written_response, short_answer), its text, and the type's answer fields; points default to 1. Plain text is shown literally unless textFormat is "html".…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
questions *arrayThe questions to add or update, in the order they should appear
quizId *integerThe quiz's QuizId, from get_quizzes or create_quiz
dryRunbooleanWhen true, validates the input and returns the request(s) that would be sent, without changing anything in D2L. Use it to show the user what will happen before the real call

search_politemall_catalog Search POLITEMall public catalog

Search or browse the public POLITEMall marketing catalog (politemall.polite.edu.sg) — all ~300 modules offered across the polys/ITE, not just your enrollments. No login required. This is a DIFFERENT system from Brightspace: catalogCode values here are NOT courseIds and can't be passed to get_grades/get_course_content/etc. Use list_courses for your actual enrolled Brightspace courses.

ParameterTypeDescription
maxResultsnumberMax courses to return (default 100)
querystringKeyword to search names/descriptions/institution for, e.g. "AI". Omit to browse everything.

update_quiz Update quiz settings

Change settings of an existing D2L quiz. WRITES to the school's Brightspace and overwrites the settings you pass; it does not touch the quiz's questions. Needs a role that can manage quizzes (instructor/TA). Pass only the settings you want to change: every setting you leave out keeps its current value (the tool reads the quiz first and sends it back with your changes). Pass at least one setting. To clear a date or the attempt/time limit, pass null. Typical uses: make a finished quiz visible (isActive true), move the due date, set a time limit. Use create_quiz to make a new quiz and save_quiz_q…

ParameterTypeDescription
courseId *stringThe course's courseId, from list_courses
quizId *integerThe quiz's QuizId, from get_quizzes or create_quiz
allowHintsbooleanLet students see question hints
attemptsAllowedAttempts per student, 1 to 10. null means unlimited
descriptionstringDescription shown on the quiz list (plain text)
dryRunbooleanWhen true, validates the input and returns the request(s) that would be sent, without changing anything in D2L. Use it to show the user what will happen before the real call
dueDateDue date; later attempts are late. null clears it
endDateWhen the quiz stops being available. null clears it
instructionsstringInstructions shown to students at the top of the quiz (plain text)
isActivebooleanWhether students can see the quiz. create_quiz defaults to false (hidden)
namestringA new quiz name
preventMovingBackwardsbooleanStop students returning to earlier questions
shuffleQuestionsbooleanPresent the questions in a random order
startDateWhen the quiz becomes available. null clears it
timeLimitMinutesTime limit in minutes, 1 to 9999, enforced by D2L. 0 or null means no time limit

whoami Whoami

Get your identity on each connected school (POLITEMall and/or NYP).