Skip to main content
Glama

Class assignments

get_assignments
Read-only

Retrieve every assignment for a single Google Classroom class by course ID or name, including due dates, status, points, and links to open each one.

Instructions

Assignments for one class, picked by course_id or course_name, with due dates and status, each with a link to open it in Classroom. Use this when the user asks 'What's due in this class?' or wants every assignment and its points for a single 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_assignments"
  }
}

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

A3.9/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 safety is covered. The description adds useful disclosure about what comes back (due dates, status, deep link), which matters because there is no output schema, but says nothing about behavior on an ambiguous course_name or an unmatched class beyond what the schema already states.

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 sentences, front-loaded with the resource and scope, then the usage trigger. 'Single class' appears twice but the repetition reinforces the key constraint rather than wasting space.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter read tool with no output schema, the description tells the agent what selector to use, what the results contain, and when to reach for it. Nothing essential to a correct call is missing.

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 100% and both parameters are documented in the schema, including case-insensitive partial matching and the exactly-one-match rule. The description only restates the either/or choice, adding no syntax or matching nuance of its own, so baseline 3 applies.

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?

Names a specific resource (assignments) and scopes it to exactly one class selected by course_id or course_name, which separates it from get_assignment_details (one assignment) and get_todo/get_upcoming_due_dates (cross-class lists). It does not name those siblings explicitly, so the differentiation is inferred from scope rather than stated.

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 a concrete trigger phrase ('What's due in this class?') and the intent 'every assignment and its points for a single class', which is a usable selection rule. It stops short of stating when NOT to use it, e.g. across all classes or for a single assignment's detail.

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