Skip to main content
Glama

Leave (unenroll from) class

leave_class
Destructive

Unenrolls you from a Google Classroom class after confirmation, removing access until you are re-invited or rejoin with a code.

Instructions

Unenroll yourself from a class. You will lose access to it until re-invited or you re-join with a code. 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>",
      "confirm": "<confirm>"
    },
    "name": "leave_class"
  }
}

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and readOnlyHint=false, and the description adds real context beyond that: the concrete consequence (loss of access until re-invited or re-joining with a code) and a candid reliability caveat that the write format was reverse-engineered from the web client and is unverified, so the agent should check the result. That caveat is exactly the kind of behavioral information structured fields cannot carry.

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?

Three short sentences, front-loaded with the action, then the consequence, then the caveat. Nothing is redundant and every sentence changes how the agent would behave.

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 destructive, parameter-light tool with no output schema, the definition covers purpose, consequence, and the unverified-write risk. Minor gaps remain (whether ownership or role restrictions block leaving, and what a failure looks like), but the essentials are present.

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%, so both the flexible 'course' identifier formats and the const-true 'confirm' guard are already fully documented in the schema. The description adds no further parameter meaning, which is the expected baseline here.

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 and resource ('Unenroll yourself from a class') that is unmistakably the inverse of the sibling join_class, and the title reinforces it. An agent can distinguish this from join_class, list_courses, or get_course without opening any schema.

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?

The description makes the use case and its consequence clear ('You will lose access to it until re-invited or you re-join with a code'), which tells the agent when this is appropriate and what the cost is. It stops short of explicit when-not guidance (e.g., owner accounts, last-admin scenarios) or naming join_class as the reversal path.

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