Skip to content

Commit 08d6930

Browse files
committed
Clarify sendAt behavior in create_campaign tool
1 parent e64740f commit 08d6930

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

TOOLS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
- **activate_triggered_campaign** ✏️✉️: Activate a triggered campaign (requires API triggered campaign activation enabled)
1212
- **archive_campaigns** ✏️: Archive one or more campaigns. Scheduled/recurring campaigns will be cancelled, running campaigns will be aborted.
1313
- **cancel_campaign** ✏️: Cancel a scheduled or recurring campaign
14-
- **create_campaign** ✏️✉️: Create a new blast or triggered campaign from an existing template. If listIds are provided, the campaign will be a blast campaign, otherwise it will be a triggered campaign. Blast campaigns will be sent immediately if sendAt is not provided.
14+
- **create_campaign** ✏️✉️: Create a new blast or triggered campaign from an existing template. If listIds are provided, the campaign will be a blast campaign; it is created in Ready state and will be sent at the given sendAt time, which is required. If listIds are not provided, the campaign will be a triggered campaign in Ready state that must be activated before it can send.
1515
- **deactivate_triggered_campaign** ✏️: Deactivate a triggered campaign (requires API triggered campaign deactivation enabled)
1616
- **get_campaign**: Get detailed information about a specific campaign
1717
- **get_campaign_metrics**: Get campaign performance metrics

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
},
7676
"dependencies": {
7777
"@alcyone-labs/zod-to-json-schema": "4.0.10",
78-
"@iterable/api": "0.6.0",
78+
"@iterable/api": "0.6.1",
7979
"@modelcontextprotocol/sdk": "1.18.1",
8080
"@primno/dpapi": "2.0.1",
8181
"@types/json-schema": "7.0.15",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/tool-filter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const SEND_TOOLS: Set<string> = new Set([
117117
"send_campaign",
118118
"trigger_campaign",
119119
"schedule_campaign",
120-
// Creating a blast campaign can send immediately if sendAt not provided
120+
// Creating a blast campaign schedules a send (sendAt is required when listIds is provided)
121121
"create_campaign",
122122
// Triggered campaigns can cause sends upon activation; block unless explicitly allowed
123123
"activate_triggered_campaign",

src/tools/campaigns.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export function createCampaignTools(client: IterableClient): Tool[] {
4747
createTool({
4848
name: "create_campaign",
4949
description:
50-
"Create a new blast or triggered campaign from an existing template. If listIds are provided, the campaign will be a blast campaign, otherwise it will be a triggered campaign. Blast campaigns will be sent immediately if sendAt is not provided.",
50+
"Create a new blast or triggered campaign from an existing template. If listIds are provided, the campaign will be a blast campaign; it is created in Ready state and will be sent at the given sendAt time, which is required. If listIds are not provided, the campaign will be a triggered campaign in Ready state that must be activated before it can send.",
5151
schema: CreateCampaignParamsSchema,
5252
execute: (params) => client.createCampaign(params),
5353
}),

0 commit comments

Comments
 (0)