Skip to main content
Glama

Join class with code

join_class

Use a class code to join a Google Classroom class and access its stream, classwork, and assignments; check the result after joining.

Instructions

Join a class using its class 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": {
      "code": "<code>"
    },
    "name": "join_class"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesClass code, e.g. abc1def

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?

Annotations already declare readOnlyHint=false, destructiveHint=false and openWorldHint=true. The description adds genuinely new behavioral context that annotations cannot convey: the request format is derived from the web client and unverified against a live account, and the caller should check the result — a real reliability caveat for a write operation.

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, action first, caveat second, with no filler. The unverified-format warning is placed where it will be read before invocation rather than buried.

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?

There is no output schema, and the description partially compensates by telling the agent to check the result, though it does not say what a successful join yields or how failures surface. For a one-parameter mutation with annotations and full schema coverage, this is close to complete.

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 the single parameter already documents length bounds (5-8) and an example. The description only restates that a class code is required, adding no format, casing, or validity semantics beyond the schema, 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?

States a specific verb and resource ('Join a class') plus the mechanism ('using its class code'), so an agent knows exactly what action is performed. It does not explicitly contrast with sibling tools like leave_class or accept_invitation, but the action is unambiguous on its own.

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?

Usage is implied by 'using its class code' — the agent must already possess a code — but there is no explicit statement of prerequisites (where the code comes from, what happens if it is invalid or expired) and no guidance on when this is preferred over accept_invitation or get_course.

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