Create Subscription
create_subscriptionCreate a new tracked subscription for the API key owner. Confirm with the user before calling (riskLevel: medium). Requires the 'write' API key scope. Use when: The user asks to add, record, or start tracking a subscription that does not already exist. Do not use when: The target subscription already exists. Use update_subscription instead. The user is only asking for analysis or a recommendation. Do not claim you can configure Bark URL/device key, send a test push, change timeZone/locale, or manage the category catalog. Those stay in the web app. If the user asks to paste a Bark URL or run a test push, refuse and point them to Settings → Notifications in the web app, and to the reminders guide at /docs/en/user-guide/reminders (Chinese: /docs/zh-CN/user-guide/reminders). After Bark is configured on the web, you may toggle enabled/daysBefore and per-subscription notificationEnabled.
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": {
"name": "<name>",
"category": "<category>",
"amount": "<amount>",
"currency": "<currency>",
"period": "<period>"
},
"name": "create_subscription"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| amount | Yes | ||
| period | Yes | ||
| isTrial | No | ||
| category | Yes | ||
| currency | Yes | ||
| customDate | No | Required only when period is custom. Omit for monthly or yearly subscriptions. | |
| trialEndsOn | No | Trial end / first-charge date in YYYY-MM-DD format. Required when isTrial is true unless nextPaymentDate is provided. | |
| nextPaymentDate | No | Upcoming renewal date in YYYY-MM-DD format. Required unless isTrial is true and trialEndsOn is provided (when both are sent on a trial, they must match). | |
| billingAnchorDay | No | ||
| notificationEnabled | No |