Skip to main content
Glama

List course sections

moodle_list_sections
Read-only

Lists a course's sections with their numbers so you can choose where to create a quiz.

Instructions

Sections (topics) of a course with their numbers, needed to choose where to create a quiz.

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_list_sections"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseidYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/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 only that results carry section numbers; it says nothing about ordering, whether empty/hidden sections are included, or result size — modest added value against a lowered bar.

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 zero filler, naming the resource first and the downstream purpose second. Slightly compressed to the point that the verb and parameter meaning are sacrificed.

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 one-parameter read tool with no output schema, the definition covers the essential idea but leaves the caller guessing at the courseid value source and at what fields each section object contains beyond its number. Adequate but with clear gaps.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 0% for the single required parameter, so the description carries the full burden of explaining courseid. It only implies the parameter through the phrase 'of a course' and never states the expected ID type or where the value comes from (e.g., moodle_list_courses).

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 the resource precisely — sections (topics) of a course — and clarifies it returns section numbers, which is the discriminating detail versus siblings like moodle_list_quizzes or moodle_list_question_categories. The verb is implicit ('list') rather than stated, which keeps it just below a 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?

Gives a usage motivation — 'needed to choose where to create a quiz' — which links it loosely to moodle_create_quiz. However it does not state when this tool is not appropriate, nor does it name any alternative for obtaining section context, so the guidance is implied rather than explicit.

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