Check ZBS sending window, quota and promotion limits
check_sending_rulesCheck whether a ZBS template send is allowed: the sending window by tag in Vietnam time (Tag 1 round the clock, Tag 2 and 3 07:00-22:00; for Tag 1 at night a warning notes the -133 wording; the conflicting announcement dates are named), the OA daily quota (levels 1000, 5000, 20000, 50000, unlimited; default 20000), Tag 3 limits per user (1 per day, 30 per month), and the quota upgrade conditions (Good quality over 7 days and 2 x the daily quota sent in 7 days). Reference only, nothing is sent. Examples: {"tag":3,"send_time":"21:30","daily_volume":15000}; {"tag":2,"send_time":"06:30"}; {"tag":3,"promo_sent_to_user_today":1}; {"tag":1,"quota_level":20000,"sent_last_7_days":45000}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tag": "<tag>"
},
"name": "check_sending_rules"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | Template tag: 1 transaction, 2 customer care, 3 promotion. | |
| delivery | No | How messages are addressed: "phone" (phone number, default) or "uid" (Zalo user ID for this OA; cheaper, not for OTP, quick response, journey or carousel). | |
| send_time | No | Planned send time, HH:MM in Vietnam time (UTC+7). | |
| quota_level | No | OA daily quota level for template messages: 1000, 5000, 20000, 50000, unlimited (default 20000, where a new OA starts; 1000 and 5000 are penalty levels). | |
| daily_volume | No | Template messages the OA plans to send that day (all templates). | |
| sent_last_7_days | No | Messages sent successfully in the last 7 days (to check the quota upgrade volume condition). | |
| promo_sent_to_user_today | No | Tag 3 messages this OA has already sent to the same user today (before this one). | |
| promo_sent_to_user_this_month | No | Tag 3 messages this OA has already sent to the same user this month (before this one). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | Yes | ||
| quota | Yes | ||
| window | Yes | ||
| allowed | Yes | ||
| warnings | Yes | ||
| disclaimer | Yes | ||
| violations | Yes | ||
| affiliation | Yes | ||
| data_version | Yes |