MetorialDocs

Set up Google Classroom in Metorial for AI agents

Share Google Classroom with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 19 tools (5 read-only).

To give your team Google Classroom in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Google Classroom integration in a Metorial portal, and each person signs in to Google Classroom with their own account. Agents can manage courses, rosters, and assignments in Google Classroom. The integration has 19 tools, 5 read-only, 12 write and 2 destructive, plus 4 triggers.

What you'll learn

  • How an admin shares Google Classroom in a portal and how each person connects
  • The 26 OAuth scopes Google Classroom can request, and what each one allows
  • How to keep the 5 read-only tools and reject the other 14

Before you start

Sign-in method

MethodTypeWhat a person provides
Google OAuthOAuthSigns in to Google Classroom

Google OAuth

People sign in to Google Classroom and approve the scopes you allow. The integration can request:

ScopeNameWhat it allows
https://www.googleapis.com/auth/classroom.coursesManage CoursesCreate, edit, and delete classes
https://www.googleapis.com/auth/classroom.courses.readonlyView CoursesView classes
https://www.googleapis.com/auth/classroom.rostersManage RostersManage class rosters
https://www.googleapis.com/auth/classroom.rosters.readonlyView RostersView class rosters
https://www.googleapis.com/auth/classroom.coursework.meManage Own CourseworkManage own coursework and grades
https://www.googleapis.com/auth/classroom.coursework.me.readonlyView Own CourseworkView own coursework and grades
https://www.googleapis.com/auth/classroom.coursework.studentsManage Student CourseworkManage coursework and grades for students in classes you teach
https://www.googleapis.com/auth/classroom.coursework.students.readonlyView Student CourseworkView coursework and grades for students in classes you teach
https://www.googleapis.com/auth/classroom.courseworkmaterialsManage Coursework MaterialsManage classwork materials
https://www.googleapis.com/auth/classroom.courseworkmaterials.readonlyView Coursework MaterialsView classwork materials
https://www.googleapis.com/auth/classroom.announcementsManage AnnouncementsManage announcements
https://www.googleapis.com/auth/classroom.announcements.readonlyView AnnouncementsView announcements
https://www.googleapis.com/auth/classroom.topicsManage TopicsManage topics
https://www.googleapis.com/auth/classroom.topics.readonlyView TopicsView topics
https://www.googleapis.com/auth/classroom.guardianlinks.studentsManage GuardiansManage guardians for students
https://www.googleapis.com/auth/classroom.guardianlinks.students.readonlyView GuardiansView guardians for students
https://www.googleapis.com/auth/classroom.guardianlinks.me.readonlyView Own GuardiansView own guardians
https://www.googleapis.com/auth/classroom.profile.emailsView Profile EmailsView email addresses of people in classes
https://www.googleapis.com/auth/classroom.profile.photosView Profile PhotosView profile photos of people in classes
https://www.googleapis.com/auth/classroom.push-notificationsPush NotificationsReceive notifications about Classroom data changes
https://www.googleapis.com/auth/classroom.addons.teacherManage Add-ons (Teacher)Manage add-on attachments as a teacher
https://www.googleapis.com/auth/classroom.addons.studentView Add-ons (Student)View/update add-on attachments as a student
https://www.googleapis.com/auth/classroom.student-submissions.me.readonlyView Own SubmissionsView own submissions and grades
https://www.googleapis.com/auth/classroom.student-submissions.students.readonlyView Student SubmissionsView student submissions in classes you teach
https://www.googleapis.com/auth/userinfo.profileUser Profile InfoView basic profile information
https://www.googleapis.com/auth/userinfo.emailUser EmailView email address

The read-only tools need only https://www.googleapis.com/auth/classroom.profile.emails, https://www.googleapis.com/auth/classroom.rosters, https://www.googleapis.com/auth/classroom.coursework.students and https://www.googleapis.com/auth/classroom.courses.readonly. Allow just those in the Scopes picker when you create your own auth credentials, and the connection cannot change anything.

Use your own Google Classroom OAuth app

With your own OAuth app, people see your company's name on the Google Classroom consent screen, and the client ID and secret belong to you.

Start the credentials in Metorial

In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Google Classroom and copy the Redirect URI.

Register the app

In the Google Cloud console, enable the API behind Google Classroom under APIs & Services, Library. Then go to Google Auth platform, Clients, click Create Client, choose Web application, and paste the redirect URI from Metorial under Authorized redirect URIs. Google shows the client secret only when you create the client.

The Google Workspace guide covers the consent screen and the OAuth client in Google Cloud step by step.

Finish in Metorial

Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Google Classroom integration.

Admin: share Google Classroom in a portal

In the dashboard

Open Shared Resources

Open Workforce, choose the portal, and select Shared Resources under Access.

Share a new integration

Select Share a Resource, then New Integration, and choose Google Classroom. For how members connect, choose Each person connects, so everyone signs in to Google Classroom as themselves.

Limit the tools

Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Google Classroom.

Choose who gets it

Add the access groups that should see Google Classroom. When a person asks for access from the portal, the request appears under Access Requests.

With the CLI

The CLI cannot create the per-user Google Classroom integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "google classroom"

Employee: connect Google Classroom

In the portal

Open Google Classroom in the catalog

Sign in to your portal and open Google Classroom. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Google Classroom sign-in tab opens. Sign in and approve the permissions listed.

Confirm

The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.

With the CLI

metorial catalog search "google classroom"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your Google Classroom connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.

metorial list "google classroom"
metorial client list
metorial install <client-identifier> <integration-id>

For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.

Make it read-only

Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 5 read-only tools, such as get_course and list_roster, and lose the 12 write tools, such as create_course or manage_roster, and the 2 destructive tools, such as delete_course or delete_coursework.

Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.

Check it worked

metorial list "google classroom"
metorial tools <integration-id>
metorial call <integration-id> list_courses -d '{}'

metorial tools lists the 19 tools, minus any you rejected. list_courses takes no input. It lists courses in Google Classroom.

To see every input a tool takes, run metorial schema <integration-id> <tool-key>.

Tools

Read-only tools (5)

  • get_user_profile: Retrieve a user profile from Google Classroom by user ID or email address. Needs userId.
  • list_roster: List teachers and/or students enrolled in a Google Classroom course. Needs courseId.
  • list_coursework: List coursework (assignments, questions) in a Google Classroom course. Needs courseId.
  • list_courses: List courses in Google Classroom.
  • get_course: Retrieve detailed information about a specific Google Classroom course by its ID or alias. Needs courseId.

Write tools (12)

  • manage_submissions: List, grade, turn in, return, or reclaim student submissions for coursework in Google Classroom. Needs courseId, courseWorkId and action.
  • create_coursework: Create an assignment, quiz, or other coursework in a Google Classroom course. Needs courseId, title and workType.
  • manage_coursework_materials: Create, list, update, or delete coursework materials in a Google Classroom course. Needs courseId and action.
  • update_course: Update an existing Google Classroom course. Needs courseId.
  • manage_guardians: List, invite, and remove guardians for students in Google Classroom. Needs studentId and action.
  • manage_roster: Add or remove teachers and students from a Google Classroom course. Needs courseId and action.
  • create_course: Create a new course in Google Classroom. Needs name.
  • manage_topics: Create, list, update, or delete topics in a Google Classroom course. Needs courseId and action.
  • manage_invitations: Create, list, accept, or delete course invitations in Google Classroom. Needs action.
  • manage_announcements: Create, list, update, or delete announcements in a Google Classroom course. Needs courseId and action.
  • manage_rubrics: Create, list, update, or delete rubrics for coursework in Google Classroom. Needs courseId, courseWorkId and action.
  • update_coursework: Update selected teacher-editable fields on coursework created by the same Google OAuth developer project.

Destructive tools (2)

  • delete_course: Delete a Google Classroom course. Needs courseId.
  • delete_coursework: Delete coursework created by the same Google OAuth developer project.

Triggers

Google Classroom has 4 triggers, which fire on events in Google Classroom:

  • coursework_changes: Triggers when coursework (assignments, questions) is created or updated in courses you teach.
  • course_roster_changes: Triggers when students or teachers are added to or removed from a course.
  • inbound_webhook
  • announcement_changes: Triggers when announcements are created or updated in courses you teach.

Next steps