Skip to main content
Glama

moodle_course_contents

Read-only

Retrieve a Moodle course's sections and activities—lectures, practical work, files, quizzes, and assignments—using a course ID to inspect its structure and content.

Instructions

List a course's sections and activities: lectures, practical work, files, quizzes and assignments.

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": {
      "courseid": "<courseid>"
    },
    "name": "moodle_course_contents"
  }
}

Input Schema

NameRequiredDescriptionDefault
siteNoSite key or URL. Optional when only one site is logged in.
courseidYesCourse id from moodle_list_courses.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.1

TDQS

B3.4/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 the useful detail of what content categories appear in the response, but says nothing about depth, pagination, or how section/module identifiers relate to downstream tools like moodle_read_file or moodle_quiz_start_attempt.

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?

A single front-loaded sentence with no filler. It could be slightly stronger by front-loading the course-scoping constraint or a routing hint, but there is no wasted wording.

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 read-only two-parameter listing tool with no output schema, the description is adequate but thin: it never describes the response shape (sections containing activity entries with ids/types) that an agent needs to chain into quiz, file, or assignment tools. Nothing is misleading, but the caller must discover structure at runtime.

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 description coverage is 100%, so both parameters (site and courseid) are already documented, including the pointer to moodle_list_courses. The description adds no further meaning about the parameters, which is acceptable at this coverage level but earns only the baseline.

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?

The description gives a concrete verb plus resource ('List a course's sections and activities') and enumerates the content types returned (lectures, practical work, files, quizzes, assignments), so the agent knows exactly what is fetched. It stops short of distinguishing itself from siblings such as moodle_course_pages or moodle_assignments, which cover overlapping subsets.

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: wanting a course overview points here, and the schema ties courseid to moodle_list_courses. There is no explicit statement of when to prefer this over moodle_course_grades, moodle_course_pages or moodle_assignments, and no mention of prerequisites such as being logged in.

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