Skip to main content
Glama

See students diets

get_active_diets
Read-only

Each student's current diet: published plans (since when, meals, adherence of the week) and drafts the trainer saved but never published to a student who has no active diet yet, with student name and the app_url of that student's diet screen. Use it to answer "who is still waiting for the diet I wrote?"; max_adherence (0-100) answers "who is not following the diet?": only published plans at or below that adherence, lowest first, with the phone to ask what is hard (the guardian phone for a dependent); get_diet_plan shows the plan, and activate_diet_plan publishes it only after the trainer says so.

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": "get_active_diets"
  }
}

Input Schema

NameRequiredDescriptionDefault
max_adherenceNoOnly published diets whose week adherence is at or below this percent, lowest first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / max_adherence
      Added value: +{
      +  "description": "Only published diets whose week adherence is at or below this percent, lowest first.",
      +  "maximum": 100,
      +  "minimum": 0,
      +  "type": "integer"
      +}
  2. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover the read-only, non-destructive, closed-world profile, and the description adds real inclusion/exclusion behavior: drafts appear only for students with no active diet yet, only published plans are filtered by adherence, results are ordered lowest-first, and contact data switches to the guardian phone for dependents. It stops short of stating pagination or result-size limits, which is the only notable gap.

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 resource and tightly packed with no filler sentences, but it is a single sprawling sentence chain with nested parentheticals that takes effort to parse. Slight restructuring would improve scanning without losing content.

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, so the description carries the return-shape burden and does so: student name, app_url of the diet screen, adherence, meals, plan start, and a follow-up phone. Combined with the one optional filter, an agent has everything needed to call and interpret this tool.

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 schema description already says max_adherence filters published diets at or below the percent, lowest first, so the description mostly restates it. The added value is motivational framing (it answers 'who is not following the diet?') and the note that the phone accompanies filtered results so the trainer can follow up.

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: 'Each student's current diet' and enumerates exactly what is returned (published plans with since-when, meals, weekly adherence, plus unpublished drafts). It also names siblings get_diet_plan and activate_diet_plan, so an agent can separate 'view the roster of diets' from 'view one plan' and 'publish a plan'.

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 concrete triggering questions: 'who is still waiting for the diet I wrote?' and, via max_adherence, 'who is not following the diet?'. It states when-not to use it by pointing at get_diet_plan for the plan itself and activate_diet_plan for publishing, including the caution that publishing happens only after the trainer confirms.

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