sickn33/agentic-awesome-skills

sendgrid-automation

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.

First seen Feb 6, 2026

Installation

$ npx skills add sickn33/agentic-awesome-skills --skill sendgrid-automation

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from sickn33/agentic-awesome-skills · top by installs.

npx skills add sickn33/agentic-awesome-skills

Browse all from sickn33/agentic-awesome-skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 46.2K
License LICENSE
Default branch main
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 13,383 B
  • docs SUMMARY.md 224 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 112 installs

SKILL.md

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 (RUBESEARCHTOOLS available)
  • Active SendGrid connection via RUBEMANAGECONNECTIONS with toolkit sendgrid
  • Always call RUBESEARCHTOOLS 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.

  1. Verify Rube MCP is available by confirming RUBESEARCHTOOLS responds
  2. Call RUBEMANAGECONNECTIONS with toolkit sendgrid
  3. If connection is not ACTIVE, follow the returned auth link to complete SendGrid API key authentication
  4. 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:

  1. SENDGRIDRETRIEVEALL_LISTS - List available marketing lists to target [Prerequisite]
  2. SENDGRIDCREATEA_LIST - Create a new list if needed [Optional]
  3. SENDGRIDADDORUPDATEA_CONTACT - Add contacts to the list [Optional]
  4. SENDGRIDGETALLSENDERIDENTITIES - Get verified sender ID [Prerequisite]
  5. SENDGRIDCREATESINGLE_SEND - Create the campaign with content, sender, and recipients [Required]

Key parameters for SENDGRIDCREATESINGLE_SEND:

  • name: Campaign name (required)
  • emailconfigsubject: Email subject line
  • emailconfightml__content: HTML body content
  • emailconfigplain__content: Plain text version
  • emailconfigsender__id: Verified sender identity ID
  • emailconfigdesign__id: Use instead of html_content for pre-built designs
  • sendtolist__ids: Array of list UUIDs to send to
  • sendtosegment__ids: Array of segment UUIDs
  • sendtoall: true to send to all contacts
  • emailconfigsuppressiongroupid or emailconfigcustomunsubscribeurl: 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 suppressiongroupid or customunsubscribeurl for unsubscribe compliance
  • Sender must be verified before use; check with SENDGRIDGETALLSENDERIDENTITIES
  • Nested params use double-underscore notation (e.g., emailconfigsubject)

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:

  1. SENDGRIDRETRIEVEALL_LISTS - List all marketing lists [Required]
  2. SENDGRIDCREATEA_LIST - Create a new contact list [Optional]
  3. SENDGRIDGETALISTBY_ID - Get list details and sample contacts [Optional]
  4. SENDGRIDADDORUPDATEA_CONTACT - Upsert contacts with list association [Required]
  5. SENDGRIDGETCONTACTSBYEMAILS - Look up contacts by email [Optional]
  6. SENDGRIDGETCONTACTSBYIDENTIFIERS - Look up contacts by email, phone, or external ID [Optional]
  7. SENDGRIDGETLISTCONTACTCOUNT - Verify contact count after operations [Optional]
  8. SENDGRIDREMOVECONTACTSFROMA_LIST - Remove contacts from a list without deleting [Optional]
  9. SENDGRIDREMOVELISTANDOPTIONAL_CONTACTS - Delete an entire list [Optional]
  10. SENDGRIDIMPORTCONTACTS - Bulk import from CSV [Optional]

Key parameters for SENDGRIDADDORUPDATEA_CONTACT:

  • contacts: Array of contact objects (max 30,000 or 6MB), each with at least one identifier: email, phonenumberid, externalid, or anonymousid (required)
  • list_ids: Array of list UUID strings to associate contacts with

Pitfalls:

  • SENDGRIDADDORUPDATEACONTACT is asynchronous; returns 202 with jobid; 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
  • SENDGRIDADDASINGLERECIPIENTTOALIST uses the legacy API; prefer SENDGRIDADDORUPDATEACONTACT with list_ids
  • SENDGRIDREMOVELISTANDOPTIONAL_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:

  1. SENDGRIDGETALLSENDERIDENTITIES - List all existing sender identities [Required]
  2. SENDGRIDCREATEASENDERIDENTITY - Create a new sender identity [Optional]
  3. SENDGRIDVIEWASENDERIDENTITY - View details for a specific sender [Optional]
  4. SENDGRIDUPDATEASENDERIDENTITY - Update sender details [Optional]
  5. SENDGRIDCREATEVERIFIEDSENDERREQUEST - Create and verify a new sender [Optional]
  6. SENDGRIDAUTHENTICATEA_DOMAIN - Set up domain authentication for auto-verification [Optional]

Key parameters for SENDGRIDCREATEASENDERIDENTITY:

  • from__email: From email address (required)
  • from__name: Display name (required)
  • replytoemail: Reply-to address (required)
  • nickname: Internal identifier (required)
  • address, city, country: Physical address for CAN-SPAM compliance (required)

Pitfalls:

  • New senders must be verified before use; if domain is not authenticated, a verification email is sent
  • Up to 100 unique sender identities per account
  • Avoid using domains with strict DMARC policies (gmail.com, yahoo.com) as from addresses
  • SENDGRIDCREATEVERIFIEDSENDERREQUEST sends a verification email; sender is unusable until verified

4. View Email Statistics and Activity

When to use: User wants to review email delivery stats, bounce rates, open/click metrics, or message activity.

Tool sequence:

  1. SENDGRIDRETRIEVEGLOBALEMAILSTATISTICS - Get account-wide delivery metrics [Required]
  2. SENDGRIDGETALL_CATEGORIES - Discover available categories for filtering [Optional]
  3. SENDGRIDRETRIEVEEMAILSTATISTICSFOR_CATEGORIES - Get stats broken down by category [Optional]
  4. SENDGRIDFILTERALL_MESSAGES - Search email activity feed by recipient, status, or date [Optional]
  5. SENDGRIDFILTERMESSAGESBYMESSAGE_ID - Get detailed events for a specific message [Optional]
  6. SENDGRIDREQUESTCSV - Export activity data as CSV for large datasets [Optional]
  7. SENDGRIDDOWNLOADCSV - Download the exported CSV file [Optional]

Key parameters for SENDGRIDRETRIEVEGLOBALEMAILSTATISTICS:

  • start_date: Start date YYYY-MM-DD (required)
  • end_date: End date YYYY-MM-DD
  • aggregated_by: "day", "week", or "month"
  • limit / offset: Pagination (default 500)

Key parameters for SENDGRIDFILTERALL_MESSAGES:

  • query: SQL-like query string, e.g., status="delivered", to_email="[email protected]", date ranges with BETWEEN TIMESTAMP
  • limit: 1-1000 (default 10)

Pitfalls:

  • SENDGRIDFILTERALL_MESSAGES requires the "30 Days Additional Email Activity History" paid add-on; returns 403 without it
  • Global statistics are nested under details[].stats[0].metrics, not a flat structure
  • Category statistics are only available for the previous 13 months
  • Maximum 10 categories per request in SENDGRIDRETRIEVEEMAILSTATISTICSFOR_CATEGORIES
  • CSV export is limited to one request per 12 hours; link expires after 3 days

5. Manage Suppressions

When to use: User wants to check or manage unsubscribe groups for email compliance.

Tool sequence:

  1. SENDGRIDGETSUPPRESSION_GROUPS - List all suppression groups [Required]
  2. SENDGRIDRETRIEVEALLSUPPRESSIONGROUPSFORANEMAILADDRESS - Check suppression status for a specific email [Optional]

Pitfalls:

  • Suppressed addresses remain undeliverable even if present on marketing lists
  • Campaign send counts may be lower than list counts due to suppressions

Common Patterns

ID Resolution

Always resolve names to IDs before operations:

  • List name -> listid: SENDGRIDRETRIEVEALLLISTS and match by name
  • Sender name -> senderid: SENDGRIDGETALLSENDER_IDENTITIES and match
  • Contact email -> contactid: SENDGRIDGETCONTACTSBY_EMAILS with email array
  • Template name -> template_id: Use the SendGrid UI or template endpoints

Pagination

  • SENDGRIDRETRIEVEALLLISTS: Token-based with pagetoken and page_size (max 1000)
  • SENDGRIDRETRIEVEGLOBALEMAILSTATISTICS: Offset-based with limit (max 500) and offset
  • Always paginate list retrieval to avoid missing existing lists

Async Operations

Contact operations (ADDORUPDATEACONTACT, IMPORT_CONTACTS) are asynchronous:

  • Returns 202 with a job_id
  • Wait 10-30 seconds before verifying with GETCONTACTSBY_EMAILS
  • Use GETLISTCONTACT_COUNT to confirm list growth

Known Pitfalls

ID Formats

  • Marketing list IDs are UUIDs (e.g., "ca7a3796-e8a8-4029-9ccb-df8937940562")
  • Legacy list IDs are integers; do not mix with Marketing API endpoints
  • Sender identity IDs are integers
  • Template IDs: Dynamic templates start with "d-", legacy templates are UUIDs
  • Contact IDs are UUIDs

Rate Limits

  • SendGrid may return HTTP 429; respect Retry-After headers
  • CSV export limited to one request per 12 hours
  • Bulk contact upsert max: 30,000 contacts or 6MB per request

Parameter Quirks

  • Nested params use double-underscore: emailconfigsubject, from__email
  • sendat on CREATESINGLE_SEND only sets a UI default, does NOT schedule
  • SENDGRIDADDASINGLERECIPIENTTOALIST uses legacy API; recipientid is Base64-encoded lowercase email
  • SENDGRIDRETRIEVEALLLISTS and SENDGRIDGETALLLISTS both exist; prefer RETRIEVEALLLISTS for Marketing API
  • Contact adds are async (202); always verify after a delay

Legacy vs Marketing API

  • Some tools use the legacy Contact Database API (/v3/contactdb/) which may return 403 on newer accounts
  • Prefer Marketing API tools: SENDGRIDADDORUPDATEACONTACT, SENDGRIDRETRIEVEALLLISTS, SENDGRIDCREATESINGLE_SEND

Quick Reference

Task Tool Slug Key Params
List marketing lists SENDGRIDRETRIEVEALL_LISTS pagesize, pagetoken
Create list SENDGRIDCREATEA_LIST name
Get list by ID SENDGRIDGETALISTBY_ID id
Get list count SENDGRIDGETLISTCONTACTCOUNT id
Add/update contacts SENDGRIDADDORUPDATEA_CONTACT contacts, list_ids
Search contacts by email SENDGRIDGETCONTACTSBYEMAILS emails
Search by identifiers SENDGRIDGETCONTACTSBYIDENTIFIERS identifier_type, identifiers
Remove from list SENDGRIDREMOVECONTACTSFROMA_LIST id, contact_ids
Delete list SENDGRIDREMOVELISTANDOPTIONAL_CONTACTS id, delete_contacts
Import contacts CSV SENDGRIDIMPORTCONTACTS field mappings
Create Single Send SENDGRIDCREATESINGLE_SEND name, emailconfig*, sendtolist__ids
List sender identities SENDGRIDGETALLSENDERIDENTITIES (none)
Create sender SENDGRIDCREATEASENDERIDENTITY fromemail, fromname, address
Verify sender SENDGRIDCREATEVERIFIEDSENDERREQUEST from_email, nickname, address
Authenticate domain SENDGRIDAUTHENTICATEA_DOMAIN domain
Global email stats SENDGRIDRETRIEVEGLOBALEMAILSTATISTICS startdate, aggregatedby
Category stats SENDGRIDRETRIEVEEMAILSTATISTICSFOR_CATEGORIES start_date, categories
Filter email activity SENDGRIDFILTERALL_MESSAGES query, limit
Message details SENDGRIDFILTERMESSAGESBYMESSAGE_ID msg_id
Export CSV SENDGRIDREQUESTCSV query
Download CSV SENDGRIDDOWNLOADCSV download_uuid
List categories SENDGRIDGETALL_CATEGORIES (none)
Suppression groups SENDGRIDGETSUPPRESSION_GROUPS (none)
Get template SENDGRIDRETRIEVEASINGLETRANSACTIONAL_TEMPLATE template_id
Duplicate template SENDGRIDDUPLICATEATRANSACTIONALTEMPLATE template_id, name

When to Use

This skill is applicable to execute the workflow or actions described in the overview.

Example

User request:

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.

Limitations

  • Use this skill only when the task clearly matches the scope described above.
  • Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
  • Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.