Find students about to run out of classes in their package
list_packages_to_renewStudents with an active plan that includes a number of classes per period (the same balance the student sees in the app) who have remaining_at_most classes left or fewer (2 by default), with name, phone (the guardian's for a dependent), plan title, included, used, remaining, renews_at and app_url of the student profile, fewest classes left first. Use it to answer "who is about to finish their package? I want to offer the renewal" and then get_student, list_student_subscriptions or list_payments for one of them. Read only: nothing is renewed, charged or sent.
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_packages_to_renew"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| remaining_at_most | No | Classes left in the period, 0 to 30. Default 2. |