Skip to main content
Glama
kaeru333

ScienceTokyoLMS-mcp

by kaeru333

Science Tokyo LMS MCP

東京科学大学 (Science Tokyo) の LMS を操作する MCP (Model Context Protocol) サーバです. 講義資料のダウンロードや課題締切の確認などを,MCP クライアント (Claude 等) から ツールとして呼び出せるようにします.

NOTE

導入して使い始めたいだけの方 (研究室メンバー向け) はdocs/USAGE.md を参照してください. 本 README はおもに方針・内部構成・開発手順をまとめたものです.

WARNING

本ツールは個人の学修利用 を前提とします.大学システムへの自動アクセスは 利用規約に抵触する場合があります.利用前に Science Tokyo の規約を確認し, アクセス頻度を抑える (キャッシュ・低頻度アクセス) など節度ある運用をしてください.

対象と基盤

  • 対象 LMS: Science Tokyo LMS (https://lms.s.isct.ac.jp/<年度>/)

  • 基盤: Moodle (確認済み).年度ごとにパスが分かれる (例: /2025/).

  • 方式: Moodle Web Services REST API + モバイルトークン認証. ブラウザ巡回 (スクレイピング) ではなく公式 API を用いるため安定・高速.

  • データ取得層 (client/moodle_client.py) は実装済みですが,実トークンでの 動作確認は未実施です (下記 science-tokyo-lms-login で取得後に検証してください).

Related MCP server: Moodle MCP Server

認証方針 (MFA 必須前提)

Science Tokyo は SAML2 SSO (isct.ex-tic.com / MFA 必須) で保護されています. そのためパスワードによるトークン発行は使えません.代わりに Moodle モバイルアプリと 同じ launch フローを用います.

# 初回のみ: ブラウザが開くので SSO ログイン (MFA 含む) を完了する
# → モバイルトークンを取得し keyring に保存する
uv run science-tokyo-lms-login

取得したトークンは keyring (利用不可なら .auth/wstoken,いずれも .gitignore 済み) に 保存され,以降はブラウザ不要で Web Services API を呼び出します.

トークン失効時の自動再ログイン

トークンが失効すると,MCP サーバは API 呼び出し中にそれを検知し,ヘッドレスブラウザで 自動的に再ログインして元の操作をリトライします.永続プロファイル (.auth/profile/) の SSO セッションが生きていれば,ユーザー操作なしに復旧します.SSO セッションも切れていて MFA の再入力が必要な場合のみ自動再ログインは失敗し,uv run science-tokyo-lms-login の 実行を促すエラーを返すので,手動で上記コマンドを実行してください.

サーバが自動再ログインする際は永続プロファイルを一時的に占有します.MCP サーバ稼働中に 別途 science-tokyo-lms-login を実行しないでください (同一プロファイルを 2 プロセスで 同時に開けません).自動再ログインを無効化したい場合は STLMS_AUTO_RELOGIN=false を設定します.

セットアップ

uv sync                              # 依存関係の同期
uv run playwright install chromium   # 使用するブラウザを取得 (chromium / firefox / webkit)
cp .env.example .env                 # 必要に応じて編集 (年度・ブラウザ等)

設定 (.env)

主な設定項目 (環境変数 STLMS_*.env で指定可).

変数

既定

説明

STLMS_LMS_BASE_URL

.../2025/

Moodle のベース URL (年度ごとにパスが変わる)

STLMS_BROWSER

chromium

トークン取得に使うブラウザ (chromium / firefox / webkit)

STLMS_TOKEN_BACKEND

auto

トークン保存方式 (auto / keyring / file)

STLMS_WSTOKEN

(なし)

トークンを直接指定する場合 (最優先)

STLMS_AUTO_RELOGIN

true

トークン失効時にヘッドレスで自動再ログインするか

keyring (パスワードストア) が使えない環境では STLMS_TOKEN_BACKEND=file を指定すると, トークンを .auth/wstoken (.gitignore 済み,パーミッション 0600) に保存します.

起動

uv run science-tokyo-lms-mcp         # MCP サーバを stdio で起動

MCP クライアント (例: Claude Desktop / Claude Code) には以下のように登録します.

{
  "mcpServers": {
    "science-tokyo-lms": {
      "command": "uv",
      "args": ["run", "--directory", "/path/to/ScienceTokyoLMS-mcp", "science-tokyo-lms-mcp"]
    }
  }
}

提供ツール

ツール

説明

list_courses

履修中コースの一覧

list_materials(course_id)

講義資料の一覧

download_material(course_id, material_id, dest_dir?)

講義資料のダウンロード

list_assignments(course_id?)

課題と締切の一覧

get_upcoming_deadlines(days=7)

直近の課題を締切順に取得

list_announcements(course_id?)

お知らせ・休講情報 (アナウンス) の一覧

submit_assignment_files(assignment_id, file_paths, confirm=False)

課題へのファイル提出 (2 段階: 既定はプレビュー)

課題の提出済み判定は別 API が必要なため,現状 submitted は常に false です (今後 mod_assign_get_submission_status で対応予定).

課題のファイル提出 (submit_assignment_files)

提出は 2 段階 で行います.いきなり提出せず,途中で内容を確認する工程を挟みます.

  1. confirm=False (既定) で呼ぶと,Moodle へは一切書き込まず,課題の説明文・ 提出制約 (許可拡張子・最大サイズ・最大数・下書き要否) と,各ファイルのローカル 検査結果 (存在・拡張子・サイズ) を返します.

  2. Claude が各ファイルを開いて中身を確認し,課題の説明文と突き合わせて妥当性を判断します.

  3. 問題なければ confirm=True で同じ引数を渡して再度呼ぶと,実際に提出します.

提出は webservice/upload.php でドラフト領域へアップロードし,mod_assign_save_submission で添付,下書き方式の課題では mod_assign_submit_for_grading で採点提出まで確定します.

注意

  • 拡張子が許可リストと明確に異なるファイルは confirm=True でも提出を中止します. ただし Moodle のタイプグループ (document 等) は近似判定のため,警告に留めます.

  • 採点提出は取り消せない場合があります.まずはテスト用課題で試すことを推奨します.

  • 提出規約のある課題では acceptsubmissionstatement=1 (同意) として送信します. confirm=True の実行をもって同意とみなす点に留意してください.

主な Moodle Web Services 関数の対応

ツール

Web Services 関数

list_courses

core_webservice_get_site_info + core_enrol_get_users_courses

list_materials

core_course_get_contents

list_assignments

mod_assign_get_assignments

list_announcements

mod_forum_get_forums_by_courses + mod_forum_get_forum_discussions

submit_assignment_files

webservice/upload.php + mod_assign_save_submission (+ mod_assign_submit_for_grading)

ディレクトリ構成

src/science_tokyo_lms_mcp/
├── server.py              # FastMCP サーバ (エントリポイント)
├── login.py               # 初回トークン取得 CLI
├── config.py              # 設定 (環境変数 STLMS_*)
├── models.py              # データモデル
├── auth/
│   ├── session.py         # Playwright 永続セッション管理
│   └── token.py           # モバイルトークンの取得・保管 (keyring)
├── client/
│   ├── base.py            # LMSClient プロトコル
│   ├── moodle_client.py   # Moodle Web Services 実装 (既定)
│   └── playwright_client.py  # スクレイピング方式のフォールバック
└── tools/                 # MCP ツール (courses / materials / deadlines / announcements / submissions)

開発

uv run ruff format .      # フォーマット
uv run ruff check .       # Lint
uv run ty check           # 型チェック
uv run pytest             # テスト

セキュリティ

  • 認証情報・cookie・トークン・ダウンロード資料は コミットしない (.gitignore 済み).

  • パスワードはコード・設定に保持せず,SSO は永続プロファイルに,トークンは keyring に委ねます.

  • リポジトリは private 運用 を推奨します.

Available Tools

7 tools
download_materialA

講義資料をダウンロードし,保存先パスを返す.

Args: course_id: コースの識別子. material_id: ダウンロードする資料の識別子. dest_dir: 保存先ディレクトリ.省略時は設定値を用いる.

Returns: 保存したファイルの絶対パス (文字列).

Raises: ValueError: 指定した資料が見つからない場合.

ParametersJSON Schema
NameRequiredDescriptionDefault
dest_dirNo
course_idYes
material_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.1/5.0
Behavior3/5

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

No annotations are provided. The description mentions a ValueError for missing material, which adds some transparency. However, it does not disclose idempotency, mutation status, or other behavioral traits.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise and well-structured with Args, Returns, and Raises sections. The main purpose is front-loaded in the first sentence.

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?

Given the tool's complexity (3 params, 2 required, with optional output schema), the description covers all necessary aspects: parameter descriptions, return type, and error handling. No evident gaps.

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 description coverage is 0%, but the docstring provides detailed explanations for all three parameters, including the optional dest_dir and its default behavior. This adds significant meaning beyond 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?

The description clearly states the tool's action (download lecture materials) and its result (return the save path). It distinguishes from sibling tools like list_materials and submit_assignment_files.

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

Usage Guidelines3/5

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

The description does not explicitly state when to use this tool over alternatives or provide prerequisites. It is inferred that it is for downloading a specific material after listing.

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

get_upcoming_deadlinesA

直近の未提出課題を締切順に取得する.

Args: days: 何日先までの締切を対象とするか.

Returns: 締切が近い順に並べた未提出課題の一覧.

ParametersJSON Schema
NameRequiredDescriptionDefault
daysNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A4.6/5.0
Behavior4/5

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

No annotations provided, but description explicitly states it filters to unsubmitted assignments and sorts by deadline. Adequate for a simple retrieval tool.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two concise sentences plus structured Args/Returns. No wasted words, well-organized.

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?

For a simple list retrieval tool with one parameter and output schema, description covers purpose, parameter, and return format completely.

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?

Schema coverage is 0%, but description explains the 'days' parameter as 'Number of days ahead to target deadlines,' adding essential semantic meaning beyond 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?

Description clearly states it retrieves upcoming deadlines for unsubmitted assignments in order. Differentiates from siblings like list_assignments which may not filter by deadline or submission status.

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?

Context is clear: use to view upcoming unsubmitted deadlines. No explicit when-not, but siblings provide context for alternatives.

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

list_announcementsB

お知らせ・休講情報の一覧を取得する.

Args: course_id: コースの識別子.省略時は全コース横断.

Returns: お知らせの一覧.

ParametersJSON Schema
NameRequiredDescriptionDefault
course_idNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.1/5.0
Behavior2/5

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

No annotations provided. Description only states it returns a list, with no mention of side effects, permissions, pagination, or ordering. Minimal disclosure for a read operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise with clear purpose and parameter description. No unnecessary words; front-loaded with key information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the simplicity (one optional param, output schema exists), the description is functional but lacks details like ordering, pagination, or scope. Output schema likely covers return structure, so completeness is adequate but basic.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0%, so description must add meaning. It describes course_id as 'course identifier' and explains behavior when omitted, adding value beyond the schema. However, the description is brief and lacks format details.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it retrieves a list of announcements and class cancellations, with optional course_id filtering. However, it does not differentiate from sibling list tools like list_assignments or list_materials.

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

Usage Guidelines2/5

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

No explicit guidance on when to use this tool versus alternatives. The description implies usage for announcements but lacks context or exclusions.

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

list_assignmentsB

課題と締切の一覧を取得する.

Args: course_id: コースの識別子.省略時は全コース横断.

Returns: 課題の一覧.

ParametersJSON Schema
NameRequiredDescriptionDefault
course_idNo

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.2/5.0
Behavior2/5

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

With no annotations, the description only states it gets assignments and returns a list. No disclosure of side effects, authentication needs, or limitations beyond the basic retrieval behavior.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Extremely concise and well-structured with Args and Returns sections. Every sentence is necessary and adds value.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a simple list tool with one optional parameter and an output schema present. Could include more context like typical usage or error handling, but not critical.

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?

Despite 0% schema coverage, the description adds useful semantics: it explains that omitting course_id queries all courses. This compensates for the schema's lack of description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Description clearly states it retrieves assignments and deadlines, specifying the optional course_id scope. It implicitly distinguishes from siblings like 'get_upcoming_deadlines' by focusing on assignments, but does not explicitly differentiate.

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

Usage Guidelines2/5

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

No guidance on when to use this tool versus siblings like 'get_upcoming_deadlines' or 'list_courses'. Lacks context or examples for typical usage.

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

list_coursesA

履修中のコース一覧を取得する.

Returns: コースの一覧.

ParametersJSON Schema
NameRequiredDescriptionDefault

No parameters

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

A3.8/5.0
Behavior3/5

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

No annotations are provided, so the description must carry behavioral context. It merely states 'get the list' without explicitly mentioning read-only behavior or any side effects. For a simple list, this is acceptable but minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with two sentences, no wasted words. It front-loads the main action and includes a return statement.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool has no parameters and an output schema exists (covering return value details), the description is sufficiently complete for its simplicity. It could hint at what is included in 'list of courses,' but the output schema likely covers that.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

There are no parameters, so schema coverage is 100% trivially. Per guidelines, baseline is 3. The description adds no parameter information, which is fine as there are none.

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 clearly states the verb '取得する' (get) and resource '履修中のコース一覧' (list of enrolled courses). It distinguishes itself from sibling tools that operate on specific sub-resources like assignments or materials.

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

Usage Guidelines3/5

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

The description gives no guidance on when to use this tool versus alternatives. It is adequate as a basic list query but lacks context such as prerequisites or cases where another tool would be more appropriate.

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

list_materialsB

指定コースの講義資料一覧を取得する.

Args: course_id: コースの識別子.

Returns: 講義資料の一覧.

ParametersJSON Schema
NameRequiredDescriptionDefault
course_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
resultYes

TDQS

B3.4/5.0
Behavior2/5

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

No annotations are provided, so the description must fully disclose behavior. It states it 'retrieves' a list, implying a read-only operation, but does not mention any other behavioral traits such as permissions, error handling, rate limits, or whether it is destructive. For a tool with no annotations, this disclosure is insufficient.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise with three short sections: overall purpose, args, and returns. Every word serves a purpose, and the structure is clear and easy to parse. There is no extraneous information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with one parameter and a read operation, the description is minimally adequate. It mentions that output is a 'list of lecture materials,' but since an output schema exists (context signal), the burden on the description for return values is reduced. However, it lacks context on what materials are included or how to interpret results. Overall, it is acceptable but not comprehensive.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, meaning the schema provides no descriptions for parameters. The description only restates 'course_id' as 'コースの識別子' (course identifier), adding no meaningful semantic value beyond the parameter name. This does not help an agent understand expected format or constraints.

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 clearly states it retrieves a list of lecture materials for a specified course, using a specific verb ('取得する') and resource ('講義資料一覧'). It distinguishes from sibling tools like 'download_material' (download) and 'list_assignments' (assignments), making its purpose unambiguous.

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

Usage Guidelines3/5

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

The description indicates the tool requires a course_id, implying use when you have a course and need materials. However, it does not explicitly state when to use this tool versus alternatives like 'list_assignments' or 'list_announcements', nor does it specify prerequisites or conditions.

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

submit_assignment_filesA

課題にファイルを提出する (2 段階: 既定はプレビュー).

confirm=False (既定) では Moodle へ一切書き込まず,課題の説明文・提出制約・ 各ファイルの検査結果のみを返す.この結果を受け取ったら,各ファイルを Read で 開いて内容を確認し,課題の説明文 (assignment_intro) と突き合わせて,提出物が 課題の意図に合っているかを必ず判断すること. 問題がなければ confirm=True で 同じ引数で再度呼び出すと実提出する.

Args: assignment_id: 課題 (assignment) の ID.list_assignments で取得できる. file_paths: 提出するローカルファイルのパス (複数可). confirm: True で実提出.False (既定) はプレビューのみ (書き込みなし).

Returns: 提出プレビュー,または提出結果 (:class:SubmissionPlan).

Raises: ValueError: confirm=True だが検査に通らないファイルや個数超過がある場合.

ParametersJSON Schema
NameRequiredDescriptionDefault
confirmNo
file_pathsYes
assignment_idYes

Output Schema

ParametersJSON Schema
NameRequiredDescription
filesYes各提出予定ファイルの検査結果.
notesNoClaude / ユーザーへの注意書き (確認を促す文言).
all_okYes全ファイルが提出可能な状態か.
confirmedNo実際に提出したか (False はプレビュー).
constraintsYes課題のファイル提出制約.
assignment_idYes課題 (assignment) の ID.
assignment_introNo課題の説明文 (HTML 除去済み).
assignment_titleYes課題のタイトル.
submitted_for_gradingNo採点提出まで確定したか.

TDQS

A4.6/5.0
Behavior4/5

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

With no annotations, the description carries full burden. It discloses that confirm=False does not write to Moodle and returns preview, while confirm=True performs actual submission. It also mentions ValueError for invalid files. However, it does not specify if submission is irreversible or any permission requirements.

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?

Description is well-structured with sections for Args, Returns, Raises. It is slightly verbose but every sentence adds value. Could be trimmed slightly without losing clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the presence of output schema, description adequately covers workflow, parameters, and exceptions. It could mention how to obtain assignment_intro, but overall complete for a submission tool.

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?

Despite 0% schema coverage, the description's Args block fully explains each parameter: assignment_id (from list_assignments), file_paths (local paths), confirm (default false for preview). This adds significant meaning beyond 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?

The description clearly states the tool's purpose: 'Submit files to assignment (2 steps: default is preview)'. It uses a specific verb ('submit') and resource ('assignment files'), and distinguishes from sibling tools which are primarily read/list actions.

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?

Description explicitly explains the two-step workflow: use confirm=False for preview (no write) and confirm=True for actual submission. It instructs to verify files against assignment_intro before confirming, providing clear when-to-use guidance.

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

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 7 tool updatesv0.1.0
    • First observeddownload_material
    • First observedget_upcoming_deadlines
    • First observedlist_announcements
    • First observedlist_assignments
    • First observedlist_courses
    • First observedlist_materials
    • First observedsubmit_assignment_files

TDQS

A3.9/5.0

Scored across 7 tools

Disambiguation5/5

Each tool targets a distinct action-resource pair: download, list, get deadlines, submit. Even list_assignments and get_upcoming_deadlines have clear differences (all vs unsubmitted sorted).

Naming Consistency5/5

All tool names follow a consistent verb_noun snake_case pattern: download_material, list_announcements, submit_assignment_files, etc. No mixing of conventions.

Tool Count5/5

7 tools cover essential student LMS operations without bloat. Each tool serves a clear purpose, and the count feels well-scoped for a focused integration.

Completeness4/5

Covers core student workflow: browse courses/materials/assignments, check deadlines, download materials, submit assignments. Missing features like viewing grades or submission history are minor gaps.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers