Skip to main content
Glama

Accept class invitation

accept_invitation

Join a Google Classroom class by accepting an invitation using a course ID, classroom link, or class name.

Instructions

Accept an invitation to join a class (the course id is shown on the invitation / in list_courses). NOTE: the request format for this write was derived from the Classroom web client's code and has not been verified against a live account; check the result.

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

Input Schema

NameRequiredDescriptionDefault
courseYesCourse: numeric id, a classroom.google.com/c/... link, or (part of) the class name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

The annotations already declare a non-destructive, open-world write, and the description adds context the annotations cannot carry: the request format was reverse-engineered from the web client and is unverified, with an instruction to check the result. That is a meaningful reliability caveat for a mutation. It stops short of saying what a successful or failed acceptance returns, which matters since there is no output schema.

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?

Two sentences, front-loaded with the action and the parameter sourcing, then the caveat. Nothing is redundant, though the parenthetical and the NOTE are slightly dense and could be split for faster scanning.

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 one-parameter mutation with no output schema, the description covers the action, where the argument comes from, and a genuine caveat about the request format's provenance. The only gap is the absence of any indication of what 'check the result' looks like, which an agent must discover empirically.

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 100% and the single parameter already documents accepted formats (numeric id, classroom.google.com link, or partial class name). The description adds the source of that identifier (the invitation itself or list_courses), which is real meaning beyond the schema, though it does not clarify precedence or ambiguity when a partial name matches multiple classes.

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?

The description states a specific verb and resource: 'Accept an invitation to join a class', which is concrete enough to act on. It does not distinguish itself from the sibling join_class, so an agent cannot tell from the text alone which of the two membership tools applies to a given situation.

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?

It gives useful prerequisite context by pointing to where the course identifier comes from ('shown on the invitation / in list_courses'), which implies the intended workflow. However, it never states when to prefer this over join_class, nor any exclusion or failure condition, so guidance remains 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.