Skip to main content
Glama

Class materials

get_course_materials
Read-only

Fetch posted materials for a single Google Classroom class by course ID or name, grouped by topic and linked to each attached Drive file.

Instructions

Posted materials for one class, picked by course_id or course_name, grouped by topic with the Drive link of every attached file. Use this when the user asks 'What materials did my teacher post?' or 'What did we cover in unit 3?' or wants the readings, slides and handouts for one class.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_course_materials"
  }
}

Input Schema

NameRequiredDescriptionDefault
course_idNoClassroom course ID. Pass this or course_name.
course_nameNoPart of a class name or section, for example Biology, matched without checking case. Pass this or course_id, so you can skip get_my_courses. It must match exactly one active class.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv0.1.10
    • changedInput schema / properties / course_id / description
      Previous value: -"Classroom course ID. Use get_my_courses to find it."New value: +"Classroom course ID. Pass this or course_name."
    • addedInput schema / properties / course_name
      Added value: +{
      +  "description": "Part of a class name or section, for example Biology, matched without checking case. Pass this or course_id, so you can skip get_my_courses. It must match exactly one active class.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "course_id"
      -]
  2. First observedv0.1.5

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so the safety profile is covered. The description adds real behavioral value: results are grouped by topic and every attached file exposes a Drive link, which tells the agent what it will actually receive. It does not say what happens when no materials are posted or when a course name is ambiguous, though the schema covers the latter.

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?

Front-loaded with what the tool returns, then when to use it. The quoted example questions are a bit padded, but each one maps to a distinct phrasing an agent might encounter, so they mostly earn their space.

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 only two optional params, no output schema, and read-only annotations, the description covers purpose, invocation route, and return shape. The main remaining gap is edge-case behavior (empty material lists, ambiguous course names), which is partly handled in the schema.

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% and the schema already explains that either course_id or course_name suffices, that name matching is case-insensitive, and that it must resolve to exactly one active class. The description only restates 'picked by course_id or course_name', adding no new selector semantics, so baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb+resource (fetch posted materials for one class) plus how results are organized: grouped by topic with the Drive link of each attached file. That output shape plus the course_id/course_name selector distinguishes it cleanly from siblings like get_assignments or get_announcements.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives concrete trigger phrasing ('What materials did my teacher post?', 'What did we cover in unit 3?') and names the content types it covers (readings, slides, handouts). It lacks an explicit when-not or a direct pointer to a competing sibling, which keeps it below a 5.

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