Skip to main content
Glama

Find students about to run out of classes in their package

list_packages_to_renew
Read-only

Students 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

NameRequiredDescriptionDefault
remaining_at_mostNoClasses left in the period, 0 to 30. Default 2.

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?

The description goes well beyond the annotations by disclosing the sort order (fewest classes left first), the exact fields returned (name, phone, plan title, included, used, remaining, renews_at, app_url), the dependent-phone caveat, and the scope limit to plans with a per-period class count. It also reinforces that nothing is renewed, charged or sent, though that largely restates the readOnly/destructive hints. It says nothing about pagination or result-size limits, which is the main remaining gap for a list tool.

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?

The core definition is front-loaded and every clause carries information (population, threshold, returned fields, ordering, read-only guarantee). It is a long, somewhat run-on single sentence followed by a short usage sentence, which is dense but readable; some field enumeration could have been trimmed.

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 ordering. Combined with the scoping condition, the default threshold, and the read-only guarantee, an agent has everything needed to call this correctly and interpret the results.

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

Parameters4/5

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

Schema coverage is 100% with a documented range of 0-30 and a stated default, so the schema does most of the work. The description still adds meaning by framing the parameter as a threshold on 'classes left in the period' tied to the student-visible balance, which is more than a restatement of the schema text.

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?

The description names a specific population (students on an active plan with a per-period class balance) and a specific condition (remaining_at_most classes left), and implicitly separates itself from siblings like list_workouts_to_renew and list_student_subscriptions by defining the exact balance the student sees in the app. An agent can distinguish this from the many other list_* tools without opening the schema.

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

Usage Guidelines4/5

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

It gives a concrete trigger phrase ('who is about to finish their package? I want to offer the renewal') and names the natural follow-up calls (get_student, list_student_subscriptions, list_payments). What it lacks is an explicit when-not or a direct comparison to the nearest siblings (e.g., list_workouts_to_renew, list_inactive_students), so the routing guidance is strong but not complete.

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