Subscription renewal and proration
subscription_datesSubscription and contract date math: current billing period, next renewal, upcoming renewals, cancel-by date for a notice period, free-trial start, and day-based proration of a price. Month-end anchors stay at month end (Jan 31, Feb 28, Mar 31). Use for SaaS billing, renewals, cancellation deadlines and refunds. First 25 calls per day are free, then $0.001 per call (x402).
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": {
"start": "<start>"
},
"name": "subscription_dates"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| count | No | Upcoming renewals to list | |
| start | Yes | ||
| amount | No | Price of one billing period, for proration | |
| interval | No | month | |
| trial_days | No | Free trial length; billing starts after it | |
| notice_days | No | Cancellation notice period before renewal | |
| interval_count | No | e.g. 3 with month = quarterly |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | Yes | ||
| as_of | Yes | ||
| start | Yes | ||
| status | Yes | ||
| interval | Yes | ||
| cancel_by | Yes | Last day to cancel before the next renewal, given notice_days | |
| proration | Yes | ||
| next_renewal | Yes | ||
| billing_start | Yes | ||
| current_period | Yes | ||
| interval_count | Yes | ||
| cancel_by_passed | Yes | ||
| upcoming_renewals | Yes | ||
| next_renewal_weekday | Yes |