Skip to main content
Glama

list_courses

Retrieves all courses the user is enrolled in from Moodle, enabling an AI assistant to identify available learning spaces and access their materials.

Instructions

List all courses the 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": "list_courses"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior2/5

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

With no annotations, the description carries the full behavioral burden and delivers only that the result is scoped to the enrolled user. It says nothing about ordering, pagination, whether archived or completed courses are included, or whether an empty enrollment yields an empty list. For a read-only listing tool these are the facts an agent actually needs to interpret the result.

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 clause with zero filler, front-loaded with the verb and scope. Nothing could be removed without losing meaning.

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 zero-parameter list tool the description is close to sufficient, but with no output schema and no annotations there is no indication of the returned fields (course ids, names, enrollment status) or list size limits. The minimum viable bar is met, with clear remaining 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?

The tool takes zero parameters, so there is no schema semantics to compensate for; baseline 4 applies. The description's only parameter-adjacent content is the implicit 'current user' scoping, which is consistent with the empty schema.

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?

"List all courses the user is enrolled in" pairs a specific verb (list) with a specific resource (courses) and adds a scope qualifier (enrolled in), which distinguishes it from per-course siblings like get_course_contents. It stops short of naming a sibling or stating what it is not, so it is clear but not maximally differentiating.

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?

Usage is only implied: enumerating the user's enrollments is the natural first step before calling get_course_contents or get_course_documents, but the description neither states that nor offers any when-not condition. An agent must infer the routing decision from sibling names alone.

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