Skip to main content
Glama

get_course_modules

Retrieve a Canvas course's modules and ordered items, filter by module name or week number, and use summary detail to list modules with item counts only.

Instructions

A course's modules and their items, in order. Filter with module (name or week number, e.g. '14'); detail='summary' lists modules with item counts only, to save context.

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": "get_course_modules"
  }
}

Input Schema

NameRequiredDescriptionDefault
courseYesCourse id, code (e.g. 'CHEM 343', 'CS 252') or part of its name
detailNofull
moduleNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations exist, so the description carries the full burden; it discloses that results are ordered and that summary mode returns item counts only, which is useful behavioral detail. It does not cover read-only nature explicitly, error behavior for an unknown course, or what a 'module item' contains.

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?

Two tight sentences, front-loaded with what the tool returns and followed by the filtering and context-saving options. Zero filler.

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 three-parameter read tool with no output schema, this covers return shape at a high level, ordering, and the two non-obvious parameters. Minor gaps remain around item structure and failure modes, but nothing critical for invocation.

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 coverage is 33%, and the description compensates well for two of three parameters: it explains that module accepts a name or a week number (with the '14' example) and pins down detail='summary' semantics and its context-saving purpose. The course parameter is left entirely to the schema, which is acceptable given the schema describes it adequately.

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 resource and verb-equivalent: 'A course's modules and their items, in order', which is concrete and distinguishable from file/assignment siblings. It does not explicitly name an alternative tool, so it falls short of 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?

Offers practical guidance on the module filter and recommends detail='summary' to save context, which is genuine usage advice. However, it never says when to reach for this tool over siblings like get_page or list_course_files, leaving tool selection to inference.

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