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.
Add this skill
npx mdskills install sickn33/postmark-automationComprehensive Postmark automation with clear workflows, tool sequences, and pitfall guidance
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."4requires:5 mcp: [rube]6---78# Postmark Automation via Rube MCP910Automate Postmark transactional email operations through Composio's Postmark toolkit via Rube MCP.1112## Prerequisites1314- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)15- Active Postmark connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `postmark`16- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas1718## Setup1920**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.2122231. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds242. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `postmark`253. If connection is not ACTIVE, follow the returned auth link to complete Postmark authentication264. Confirm connection status shows ACTIVE before running any workflows2728## Core Workflows2930### 1. Send Templated Batch Emails3132**When to use**: User wants to send templated emails to multiple recipients in one call3334**Tool sequence**:351. `POSTMARK_LIST_TEMPLATES` - Find available templates and their IDs [Prerequisite]362. `POSTMARK_VALIDATE_TEMPLATE` - Validate template with model data before sending [Optional]373. `POSTMARK_SEND_BATCH_WITH_TEMPLATES` - Send batch emails using a template [Required]3839**Key parameters**:40- `TemplateId` or `TemplateAlias`: Identifier for the template to use41- `Messages`: Array of message objects with `From`, `To`, `TemplateModel`42- `TemplateModel`: Key-value pairs matching template variables4344**Pitfalls**:45- Maximum 500 messages per batch call46- Either `TemplateId` or `TemplateAlias` is required, not both47- `TemplateModel` keys must match template variable names exactly (case-sensitive)48- Sender address must be a verified Sender Signature or from a verified domain4950### 2. Manage Email Templates5152**When to use**: User wants to create, edit, or inspect email templates5354**Tool sequence**:551. `POSTMARK_LIST_TEMPLATES` - List all templates with IDs and names [Required]562. `POSTMARK_GET_TEMPLATE` - Get full template details including HTML/text body [Optional]573. `POSTMARK_EDIT_TEMPLATE` - Update template content or settings [Optional]584. `POSTMARK_VALIDATE_TEMPLATE` - Test template rendering with sample data [Optional]5960**Key parameters**:61- `TemplateId`: Numeric template ID for GET/EDIT operations62- `Name`: Template display name63- `Subject`: Email subject line (supports template variables)64- `HtmlBody`: HTML content of the template65- `TextBody`: Plain text fallback content66- `TemplateType`: 'Standard' or 'Layout'6768**Pitfalls**:69- Template IDs are numeric integers, not strings70- Editing a template replaces the entire content; include all fields you want to keep71- Layout templates wrap Standard templates; changing a layout affects all linked templates72- Validate before sending to catch missing variables early7374### 3. Monitor Delivery Statistics7576**When to use**: User wants to check email delivery health, open/click rates, or outbound overview7778**Tool sequence**:791. `POSTMARK_GET_DELIVERY_STATS` - Get bounce counts by type [Required]802. `POSTMARK_GET_OUTBOUND_OVERVIEW` - Get sent/opened/clicked/bounced summary [Required]813. `POSTMARK_GET_TRACKED_EMAIL_COUNTS` - Get tracked email volume over time [Optional]8283**Key parameters**:84- `fromdate`: Start date for filtering stats (YYYY-MM-DD)85- `todate`: End date for filtering stats (YYYY-MM-DD)86- `tag`: Filter stats by message tag87- `messagestreamid`: Filter by message stream (e.g., 'outbound', 'broadcast')8889**Pitfalls**:90- Date parameters use YYYY-MM-DD format without time component91- Stats are aggregated; individual message tracking requires separate API calls92- `messagestreamid` defaults to all streams if not specified9394### 4. Manage Bounces and Complaints9596**When to use**: User wants to review bounced emails or spam complaints9798**Tool sequence**:991. `POSTMARK_GET_BOUNCES` - List bounced messages with details [Required]1002. `POSTMARK_GET_SPAM_COMPLAINTS` - List spam complaint records [Optional]1013. `POSTMARK_GET_DELIVERY_STATS` - Get bounce summary counts [Optional]102103**Key parameters**:104- `count`: Number of records to return per page105- `offset`: Pagination offset for results106- `type`: Bounce type filter (e.g., 'HardBounce', 'SoftBounce', 'SpamNotification')107- `fromdate`/`todate`: Date range filters108- `emailFilter`: Filter by recipient email address109110**Pitfalls**:111- Bounce types include: HardBounce, SoftBounce, SpamNotification, SpamComplaint, Transient, and others112- Hard bounces indicate permanent delivery failures; these addresses should be removed113- Spam complaints affect sender reputation; monitor regularly114- Pagination uses `count` and `offset`, not page tokens115116### 5. Configure Server Settings117118**When to use**: User wants to view or modify Postmark server configuration119120**Tool sequence**:1211. `POSTMARK_GET_SERVER` - Retrieve current server settings [Required]1222. `POSTMARK_EDIT_SERVER` - Update server configuration [Optional]123124**Key parameters**:125- `Name`: Server display name126- `SmtpApiActivated`: Enable/disable SMTP API access127- `BounceHookUrl`: Webhook URL for bounce notifications128- `InboundHookUrl`: Webhook URL for inbound email processing129- `TrackOpens`: Enable/disable open tracking130- `TrackLinks`: Link tracking mode ('None', 'HtmlAndText', 'HtmlOnly', 'TextOnly')131132**Pitfalls**:133- Server edits affect all messages sent through that server134- Webhook URLs must be publicly accessible HTTPS endpoints135- Changing `SmtpApiActivated` affects SMTP relay access immediately136- Track settings apply to future messages only, not retroactively137138## Common Patterns139140### Template Variable Resolution141142```1431. Call POSTMARK_GET_TEMPLATE with TemplateId1442. Inspect HtmlBody/TextBody for {{variable}} placeholders1453. Build TemplateModel dict with matching keys1464. Call POSTMARK_VALIDATE_TEMPLATE to verify rendering147```148149### Pagination150151- Set `count` for results per page (varies by endpoint)152- Use `offset` to skip previously fetched results153- Increment offset by count each page until results returned < count154- Total records may be returned in response metadata155156## Known Pitfalls157158**Authentication**:159- Postmark uses server-level API tokens, not account-level160- Each server has its own token; ensure correct server context161- Sender addresses must be verified Sender Signatures or from verified domains162163**Rate Limits**:164- Batch send limited to 500 messages per call165- API rate limits vary by endpoint; implement backoff on 429 responses166167**Response Parsing**:168- Response data may be nested under `data` or `data.data`169- Parse defensively with fallback patterns170- Template IDs are always numeric integers171172## Quick Reference173174| Task | Tool Slug | Key Params |175|------|-----------|------------|176| Send batch templated emails | POSTMARK_SEND_BATCH_WITH_TEMPLATES | Messages, TemplateId/TemplateAlias |177| List templates | POSTMARK_LIST_TEMPLATES | Count, Offset, TemplateType |178| Get template details | POSTMARK_GET_TEMPLATE | TemplateId |179| Edit template | POSTMARK_EDIT_TEMPLATE | TemplateId, Name, Subject, HtmlBody |180| Validate template | POSTMARK_VALIDATE_TEMPLATE | TemplateId, TemplateModel |181| Delivery stats | POSTMARK_GET_DELIVERY_STATS | (none or date filters) |182| Outbound overview | POSTMARK_GET_OUTBOUND_OVERVIEW | fromdate, todate, tag |183| Get bounces | POSTMARK_GET_BOUNCES | count, offset, type, emailFilter |184| Get spam complaints | POSTMARK_GET_SPAM_COMPLAINTS | count, offset, fromdate, todate |185| Tracked email counts | POSTMARK_GET_TRACKED_EMAIL_COUNTS | fromdate, todate, tag |186| Get server config | POSTMARK_GET_SERVER | (none) |187| Edit server config | POSTMARK_EDIT_SERVER | Name, TrackOpens, TrackLinks |188
Full transparency — inspect the skill content before installing.