Postmark Automation via Rube MCP
Automate Postmark transactional email operations through Composio's Postmark toolkit via Rube MCP.
Toolkit docs: composio.dev/toolkits/postmark
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Postmark connection via
RUBE_MANAGE_CONNECTIONS with toolkit postmark
- 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 postmark
- If connection is not ACTIVE, follow the returned auth link to complete Postmark authentication
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Send Templated Batch Emails
When to use: User wants to send templated emails to multiple recipients in one call
Tool sequence:
POSTMARK_LIST_TEMPLATES - Find available templates and their IDs [Prerequisite]
POSTMARK_VALIDATE_TEMPLATE - Validate template with model data before sending [Optional]
POSTMARK_SEND_BATCH_WITH_TEMPLATES - Send batch emails using a template [Required]
Key parameters:
TemplateId or TemplateAlias: Identifier for the template to use
Messages: Array of message objects with From, To, TemplateModel
TemplateModel: Key-value pairs matching template variables
Pitfalls:
- Maximum 500 messages per batch call
- Either
TemplateId or TemplateAlias is required, not both
TemplateModel keys must match template variable names exactly (case-sensitive)
- Sender address must be a verified Sender Signature or from a verified domain
2. Manage Email Templates
When to use: User wants to create, edit, or inspect email templates
Tool sequence:
POSTMARK_LIST_TEMPLATES - List all templates with IDs and names [Required]
POSTMARK_GET_TEMPLATE - Get full template details including HTML/text body [Optional]
POSTMARK_EDIT_TEMPLATE - Update template content or settings [Optional]
POSTMARK_VALIDATE_TEMPLATE - Test template rendering with sample data [Optional]
Key parameters:
TemplateId: Numeric template ID for GET/EDIT operations
Name: Template display name
Subject: Email subject line (supports template variables)
HtmlBody: HTML content of the template
TextBody: Plain text fallback content
TemplateType: 'Standard' or 'Layout'
Pitfalls:
- Template IDs are numeric integers, not strings
- Editing a template replaces the entire content; include all fields you want to keep
- Layout templates wrap Standard templates; changing a layout affects all linked templates
- Validate before sending to catch missing variables early
3. Monitor Delivery Statistics
When to use: User wants to check email delivery health, open/click rates, or outbound overview
Tool sequence:
POSTMARK_GET_DELIVERY_STATS - Get bounce counts by type [Required]
POSTMARK_GET_OUTBOUND_OVERVIEW - Get sent/opened/clicked/bounced summary [Required]
POSTMARK_GET_TRACKED_EMAIL_COUNTS - Get tracked email volume over time [Optional]
Key parameters:
fromdate: Start date for filtering stats (YYYY-MM-DD)
todate: End date for filtering stats (YYYY-MM-DD)
tag: Filter stats by message tag
messagestreamid: Filter by message stream (e.g., 'outbound', 'broadcast')
Pitfalls:
- Date parameters use YYYY-MM-DD format without time component
- Stats are aggregated; individual message tracking requires separate API calls
messagestreamid defaults to all streams if not specified
4. Manage Bounces and Complaints
When to use: User wants to review bounced emails or spam complaints
Tool sequence:
POSTMARK_GET_BOUNCES - List bounced messages with details [Required]
POSTMARK_GET_SPAM_COMPLAINTS - List spam complaint records [Optional]
POSTMARK_GET_DELIVERY_STATS - Get bounce summary counts [Optional]
Key parameters:
count: Number of records to return per page
offset: Pagination offset for results
type: Bounce type filter (e.g., 'HardBounce', 'SoftBounce', 'SpamNotification')
fromdate/todate: Date range filters
emailFilter: Filter by recipient email address
Pitfalls:
- Bounce types include: HardBounce, SoftBounce, SpamNotification, SpamComplaint, Transient, and others
- Hard bounces indicate permanent delivery failures; these addresses should be removed
- Spam complaints affect sender reputation; monitor regularly
- Pagination uses
count and offset, not page tokens
5. Configure Server Settings
When to use: User wants to view or modify Postmark server configuration
Tool sequence:
POSTMARK_GET_SERVER - Retrieve current server settings [Required]
POSTMARK_EDIT_SERVER - Update server configuration [Optional]
Key parameters:
Name: Server display name
SmtpApiActivated: Enable/disable SMTP API access
BounceHookUrl: Webhook URL for bounce notifications
InboundHookUrl: Webhook URL for inbound email processing
TrackOpens: Enable/disable open tracking
TrackLinks: Link tracking mode ('None', 'HtmlAndText', 'HtmlOnly', 'TextOnly')
Pitfalls:
- Server edits affect all messages sent through that server
- Webhook URLs must be publicly accessible HTTPS endpoints
- Changing
SmtpApiActivated affects SMTP relay access immediately
- Track settings apply to future messages only, not retroactively
Common Patterns
Template Variable Resolution
1. Call POSTMARK_GET_TEMPLATE with TemplateId
2. Inspect HtmlBody/TextBody for {{variable}} placeholders
3. Build TemplateModel dict with matching keys
4. Call POSTMARK_VALIDATE_TEMPLATE to verify rendering
Pagination
- Set
count for results per page (varies by endpoint)
- Use
offset to skip previously fetched results
- Increment offset by count each page until results returned < count
- Total records may be returned in response metadata
Known Pitfalls
Authentication:
- Postmark uses server-level API tokens, not account-level
- Each server has its own token; ensure correct server context
- Sender addresses must be verified Sender Signatures or from verified domains
Rate Limits:
- Batch send limited to 500 messages per call
- API rate limits vary by endpoint; implement backoff on 429 responses
Response Parsing:
- Response data may be nested under
data or data.data
- Parse defensively with fallback patterns
- Template IDs are always numeric integers
Quick Reference
| Task |
Tool Slug |
Key Params |
| Send batch templated emails |
POSTMARK_SEND_BATCH_WITH_TEMPLATES |
Messages, TemplateId/TemplateAlias |
| List templates |
POSTMARK_LIST_TEMPLATES |
Count, Offset, TemplateType |
| Get template details |
POSTMARK_GET_TEMPLATE |
TemplateId |
| Edit template |
POSTMARK_EDIT_TEMPLATE |
TemplateId, Name, Subject, HtmlBody |
| Validate template |
POSTMARK_VALIDATE_TEMPLATE |
TemplateId, TemplateModel |
| Delivery stats |
POSTMARK_GET_DELIVERY_STATS |
(none or date filters) |
| Outbound overview |
POSTMARK_GET_OUTBOUND_OVERVIEW |
fromdate, todate, tag |
| Get bounces |
POSTMARK_GET_BOUNCES |
count, offset, type, emailFilter |
| Get spam complaints |
POSTMARK_GET_SPAM_COMPLAINTS |
count, offset, fromdate, todate |
| Tracked email counts |
POSTMARK_GET_TRACKED_EMAIL_COUNTS |
fromdate, todate, tag |
| Get server config |
POSTMARK_GET_SERVER |
(none) |
| Edit server config |
POSTMARK_EDIT_SERVER |
Name, TrackOpens, TrackLinks |
Powered by Composio
Source: davepoon/buildwithclaude → plugins/all-skills/skills/postmark-automation/SKILL.md
1---2name: postmark-automation3description: "Automate Postmark email delivery tasks via Rube MCP (Composio): send templated emails, manage templates, monitor delivery stats and bounces. Always search tools first for current schemas."4---567# Postmark Automation via Rube MCP89Automate Postmark transactional email operations through Composio's Postmark toolkit via Rube MCP.1011**Toolkit docs**: [composio.dev/toolkits/postmark](https://composio.dev/toolkits/postmark)1213## Prerequisites1415- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)16- Active Postmark connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `postmark`17- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1819## Setup2021**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.2223241. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds252. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `postmark`263. If connection is not ACTIVE, follow the returned auth link to complete Postmark authentication274. Confirm connection status shows ACTIVE before running any workflows2829## Core Workflows3031### 1. Send Templated Batch Emails3233**When to use**: User wants to send templated emails to multiple recipients in one call3435**Tool sequence**:361. `POSTMARK_LIST_TEMPLATES` - Find available templates and their IDs [Prerequisite]372. `POSTMARK_VALIDATE_TEMPLATE` - Validate template with model data before sending [Optional]383. `POSTMARK_SEND_BATCH_WITH_TEMPLATES` - Send batch emails using a template [Required]3940**Key parameters**:41- `TemplateId` or `TemplateAlias`: Identifier for the template to use42- `Messages`: Array of message objects with `From`, `To`, `TemplateModel`43- `TemplateModel`: Key-value pairs matching template variables4445**Pitfalls**:46- Maximum 500 messages per batch call47- Either `TemplateId` or `TemplateAlias` is required, not both48- `TemplateModel` keys must match template variable names exactly (case-sensitive)49- Sender address must be a verified Sender Signature or from a verified domain5051### 2. Manage Email Templates5253**When to use**: User wants to create, edit, or inspect email templates5455**Tool sequence**:561. `POSTMARK_LIST_TEMPLATES` - List all templates with IDs and names [Required]572. `POSTMARK_GET_TEMPLATE` - Get full template details including HTML/text body [Optional]583. `POSTMARK_EDIT_TEMPLATE` - Update template content or settings [Optional]594. `POSTMARK_VALIDATE_TEMPLATE` - Test template rendering with sample data [Optional]6061**Key parameters**:62- `TemplateId`: Numeric template ID for GET/EDIT operations63- `Name`: Template display name64- `Subject`: Email subject line (supports template variables)65- `HtmlBody`: HTML content of the template66- `TextBody`: Plain text fallback content67- `TemplateType`: 'Standard' or 'Layout'6869**Pitfalls**:70- Template IDs are numeric integers, not strings71- Editing a template replaces the entire content; include all fields you want to keep72- Layout templates wrap Standard templates; changing a layout affects all linked templates73- Validate before sending to catch missing variables early7475### 3. Monitor Delivery Statistics7677**When to use**: User wants to check email delivery health, open/click rates, or outbound overview7879**Tool sequence**:801. `POSTMARK_GET_DELIVERY_STATS` - Get bounce counts by type [Required]812. `POSTMARK_GET_OUTBOUND_OVERVIEW` - Get sent/opened/clicked/bounced summary [Required]823. `POSTMARK_GET_TRACKED_EMAIL_COUNTS` - Get tracked email volume over time [Optional]8384**Key parameters**:85- `fromdate`: Start date for filtering stats (YYYY-MM-DD)86- `todate`: End date for filtering stats (YYYY-MM-DD)87- `tag`: Filter stats by message tag88- `messagestreamid`: Filter by message stream (e.g., 'outbound', 'broadcast')8990**Pitfalls**:91- Date parameters use YYYY-MM-DD format without time component92- Stats are aggregated; individual message tracking requires separate API calls93- `messagestreamid` defaults to all streams if not specified9495### 4. Manage Bounces and Complaints9697**When to use**: User wants to review bounced emails or spam complaints9899**Tool sequence**:1001. `POSTMARK_GET_BOUNCES` - List bounced messages with details [Required]1012. `POSTMARK_GET_SPAM_COMPLAINTS` - List spam complaint records [Optional]1023. `POSTMARK_GET_DELIVERY_STATS` - Get bounce summary counts [Optional]103104**Key parameters**:105- `count`: Number of records to return per page106- `offset`: Pagination offset for results107- `type`: Bounce type filter (e.g., 'HardBounce', 'SoftBounce', 'SpamNotification')108- `fromdate`/`todate`: Date range filters109- `emailFilter`: Filter by recipient email address110111**Pitfalls**:112- Bounce types include: HardBounce, SoftBounce, SpamNotification, SpamComplaint, Transient, and others113- Hard bounces indicate permanent delivery failures; these addresses should be removed114- Spam complaints affect sender reputation; monitor regularly115- Pagination uses `count` and `offset`, not page tokens116117### 5. Configure Server Settings118119**When to use**: User wants to view or modify Postmark server configuration120121**Tool sequence**:1221. `POSTMARK_GET_SERVER` - Retrieve current server settings [Required]1232. `POSTMARK_EDIT_SERVER` - Update server configuration [Optional]124125**Key parameters**:126- `Name`: Server display name127- `SmtpApiActivated`: Enable/disable SMTP API access128- `BounceHookUrl`: Webhook URL for bounce notifications129- `InboundHookUrl`: Webhook URL for inbound email processing130- `TrackOpens`: Enable/disable open tracking131- `TrackLinks`: Link tracking mode ('None', 'HtmlAndText', 'HtmlOnly', 'TextOnly')132133**Pitfalls**:134- Server edits affect all messages sent through that server135- Webhook URLs must be publicly accessible HTTPS endpoints136- Changing `SmtpApiActivated` affects SMTP relay access immediately137- Track settings apply to future messages only, not retroactively138139## Common Patterns140141### Template Variable Resolution142143```1441. Call POSTMARK_GET_TEMPLATE with TemplateId1452. Inspect HtmlBody/TextBody for {{variable}} placeholders1463. Build TemplateModel dict with matching keys1474. Call POSTMARK_VALIDATE_TEMPLATE to verify rendering148```149150### Pagination151152- Set `count` for results per page (varies by endpoint)153- Use `offset` to skip previously fetched results154- Increment offset by count each page until results returned < count155- Total records may be returned in response metadata156157## Known Pitfalls158159**Authentication**:160- Postmark uses server-level API tokens, not account-level161- Each server has its own token; ensure correct server context162- Sender addresses must be verified Sender Signatures or from verified domains163164**Rate Limits**:165- Batch send limited to 500 messages per call166- API rate limits vary by endpoint; implement backoff on 429 responses167168**Response Parsing**:169- Response data may be nested under `data` or `data.data`170- Parse defensively with fallback patterns171- Template IDs are always numeric integers172173## Quick Reference174175| Task | Tool Slug | Key Params |176|------|-----------|------------|177| Send batch templated emails | POSTMARK_SEND_BATCH_WITH_TEMPLATES | Messages, TemplateId/TemplateAlias |178| List templates | POSTMARK_LIST_TEMPLATES | Count, Offset, TemplateType |179| Get template details | POSTMARK_GET_TEMPLATE | TemplateId |180| Edit template | POSTMARK_EDIT_TEMPLATE | TemplateId, Name, Subject, HtmlBody |181| Validate template | POSTMARK_VALIDATE_TEMPLATE | TemplateId, TemplateModel |182| Delivery stats | POSTMARK_GET_DELIVERY_STATS | (none or date filters) |183| Outbound overview | POSTMARK_GET_OUTBOUND_OVERVIEW | fromdate, todate, tag |184| Get bounces | POSTMARK_GET_BOUNCES | count, offset, type, emailFilter |185| Get spam complaints | POSTMARK_GET_SPAM_COMPLAINTS | count, offset, fromdate, todate |186| Tracked email counts | POSTMARK_GET_TRACKED_EMAIL_COUNTS | fromdate, todate, tag |187| Get server config | POSTMARK_GET_SERVER | (none) |188| Edit server config | POSTMARK_EDIT_SERVER | Name, TrackOpens, TrackLinks |189190---191*Powered by [Composio](https://composio.dev)*192193---194195**Source:** [`davepoon/buildwithclaude`](https://github.com/davepoon/buildwithclaude) → `plugins/all-skills/skills/postmark-automation/SKILL.md`