Skip to main content
Glama

moodle_course

Read-onlyIdempotent

Retrieve a course's sections and learning materials—including files, pages, forums, assignments, and links—with module IDs by course ID or name.

Instructions

Show a course's sections and materials (files, pages, forums, assignments, links) with their [module ids]. course is the course id or part of its name.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "course": "<course>"
    },
    "name": "moodle_course"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered by structured data. Beyond that, the description adds only the shape of the payload (sections containing materials with module ids); it says nothing about whether the listing is complete or paged, or about how partial-name matching resolves ambiguity.

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?

Two short sentences, with the return shape front-loaded before the parameter note. The bracketed '[module ids]' is slightly cryptic markup that requires the reader to infer it flags the fields intended for downstream tool calls.

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?

With one parameter and an output schema present, the description need not explain return values, and it covers the input plus the content types surfaced. The remaining gap is the behavior of fuzzy course-name matching, which matters for a lookup keyed on a non-unique string.

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%, so the description must carry this dimension, and it does: it identifies the single parameter and, importantly, discloses that a partial name is accepted as well as an id. What it omits is how ambiguous partial matches behave (error, first match, or multiple), which is the one behavior an agent would still need.

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 concrete verb ('show') and a concrete resource (a course's sections and materials) and enumerates the item types returned (files, pages, forums, assignments, links), so an agent knows this is a per-course content browser rather than a course list. It does not explicitly name the sibling it contrasts with (e.g. moodle_courses), so sibling differentiation rests on inference.

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: 'course is the course id or part of its name' suggests this is the entry point once you have a course, and the mention of module ids hints at feeding those ids to another tool. There is no explicit when-to-use statement, no exclusion of alternatives, and no note on choosing this over moodle_courses or moodle_open.

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