Skip to main content
Glama
NCCU-AI-SYSTEM

NCCU Moodle MCP

List Moodle courses

list_courses

Lists enrolled Moodle courses with your role, filtered by semester. Omit semester for current term, specify a term code, or use 'all' for every course.

Instructions

List the student's enrolled Moodle courses (with the user's role in each), filtered by semester.

By default (no sem), returns ONLY the latest semester's courses (the current term). Pass sem as an NCCU term code (e.g. "1142") to get that semester; pass "all" to return every enrolled course.

Each course is returned as an object with:

  • id (int) Moodle course id, usable in other course tools

  • name (str) full course title

  • url (str) direct link to the course

  • semester (str) NCCU term code the course belongs to (e.g. "1151")

  • current (bool) true if it is in the current (latest) semester

  • role (str) the user's role: 'student', 'teacher', 'editingteacher', 'teachingassistant', … (null if unknown)

Credentials come from the MCP settings headers, not from you.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
semNoNCCU term code, e.g. "1142". Omit for the latest semester; "all" for every semester.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations are absent, so the description carries the full burden. It discloses the non-obvious default (latest semester only), the output fields and their types, possible role values, and that credentials are injected from MCP settings. This is rich behavioral context beyond the schema.

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 well-organized: a one-sentence purpose, a compact behavior paragraph, a bulleted output definition, and a short credential note. No sentence is redundant or 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?

For a one-parameter list tool with no output schema, the description fully covers return values, default semantics, parameter usage, and authentication behavior. Potential gaps like pagination or error handling are minor and do not prevent correct invocation.

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?

Although schema description coverage is 100%, the description adds meaning beyond the schema by explaining the default behavior when sem is omitted, the semantic value 'all', and providing example term codes. This gives an agent everything needed to use the parameter correctly.

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 states a specific verb ('List'), a precise resource ('the student's enrolled Moodle courses'), and the scope (with role, filtered by semester). It clearly distinguishes this from sibling search_courses by limiting to enrolled courses.

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?

The description explicitly explains the default behavior (latest semester only) and how to use the sem parameter for a specific term or 'all'. It does not name alternative tools directly, but the enrollment scope and parameter guidance give a clear usage context.

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