get_subscription_expense_count_by_period
Count subscription expenses within a specified date range, providing the total number of records for period-based analytics.
Instructions
Get subscription based expense count for the provided period.
Example usage: When user want to perform analytics of subscription based expenses for a period, first use this method to get the count of total subscription based expenses first. Then can use the get_latest_subscription_expenses tool to fetch the expenses by page to get all records.
Args: from_date (required): The start date for filtering. Format is YYYY-MM-DD. to_date (required): The end date for filtering. Format is YYYY-MM-DD.
Returns: int: The count of subscription based expense reocrds for the period.
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": {
"from_date": "<from_date>",
"to_date": "<to_date>"
},
"name": "get_subscription_expense_count_by_period"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to_date | Yes | ||
| from_date | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |