MR
Mayur Rathi
@mayurrathi
⭐ 5 GitHub stars

Postmark Automation

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.

mkdir -p ./skills/postmark-automation && curl -sfL https://raw.githubusercontent.com/mayurrathi/awesome-agent-skills/main/skills/postmark-automation/SKILL.md -o ./skills/postmark-automation/SKILL.md

Run in terminal / PowerShell. Requires curl (Unix) or PowerShell 5+ (Windows).

Skill Content

# Postmark Automation via Rube MCP


Automate Postmark transactional email operations through Composio's Postmark toolkit via Rube MCP.


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.



1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds

2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `postmark`

3. If connection is not ACTIVE, follow the returned auth link to complete Postmark authentication

4. 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**:

1. `POSTMARK_LIST_TEMPLATES` - Find available templates and their IDs [Prerequisite]

2. `POSTMARK_VALIDATE_TEMPLATE` - Validate template with model data before sending [Optional]

3. `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**:

1. `POSTMARK_LIST_TEMPLATES` - List all templates with IDs and names [Required]

2. `POSTMARK_GET_TEMPLATE` - Get full template details including HTML/text body [Optional]

3. `POSTMARK_EDIT_TEMPLATE` - Update template content or settings [Optional]

4. `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**:

1. `POSTMARK_GET_DELIVERY_STATS` - Get bounce counts by type [Required]

2. `POSTMARK_GET_OUTBOUND_OVERVIEW` - Get sent/opened/clicked/bounced summary [Required]

3. `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**:

1. `POSTMARK_GET_BOUNCES` - List bounced messages with details [Required]

2. `POSTMARK_GET_SPAM_COMPLAINTS` - List spam complaint records [Optional]

3. `POSTMARK_GET_DELIVERY

🎯 Best For

  • Claude users
  • Content creators
  • Writers
  • Editors

💡 Use Cases

  • Drafting marketing emails
  • Writing cold outreach

📖 How to Use This Skill

  1. 1

    Install the Skill

    Copy the install command from the Terminal tab and run it. The SKILL.md file downloads to your local skills directory.

  2. 2

    Load into Your AI Assistant

    Open Claude and reference the skill. Paste the SKILL.md content or use the system prompt tab.

  3. 3

    Apply Postmark Automation to Your Work

    Provide context for your task — paste source material, describe your audience, or share existing work to guide the AI.

  4. 4

    Review and Refine

    Edit the AI output for accuracy, tone, and completeness. Add human insight where the AI lacks context.

❓ Frequently Asked Questions

Can Postmark Automation maintain my brand voice?

Yes — provide style guides or example content in your prompt for consistent brand-aligned output.

How do I install Postmark Automation?

Copy the install command from the Terminal tab and run it. The skill downloads to ./skills/postmark-automation/SKILL.md, ready to use.

Can I customize this skill for my team?

Absolutely. Edit the SKILL.md file to add team-specific instructions, examples, or workflows.

⚠️ Common Mistakes to Avoid

Publishing unedited drafts

AI writing needs human editing for facts, flow, and authentic voice.

🔗 Related Skills