/sendgrid | Type: Application | PCID required: Yes
Email campaigns and contacts
Tools
| Tool | Description |
|---|---|
sendgrid_send_email | Send an email via SendGrid. Supports HTML/plain text, CC/BCC, attachments via URL, and SendGrid templates |
sendgrid_create_template | Create a new email template container in SendGrid. After creating, use sendgrid_create_template_version to add content |
sendgrid_get_template | Retrieve an email template including all versions. Returns template metadata and version content |
sendgrid_list_templates | List all email templates in SendGrid. Returns template IDs needed for sendgrid_send_email |
sendgrid_create_template_version | Create a new version of an email template |
sendgrid_update_template_version | Update an existing template version |
sendgrid_add_contact | Add a contact to SendGrid |
sendgrid_get_contact | Retrieve a contact by ID or email |
sendgrid_update_contact | Update an existing contact |
sendgrid_delete_contact | Delete a contact from SendGrid |
sendgrid_create_list | Create a new contact list |
sendgrid_get_list | Retrieve a contact list by ID |
sendgrid_list_contacts | List all contacts with optional filtering |
sendgrid_search_contacts | Search contacts using SendGrid query language |
sendgrid_add_contacts_to_list | Add contacts to a specific list |
sendgrid_remove_contacts_from_list | Remove contacts from a specific list |
sendgrid_get_email_stats | Get email statistics for a date range |
sendgrid_get_bounce_stats | Get bounce statistics |
sendgrid_get_suppression_groups | List all suppression groups (unsubscribe groups) |
sendgrid_create_suppression_group | Create a new suppression group |
sendgrid_validate_email | Validate an email address using SendGrid validation |
sendgrid_send_email
Send an email via SendGrid. Supports HTML/plain text, CC/BCC, attachments via URL, and SendGrid templates Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
to | object[] | Yes | — | Recipients array. Example: [{“email”: “john@example.com”, “name”: “John Smith”}] |
from | object | Yes | — | Sender info. Email must be verified domain/address in SendGrid |
subject | string | Yes | — | Email subject line. Example: “Your Order Confirmation” |
content | object[] | Yes | — | Email body content. Provide both text/plain and text/html for best compatibility. Example: [{“type”: “text/plain”, “value”: “Hello”}, {“type”: “text/html”, “value”: “<p>Hello</p>”}] |
reply_to | object | No | — | Reply-to address (where replies go if different from sender) |
cc | object[] | No | — | CC recipients (visible to all). Example: [{“email”: “cc@example.com”}] |
bcc | object[] | No | — | BCC recipients (hidden from others). Example: [{“email”: “archive@example.com”}] |
attachments | object[] | No | — | Pre-encoded attachments (base64). Use attachmentUrls for URL-based attachments |
attachmentUrls | string[] | No | — | URLs of files to attach. Files will be fetched and attached automatically. Example: [“https://example.com/report.pdf”] |
template_id | string | No | — | SendGrid dynamic template ID. Get from sendgrid_list_templates. When used, subject and content may be optional |
dynamic_template_data | object | No | — | Template variable substitutions. Example: {“firstName”: “John”, “orderNumber”: “12345”} |
sendgrid_create_template
Create a new email template container in SendGrid. After creating, use sendgrid_create_template_version to add content Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | — | Template name for identification. Example: “Order Confirmation”, “Welcome Email” |
generation | string | No | "dynamic" | ”dynamic” for templates with {{handlebar}} variables (recommended). “legacy” for older format |
sendgrid_get_template
Retrieve an email template including all versions. Returns template metadata and version content Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
template_id | string | Yes | — | Template ID to retrieve. Get from sendgrid_list_templates or sendgrid_create_template response |
sendgrid_list_templates
List all email templates in SendGrid. Returns template IDs needed for sendgrid_send_email Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
generations | string | No | — | Filter by type. “dynamic” = modern templates with variables. Default: returns all |
page_size | number | No | 50 | Number of templates per page. Default: 50. Max: 200 |
sendgrid_create_template_version
Create a new version of an email template Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
template_id | string | Yes | — | Template ID |
name | string | Yes | — | Version name |
subject | string | Yes | — | Email subject template |
html_content | string | No | — | HTML content template |
plain_content | string | No | — | Plain text content template |
active | boolean | No | false | Whether this version is active |
test_data | object | No | — | Test data for template variables |
sendgrid_update_template_version
Update an existing template version Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
template_id | string | Yes | — | Template ID |
version_id | string | Yes | — | Version ID to update |
name | string | No | — | Version name |
subject | string | No | — | Email subject template |
html_content | string | No | — | HTML content template |
plain_content | string | No | — | Plain text content template |
active | boolean | No | — | Whether this version is active |
sendgrid_add_contact
Add a contact to SendGrid Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
email | string | Yes | — | Contact email address |
first_name | string | No | — | Contact first name |
last_name | string | No | — | Contact last name |
custom_fields | object | No | — | Custom field values for the contact |
list_ids | string[] | No | — | List IDs to add the contact to |
sendgrid_get_contact
Retrieve a contact by ID or email Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
contact_id | string | No | — | Contact ID |
email | string | No | — | Contact email address |
sendgrid_update_contact
Update an existing contact Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
contact_id | string | Yes | — | Contact ID to update |
email | string | No | — | New email address |
first_name | string | No | — | New first name |
last_name | string | No | — | New last name |
custom_fields | object | No | — | Updated custom field values |
sendgrid_delete_contact
Delete a contact from SendGrid Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
contact_id | string | Yes | — | Contact ID to delete |
sendgrid_create_list
Create a new contact list Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | — | List name |
sendgrid_get_list
Retrieve a contact list by ID Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
list_id | string | Yes | — | List ID to retrieve |
sendgrid_list_contacts
List all contacts with optional filtering Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
page_size | number | No | 100 | Number of contacts per page (1-1000) |
page_token | string | No | — | Page token for pagination |
sendgrid_search_contacts
Search contacts using SendGrid query language Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
query | string | Yes | — | Search query using SendGrid query language (e.g., “email LIKE ’%@example.com’“) |
sendgrid_add_contacts_to_list
Add contacts to a specific list Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
list_id | string | Yes | — | List ID |
contact_ids | string[] | Yes | — | Array of contact IDs to add to the list |
sendgrid_remove_contacts_from_list
Remove contacts from a specific list Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
list_id | string | Yes | — | List ID |
contact_ids | string[] | Yes | — | Array of contact IDs to remove from the list |
sendgrid_get_email_stats
Get email statistics for a date range Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
start_date | string | Yes | — | Start date for stats (YYYY-MM-DD format) |
end_date | string | Yes | — | End date for stats (YYYY-MM-DD format) |
aggregated_by | string | No | "day" | How to aggregate the statistics |
tags | string[] | No | — | Filter by specific tags |
categories | string[] | No | — | Filter by specific categories |
sendgrid_get_bounce_stats
Get bounce statistics Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
start_date | string | Yes | — | Start date for stats (YYYY-MM-DD format) |
end_date | string | Yes | — | End date for stats (YYYY-MM-DD format) |
type | string | No | — | Type of bounces to retrieve |
sendgrid_get_suppression_groups
List all suppression groups (unsubscribe groups)sendgrid_create_suppression_group
Create a new suppression group Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
name | string | Yes | — | Suppression group name |
description | string | Yes | — | Suppression group description |
is_default | boolean | No | false | Whether this is the default suppression group |
sendgrid_validate_email
Validate an email address using SendGrid validation Parameters:| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
email | string | Yes | — | Email address to validate |
source | string | No | — | Source identifier for tracking validation requests |

