MetorialDocs

Set up Superhuman Gmail in Metorial for AI agents

Share Superhuman Gmail with your team in Claude, ChatGPT and Cursor through Metorial: OAuth sign-in, 7 tools (4 read-only).

To give your team Superhuman Gmail in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Superhuman Gmail integration in a Metorial portal, and each person signs in to Superhuman Gmail with their own account. Gmail conversation workflows for accounts used with Superhuman: verify mailbox identity, search threads, read context, download message files, archive or label conversations, manage threaded reply drafts, and send replies. The integration has 7 tools, 4 read-only, 1 write and 2 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares Superhuman Gmail in a portal and how each person connects
  • The 6 OAuth scopes Superhuman Gmail can request, and what each one allows
  • How to keep the 4 read-only tools and reject the other 3

Before you start

Sign-in methods

MethodTypeWhat a person provides
Google OAuth (default)OAuthSigns in to Superhuman Gmail

Also available: Google OAuth Full Access, Google OAuth Read Only.

The portal and metorial setup use Google OAuth unless someone picks another method.

Google OAuth

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

ScopeNameWhat it allows
https://www.googleapis.com/auth/gmail.readonlyRead-OnlyRead threads, messages, drafts, and mailbox metadata—no modifications.
https://www.googleapis.com/auth/gmail.composeComposeCreate, read, update, and delete drafts; send messages and drafts.
https://www.googleapis.com/auth/gmail.modifyModifyChange labels, archive, trash, and restore threads (no permanent delete bypassing Trash unless combined with full mail scope).
https://mail.google.com/Full AccessFull Gmail access including permanent deletion of threads when using the delete triage action.
https://www.googleapis.com/auth/userinfo.emailUser EmailView your email address for connection profile.
https://www.googleapis.com/auth/userinfo.profileUser ProfileView your name and profile picture.

Setup settings

Setup also asks for:

  • userId (optional): Gmail user ID. Use "me" for the authenticated user, or a mailbox email for delegated access.

Use your own Superhuman Gmail OAuth app

With your own OAuth app, people see your company's name on the Superhuman Gmail 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 Superhuman Gmail and copy the Redirect URI.

Register the app

In the Google Cloud console, enable the API behind Superhuman Gmail 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 Superhuman Gmail integration.

Admin: share Superhuman Gmail 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 Superhuman Gmail. Under Auth Method, keep Google OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Superhuman Gmail as themselves.

Limit the tools

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

Choose who gets it

Add the access groups that should see Superhuman Gmail. 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 Superhuman Gmail integration. Once it exists, check which groups have it:

metorial-admin portals access list <portal-id> --type provider_template --search "superhuman gmail"

Employee: connect Superhuman Gmail

In the portal

Open Superhuman Gmail in the catalog

Sign in to your portal and open Superhuman Gmail. The status reads Available.

Authenticate

Under Quick setup, select Authenticate. A Superhuman Gmail 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 "superhuman gmail"
metorial setup <catalog-item-id>

catalog search prints the catalog item ID. metorial setup uses Google OAuth. To connect with Google OAuth Full Access instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.

Add it to your AI client

metorial install adds your Superhuman Gmail 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 "superhuman gmail"
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 4 read-only tools, such as get_profile and download_attachment, and lose the write tool send_reply, and the 2 destructive tools, such as manage_reply_draft or triage_conversation.

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 "superhuman gmail"
metorial tools <integration-id>
metorial call <integration-id> search_conversations -d '{}'

metorial tools lists the 7 tools, minus any you rejected. search_conversations takes no input. It lists Gmail **threads** (conversations) matching a query or label filters.

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

Tools

Read-only tools (4)

  • get_conversation_context: Load a full **thread** with parsed messages (headers, bodies, attachment metadata) plus **reply hints** (In-Reply-To, References, suggested recipients and subject) for the message you are replying to. Needs threadId.
  • search_conversations: List Gmail **threads** (conversations) matching a query or label filters.
  • download_attachment: Download a file from a Gmail message using the attachment ID or MIME part ID returned by conversation context.
  • get_profile: Identify the selected Gmail mailbox and read its message count, conversation count and current history ID.

Write tools (1)

  • send_reply: Send a **reply** in an existing **thread** with proper **In-Reply-To** and **References** so it appears in the conversation. Needs threadId and body.

Destructive tools (2)

  • triage_conversation: Apply a single high-level **triage** action to an entire Gmail **thread**: archive/unarchive, read/unread, star/unstar, add/remove labels, move to trash, restore from trash, or permanently delete. Needs threadId and action.
  • manage_reply_draft: Create, update, fetch, list, send, or delete **reply drafts** tied to a **thread**, with correct **In-Reply-To** and **References** headers when **replyToMessageId** (or the latest thread message) is used. Needs action.

Triggers

Superhuman Gmail has 2 triggers, which fire on events in Superhuman Gmail:

  • inbound_webhook
  • conversation_changes: Fires when messages are added or removed, or labels change on messages—**grouped by Gmail history**, with **threadId** for conversation-centric workflows.

Next steps