Skip to main content
Glama

get_module

Read-onlyIdempotent

Fetches full details for one course activity by module ID, covering files, dates, assignment submission status and feedback, page text, or URL targets.

Instructions

Details of one activity: description, dates, attached files; for assignments the submission status and feedback, for pages the text, for url modules the target. type may be omitted after get_course.

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": {
      "cmid": "<cmid>"
    },
    "name": "get_module"
  }
}

Input Schema

NameRequiredDescriptionDefault
cmidYes
typeNoassign | quiz | page | url | folder | resource | forum

Output Schema

NameRequiredDescriptionDefault
cmidYes
textNoBody of a page module
typeYes
datesNo
filesNoAttachments of the activity itself
titleNo
quiz_infoNo
submissionNo
target_urlNoWhere a url module points
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and open-world, so the safety profile is fully covered. The description adds genuine behavioral context by disclosing that the returned content changes with module type, but says nothing about behavior for unknown/invalid cmid or unsupported types.

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 dense sentence that front-loads the core payload description and appends the type-omission rule. Efficient, though the semicolon-separated type enumeration makes it slightly harder to scan than a short list.

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?

An output schema exists, so return values needn't be explained, and the description usefully characterizes per-type content. However, for a tool whose only required parameter is cmid, the absence of any explanation of where cmid comes from is a real completeness gap.

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 coverage is 50%: the type enum is documented in the schema and the description reinforces it with the 'may be omitted after get_course' rule. The required cmid parameter has no description in either place, and the description does not clarify that cmid is a course-module id rather than a course or instance id.

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 verb+resource: returns the details of one activity, and enumerates the payload by module type (assign submission status/feedback, page text, url target). It is clearly distinct from list_courses or get_course, though it never names a sibling to differentiate against explicitly.

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?

"type may be omitted after get_course" gives one concrete usage hint — a sequencing dependency on get_course. Beyond that there is no guidance on when to call get_module versus get_forum or get_grades, nor any stated failure conditions.

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