Repository navigation
Add list_subjects MCP tool with subject aliases - #608
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
list_subjects: the user's subjects from their own school data (one entry per class and school account) with the teacher where the school passes it on, every name the subject goes by, matching Teams channels and OneNote notebooks or sections (confidenceexact,aliasorfuzzy), and the next and last assessment. An optionalsubjectreturns only matching subjects, whatever name or language the user used, and echoes the search names (query.aliases) so they can be passed tosearchasterms.SubjectAliasesis the shared name table: common Swiss subjects in DE/FR/IT/EN with abbreviations (Mathe / Mathematik / MA / maths, W&R / WuR, GP, physique / fisica, ABU, EPS and more) plus normalisation of case, accents, punctuation,&, and year or class prefixes (Mathe 4. LJ,BM23d Mathematik). Abbreviations of up to three letters only match a whole name.list_teams), OneNote needs OneNote read. What is not allowed is left out and listed inskipped.partialis set when a limit hits or a source fails.list_subjectsfirst and keeps the manual lookup as fallback.Closes #603