SendGrid Automation via Rube MCP
Automate SendGrid email delivery workflows including marketing campaigns (Single Sends), contact and list management, sender identity setup, and email analytics through Composio's SendGrid toolkit.
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active SendGrid connection via
RUBE_MANAGE_CONNECTIONS with toolkit sendgrid
- Always call
RUBE_SEARCH_TOOLS first to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLS responds
- Call
RUBE_MANAGE_CONNECTIONS with toolkit sendgrid
- If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Send Marketing Campaigns (Single Sends)
When to use: User wants to create and send a marketing email campaign to a contact list or segment.
Tool sequence:
SENDGRID_RETRIEVE_ALL_LISTS - List available marketing lists to target [Prerequisite]
SENDGRID_CREATE_A_LIST - Create a new list if needed [Optional]
SENDGRID_ADD_OR_UPDATE_A_CONTACT - Add contacts to the list [Optional]
SENDGRID_GET_ALL_SENDER_IDENTITIES - Get verified sender ID [Prerequisite]
SENDGRID_CREATE_SINGLE_SEND - Create the campaign with content, sender, and recipients [Required]
Key parameters for SENDGRID_CREATE_SINGLE_SEND:
name: Campaign name (required)
email__config__subject: Email subject line
email__config__html__content: HTML body content
email__config__plain__content: Plain text version
email__config__sender__id: Verified sender identity ID
email__config__design__id: Use instead of html_content for pre-built designs
send__to__list__ids: Array of list UUIDs to send to
send__to__segment__ids: Array of segment UUIDs
send__to__all: true to send to all contacts
email__config__suppression__group__id or email__config__custom__unsubscribe__url: One required for compliance
Pitfalls:
- Setting
send_at on CREATE does NOT schedule the send; it only prepopulates the UI date; use the Schedule endpoint separately
send_at: "now" is only valid with the Schedule endpoint, not CREATE
- Must provide either
suppression_group_id or custom_unsubscribe_url for unsubscribe compliance
- Sender must be verified before use; check with
SENDGRID_GET_ALL_SENDER_IDENTITIES
- Nested params use double-underscore notation (e.g.,
email__config__subject)
2. Manage Contacts and Lists
When to use: User wants to create contact lists, add/update contacts, search for contacts, or remove contacts from lists.
Tool sequence:
SENDGRID_RETRIEVE_ALL_LISTS - List all marketing lists [Required]
SENDGRID_CREATE_A_LIST - Create a new contact list [Optional]
SENDGRID_GET_A_LIST_BY_ID - Get list details and sample contacts [Optional]
SENDGRID_ADD_OR_UPDATE_A_CONTACT - Upsert contacts with list association [Required]
SENDGRID_GET_CONTACTS_BY_EMAILS - Look up contacts by email [Optional]
SENDGRID_GET_CONTACTS_BY_IDENTIFIERS - Look up contacts by email, phone, or external ID [Optional]
SENDGRID_GET_LIST_CONTACT_COUNT - Verify contact count after operations [Optional]
SENDGRID_REMOVE_CONTACTS_FROM_A_LIST - Remove contacts from a list without deleting [Optional]
SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS - Delete an entire list [Optional]
SENDGRID_IMPORT_CONTACTS - Bulk import from CSV [Optional]
Key parameters for SENDGRID_ADD_OR_UPDATE_A_CONTACT:
contacts: Array of contact objects (max 30,000 or 6MB), each with at least one identifier: email, phone_number_id, external_id, or anonymous_id (required)
list_ids: Array of list UUID strings to associate contacts with
Pitfalls:
SENDGRID_ADD_OR_UPDATE_A_CONTACT is asynchronous; returns 202 with job_id; contacts may take 10-30 seconds to appear
- List IDs are UUIDs (e.g., "ca7a3796-e8a8-4029-9ccb-df8937940562"), not integers
- List names must be unique; duplicate names cause 400 errors
SENDGRID_ADD_A_SINGLE_RECIPIENT_TO_A_LIST uses the legacy API; prefer SENDGRID_ADD_OR_UPDATE_A_CONTACT with list_ids
SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS is irreversible; require explicit user confirmation
- Email addresses are automatically lowercased by SendGrid
3. Manage Sender Identities
When to use: User wants to set up or view sender identities (From addresses) for sending emails.
Tool sequence:
SENDGRID_GET_ALL_SENDER_IDENTITIES - List all existing sender identities [Required]
SENDGRID_CREATE_A_SENDER_IDENTITY - Create a new sender identity [Optional]
SENDGRID_VIEW_A_SENDER_IDENTITY - View details for a specific sender [Optional]
- `SENDGRID_UPDATE_A_SENDER_IDENTI
1---2name: sendgrid-automation3description: Automate SendGrid email operations including sending emails, managing contacts/lists, sender identities, templates, and analytics via Rube MCP (Composio). Always search tools first for current sche...4category: Business & Marketing5source: antigravity6tags: [api, mcp, ai, automation, workflow, template, design, marketing]7url: https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/sendgrid-automation8metadata:9 source: https://skillmd.com/skills/ranbot-ai/sendgrid-automation10---111213# SendGrid Automation via Rube MCP1415Automate SendGrid email delivery workflows including marketing campaigns (Single Sends), contact and list management, sender identity setup, and email analytics through Composio's SendGrid toolkit.1617## Prerequisites1819- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)20- Active SendGrid connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `sendgrid`21- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas2223## Setup2425**Get Rube MCP**: Add `https://rube.app/mcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.2627281. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds292. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `sendgrid`303. If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication314. Confirm connection status shows ACTIVE before running any workflows3233## Core Workflows3435### 1. Create and Send Marketing Campaigns (Single Sends)3637**When to use**: User wants to create and send a marketing email campaign to a contact list or segment.3839**Tool sequence**:401. `SENDGRID_RETRIEVE_ALL_LISTS` - List available marketing lists to target [Prerequisite]412. `SENDGRID_CREATE_A_LIST` - Create a new list if needed [Optional]423. `SENDGRID_ADD_OR_UPDATE_A_CONTACT` - Add contacts to the list [Optional]434. `SENDGRID_GET_ALL_SENDER_IDENTITIES` - Get verified sender ID [Prerequisite]445. `SENDGRID_CREATE_SINGLE_SEND` - Create the campaign with content, sender, and recipients [Required]4546**Key parameters for SENDGRID_CREATE_SINGLE_SEND**:47- `name`: Campaign name (required)48- `email__config__subject`: Email subject line49- `email__config__html__content`: HTML body content50- `email__config__plain__content`: Plain text version51- `email__config__sender__id`: Verified sender identity ID52- `email__config__design__id`: Use instead of html_content for pre-built designs53- `send__to__list__ids`: Array of list UUIDs to send to54- `send__to__segment__ids`: Array of segment UUIDs55- `send__to__all`: true to send to all contacts56- `email__config__suppression__group__id` or `email__config__custom__unsubscribe__url`: One required for compliance5758**Pitfalls**:59- Setting `send_at` on CREATE does NOT schedule the send; it only prepopulates the UI date; use the Schedule endpoint separately60- `send_at: "now"` is only valid with the Schedule endpoint, not CREATE61- Must provide either `suppression_group_id` or `custom_unsubscribe_url` for unsubscribe compliance62- Sender must be verified before use; check with `SENDGRID_GET_ALL_SENDER_IDENTITIES`63- Nested params use double-underscore notation (e.g., `email__config__subject`)6465### 2. Manage Contacts and Lists6667**When to use**: User wants to create contact lists, add/update contacts, search for contacts, or remove contacts from lists.6869**Tool sequence**:701. `SENDGRID_RETRIEVE_ALL_LISTS` - List all marketing lists [Required]712. `SENDGRID_CREATE_A_LIST` - Create a new contact list [Optional]723. `SENDGRID_GET_A_LIST_BY_ID` - Get list details and sample contacts [Optional]734. `SENDGRID_ADD_OR_UPDATE_A_CONTACT` - Upsert contacts with list association [Required]745. `SENDGRID_GET_CONTACTS_BY_EMAILS` - Look up contacts by email [Optional]756. `SENDGRID_GET_CONTACTS_BY_IDENTIFIERS` - Look up contacts by email, phone, or external ID [Optional]767. `SENDGRID_GET_LIST_CONTACT_COUNT` - Verify contact count after operations [Optional]778. `SENDGRID_REMOVE_CONTACTS_FROM_A_LIST` - Remove contacts from a list without deleting [Optional]789. `SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS` - Delete an entire list [Optional]7910. `SENDGRID_IMPORT_CONTACTS` - Bulk import from CSV [Optional]8081**Key parameters for SENDGRID_ADD_OR_UPDATE_A_CONTACT**:82- `contacts`: Array of contact objects (max 30,000 or 6MB), each with at least one identifier: `email`, `phone_number_id`, `external_id`, or `anonymous_id` (required)83- `list_ids`: Array of list UUID strings to associate contacts with8485**Pitfalls**:86- `SENDGRID_ADD_OR_UPDATE_A_CONTACT` is asynchronous; returns 202 with `job_id`; contacts may take 10-30 seconds to appear87- List IDs are UUIDs (e.g., "ca7a3796-e8a8-4029-9ccb-df8937940562"), not integers88- List names must be unique; duplicate names cause 400 errors89- `SENDGRID_ADD_A_SINGLE_RECIPIENT_TO_A_LIST` uses the legacy API; prefer `SENDGRID_ADD_OR_UPDATE_A_CONTACT` with `list_ids`90- `SENDGRID_REMOVE_LIST_AND_OPTIONAL_CONTACTS` is irreversible; require explicit user confirmation91- Email addresses are automatically lowercased by SendGrid9293### 3. Manage Sender Identities9495**When to use**: User wants to set up or view sender identities (From addresses) for sending emails.9697**Tool sequence**:981. `SENDGRID_GET_ALL_SENDER_IDENTITIES` - List all existing sender identities [Required]992. `SENDGRID_CREATE_A_SENDER_IDENTITY` - Create a new sender identity [Optional]1003. `SENDGRID_VIEW_A_SENDER_IDENTITY` - View details for a specific sender [Optional]1014. `SENDGRID_UPDATE_A_SENDER_IDENTI