Skip to main content
Glama

Find students whose plan period ends soon

list_plans_ending
Read-only

Students 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

NameRequiredDescriptionDefault
daysNoLook-ahead window in days, 0 to 60. Default 7.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with the concrete consequence ('nothing is renewed, charged or sent'). It adds real behavior context beyond annotations: the sort order (non-renewing plans first, then soonest ending) and the precise meaning of renews_automatically=false when billing is manual. Only minor gaps remain, such as result size/pagination.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with the population being listed, then the returned fields, then ordering, then use case. The mid-sentence enumerations of field names are dense but each earns its place by describing the return shape in the absence of an output schema.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by enumerating the returned fields and their semantics (guardian phone for dependents, days_left, app_url) plus result ordering. Combined with the read-only guarantee and follow-up tool names, an agent has everything needed to call and interpret it.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single 'days' parameter already documents type, range 0-60, and default 7. The description restates the same window and default, adding only the framing 'look-ahead window', which is a small increment over the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a specific verb+resource and scope: 'Students with an active plan whose current period ends within the next days'. It explicitly contrasts itself with list_packages_to_renew ('only sees class packages'), so an agent can separate the two without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives a concrete triggering question ('whose plan ends this week and will not renew by itself?') and names the follow-up tools (get_student, list_student_subscriptions) for drilling into a result. It also states the differentiator against the nearest sibling, so when-to-use is fully resolved.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources