Find students whose plan period ends soon
list_plans_endingStudents with an active plan whose current period ends within the next days (default 7, up to 60), with name, phone (the guardian's for a dependent), plan title, period_end, days_left, renews_automatically (false when auto-renew is off or billing is manual, so the student will not be charged again unless the trainer acts) and app_url of the student profile. Plans that do not renew by themselves come first, then the ones ending sooner. Works for any plan, including monthly ones without a class count (list_packages_to_renew only sees class packages). Use it to answer "whose plan ends this week and will not renew by itself?" then get_student or list_student_subscriptions 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_plans_ending"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Look-ahead window in days, 0 to 60. Default 7. |