Skip to main content
Glama

The Meal Plan Vault

Plan meal prep

plan_meal_prep
Destructive

Plan a meal prep: a batch cooked once on prep_date (say Sunday) and eaten at meals later on. Puts the dish into every slot in meals, linked to the prep. The grocery list buys the prep once, scaled from the recipe's yield to servings, and buys nothing for the meals it feeds. Each meal takes 1 serving unless it says otherwise; servings defaults to the total the meals take. Meals must be on or after prep_date and may span weeks; the prep belongs to the week of its earliest meal. Slots that already have a meal are an error unless replace is true (cooked meals are never replaced).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "prep_date": "<prep_date>",
      "meals": "<meals>"
    },
    "name": "plan_meal_prep"
  }
}

Input Schema

NameRequiredDescriptionDefault
mealsYesThe meals this batch feeds
notesNo
use_byNoISO date YYYY-MM-DD to eat it by
replaceNoReplace meals already in those slots
storageNo
servingsNoServings cooked. Defaults to the sum of the meals' servings.
prep_dateYesISO date YYYY-MM-DD the batch is cooked
recipe_idNo
custom_meal_nameNoA dish without a recipe, instead of recipe_id
protein_per_meal_gNoAim each meal at this much protein: meals that don't set servings take the whole number of servings closest to it. Needs recipe_id with nutrition calculated. The result's meals[].nutrition has each meal's numbers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

The description adds substantial behavior beyond what the annotations declare: it enumerates side effects (fills every slot in `meals`, writes a scaled grocery list, skips buying for fed meals), the error-and-replace semantics, and the result shape for the protein option. The annotations state destructiveHint=true and idempotentHint=false, and the description is consistent with both. The one gap is that it never states where the grocery list comes from, or from which list the item is written, which matters for a destructive mutation.

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?

Sentences are dense and, apart from a long middle stretch covering serving math, meal-date rules, week assignment, and replacement, all carry information. The core contract, prep_date plus meals, leads off. A little restructuring into lines would improve scanability without losing anything.

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

Completeness4/5

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

For a 10-parameter destructive create tool with no output schema, it covers side effects, error and replacement semantics, date constraints, and expected return fields for one option. It lacks any note about prerequisites such as an existing grocery list or which list the items go to, which is the main thing an agent would still need to confirm before calling.

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?

With 70% schema description coverage, the schema already documents most parameters. The description adds real value for `servings` (defaults to the total the meals take), per-meal serving default of 1, the `meals` date constraint, and the interplay between `recipe_id` and `custom_meal_name`. It leaves the three undocumented schema fields (`notes`, `use_by`, `storage`) unaddressed, so it does not fully compensate for the coverage gap.

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?

States a specific verb and resource plus the defining scope: "Plan a meal prep: a batch cooked once on prep_date (say Sunday) and eaten at meals later on." This makes it clearly distinct from update_meal_prep or set_meal_plan_entry without naming them explicitly. An agent can recognize the create-a-prep-with-feeding-meals operation immediately.

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?

Gives clear operating conditions: meals must be on or after prep_date, slots with existing meals are an error unless `replace` is true, and cooked meals are never replaced. It doesn't explicitly route to alternatives such as update_meal_prep when replanning an existing prep, but the when-this-fails guidance is strong.

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