list_campaigns
List all campaigns to resolve a campaign ID from a campaign name. Returns a full catalog for name-based matching.
Instructions
List all campaigns with basic information for campaign resolution.
Primary Use Case: Resolve campaign ID when user provides only campaign name or partial name. Returns comprehensive list of all campaigns for further name-based matching.
Behavior:
Retrieves all campaigns (up to 1000) in single request
No filtering - returns complete campaign catalog
Avoid multiple calls as results are comprehensive
No Parameters Required: This tool requires no input parameters and returns all available campaigns.
Returns: JSON array of campaign objects, each containing:
id: Campaign identifier starting with 'camp_'
name: Human-readable campaign name
campaign_type: Campaign type (e.g., 'DISCOUNT_COUPONS', 'GIFT_VOUCHERS')
created_at: ISO 8601 creation timestamp
Example Output: [ { "id": "camp_abc123def456", "name": "Summer Sale 2025", "campaign_type": "DISCOUNT_COUPONS", "created_at": "2025-01-01T00:00:00.000Z" }, { "id": "camp_xyz789ghi012", "name": "Holiday Promotions", "campaign_type": "GIFT_VOUCHERS", "created_at": "2024-12-01T00:00:00.000Z" } ]
Usage Pattern:
Call list_campaigns() to get all campaigns
Match user's campaign name against returned names
Use resolved campaign ID for other campaign tools
Limitations:
Maximum 1000 campaigns returned
No filtering options available
Results sorted by creation date
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_campaigns"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |