Skip to main content
Glama

moodle_list_courses

Read-only

Lists the Moodle courses the signed-in user is enrolled in, optionally targeting a specific site. Use it to discover available courses before fetching grades, deadlines, or assignments.

Instructions

List courses the signed-in user is enrolled in.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "moodle_list_courses"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite key or URL. Optional when only one site is logged in.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so the safety profile is covered. The description adds that results are identity-scoped to the signed-in user, which is real context, but says nothing about ordering, pagination, or behavior when no session exists.

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?

A single front-loaded sentence with no filler. The scoping qualifier arrives immediately, which is exactly what an agent needs to decide whether to call it.

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?

For a zero-required-parameter read tool with full schema coverage and no output schema, the definition covers the essentials. A brief note on the login prerequisite or result shape would make it complete, but nothing critical is missing.

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?

With one parameter and 100% schema description coverage, the schema already explains the optional site key/URL. The description adds no further meaning about how site selection affects results, so the baseline 3 applies.

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?

States a specific verb and resource plus a meaningful scope: 'List courses the signed-in user is enrolled in.' This distinguishes it from moodle_list_sites and moodle_course_contents by focus, but it never explicitly names or contrasts those siblings, keeping it at 4 rather than 5.

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?

Use is only implied by the scope phrase: fetch the user's course list. There is no explicit guidance on when to pick this over moodle_course_contents or moodle_grades_overview, no prerequisite note beyond 'signed-in', and no exclusions.

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