MetorialDocs

Set up SendGrid in Metorial for Claude, ChatGPT and Cursor

Share SendGrid with your team in Claude, ChatGPT and Cursor through Metorial: API key sign-in, 34 tools (15 read-only).

To give your team SendGrid in Claude, ChatGPT, Cursor and other AI clients, an admin shares the SendGrid integration in a Metorial portal, and each person connects with an API key. Agents can send transactional and marketing emails at scale. The integration has 34 tools, 15 read-only, 12 write and 7 destructive, plus 2 triggers.

What you'll learn

  • How an admin shares SendGrid in a portal and how each person connects
  • What SendGrid asks for when you connect, and where to find it
  • How to keep the 15 read-only tools and reject the other 19

Before you start

Sign-in method

MethodTypeWhat a person provides
API KeyAPI tokentoken

API Key

To connect, a person enters:

  • token: SendGrid API Key. Create one in the SendGrid UI under Settings > API Keys.

Setup settings

Setup also asks for:

  • region (optional): SendGrid API region. Use "eu" for EU regional subusers. One of "global", "eu".

Admin: share SendGrid 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 SendGrid. For how members connect, choose Each person connects so everyone enters their own API key, or Shared connection to enter one API key for everyone.

Limit the tools

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

Choose who gets it

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

metorial-admin portals access list <portal-id> --type provider_template --search sendgrid

Employee: connect SendGrid

In the portal

Open SendGrid in the catalog

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

Authenticate

Under Quick setup, select Authenticate. In the setup window, enter your API key (token).

Confirm

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

With the CLI

metorial catalog search sendgrid
metorial setup <catalog-item-id>

catalog search prints the catalog item ID.

Add it to your AI client

metorial install adds your SendGrid 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 sendgrid
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 15 read-only tools, such as get_contact and get_template, and lose the 12 write tools, such as send_email or create_template, and the 7 destructive tools, such as delete_contacts or delete_template.

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 sendgrid
metorial tools <integration-id>
metorial call <integration-id> list_verified_senders -d '{}'

metorial tools lists the 34 tools, minus any you rejected. list_verified_senders takes no input. It retrieves all verified sender identities.

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

Tools

Read-only tools (15)

  • list_suppressions: Retrieve suppressed email addresses by type: bounces, blocks, spam reports, invalid emails, global unsubscribes, or group suppressions. Needs suppressionType.
  • list_templates: Retrieve dynamic email templates.
  • get_template: Retrieve a single dynamic template by ID, including all its versions and content. Needs templateId.
  • list_contact_lists: Retrieve all marketing contact lists with their contact counts.
  • get_contact: Retrieve a single marketing contact by ID. Needs contactId.
  • list_verified_senders: Retrieve all verified sender identities.
  • list_suppression_groups: Retrieve all suppression (unsubscribe) groups.
  • search_contacts: Search marketing contacts using SendGrid's SGQL (SendGrid Query Language). Needs query.
  • get_email_stats: Retrieve email delivery and engagement statistics. Needs startDate.
  • get_contact_list_count: Retrieve the contact and billable counts for a specific marketing contact list. Needs listId.
  • get_contact_count: Retrieve the total marketing contact count for the SendGrid account, including billable contact count when available.
  • list_event_webhooks: Retrieve configured SendGrid Event Webhooks and the delivery or engagement events each webhook subscribes to.
  • get_suppression_group: Retrieve a single suppression (unsubscribe) group by ID, including its default status and unsubscribe count. Needs groupId.
  • get_contact_list: Retrieve a single marketing contact list by ID, optionally including a sample of recent contacts. Needs listId.
  • get_contact_import_status: Check the asynchronous job status returned by contact upsert, contact import, or contact deletion operations. Needs jobId.

Write tools (12)

  • create_contact_list: Create a new marketing contact list for organizing and segmenting contacts. Needs name.
  • create_suppression_group: Create a new suppression (unsubscribe) group. Needs name and description.
  • create_verified_sender: Create a new verified sender identity. Needs nickname, fromEmail and replyTo.
  • create_template: Create a new dynamic email template. Needs name.
  • upsert_contacts: Add or update marketing contacts. Needs contacts.
  • add_suppressed_emails: Add email addresses to a suppression group or the global unsubscribe list. Needs emails.
  • update_template: Update a template's name or manage template versions. Needs templateId.
  • update_contact_list: Rename an existing marketing contact list. Needs listId and name.
  • send_email: Send an email via SendGrid. Needs from and personalizations.
  • resend_sender_verification: Resend the verification email for a verified sender identity that has not yet been verified. Needs senderId.
  • update_suppression_group: Update a suppression (unsubscribe) group's name, description, or default status. Needs groupId.
  • add_contacts_to_list: Add or update contacts and assign them to a marketing contact list. Needs listId and contacts.

Destructive tools (7)

  • remove_contact_from_list: Remove a contact from a specific contact list without deleting the contact itself. Needs listId and contactId.
  • remove_suppressed_email: Remove an email address from a suppression group or the global unsubscribe list. Needs email and suppressionType.
  • delete_contact_list: Delete a marketing contact list. Needs listId.
  • delete_template: Delete a dynamic template and all its versions, or delete a specific version of a template. Needs templateId.
  • delete_verified_sender: Delete a verified sender identity by its ID. Needs senderId.
  • delete_contacts: Delete marketing contacts by ID, or delete all contacts in the account.
  • delete_suppression_group: Delete a suppression (unsubscribe) group by ID. Needs groupId.

Triggers

SendGrid has 2 triggers, which fire on events in SendGrid:

  • email_events: Receives delivery and engagement events from SendGrid via the Event Webhook, including delivered, bounced, opened, clicked, spam reports, unsubscribes, and more.
  • inbound_email: Receives parsed inbound emails via the SendGrid Inbound Parse Webhook.

Next steps