Skip to main content
Glama

create_diet_plan

Create a diet plan for a client (confirm-gated). To check whether one was already created — for example if asked "is it done?" — call list_diet_plans instead of calling this again; re-running this with confirm: true a second time for the same client and title returns the plan already on file rather than writing a duplicate. Prefer meals like { name, scheduledTime: 'HH:mm', order, days: [MONDAY..SUNDAY], section, calories, macros, description, ingredients }. description: one short sentence explaining why this meal is included — shown to the client under the meal. ingredients: REQUIRED on every meal — break each meal into its raw materials with real quantities — e.g. [{ name: 'Paneer', quantity: 60, unit: 'g', calories: 159, protein: 11, carbs: 2, fat: 13 }, { name: 'Cooking oil', quantity: 10, unit: 'ml', isCookingAddition: true, calories: 88, fat: 10 }]. A meal with only calories/macros and no ingredients is rejected. Always include the cooking fat (oil/ghee/butter) as its own ingredient — it is easy to forget and adds real calories. Use get_ingredient_nutrition for the numbers, and make the ingredient calories/macros sum roughly to the meal's calories/macros. Whatever itemised breakdown you show the coach in chat MUST be sent here as the ingredients array, or the client's saved plan will lose every quantity. Legacy slot values like BREAKFAST/LUNCH/DINNER/SNACK are accepted and auto-mapped.

Input Schema

NameRequiredDescriptionDefault
mealsYes
titleYes
confirmNoMust be true to actually execute. If false/omitted, returns a preview only.
endDateNo
clientIdYes
startDateYesYYYY-MM-DD

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the confirm-gate preview behavior, idempotent re-run semantics for the same client/title, and a hard validation rule ('a meal with only calories/macros and no ingredients is rejected'). It stops short of stating authorization requirements or what the response returns, keeping it from a 5.

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?

Purpose and routing are front-loaded ahead of the detailed meal/ingredient guidance, so the hierarchy is sound. The ingredient example is verbose and the prose runs as a single dense block, but nearly every sentence carries actionable constraint information rather than filler.

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 mutation tool with no annotations, no output schema, and 33% schema coverage, the description covers the critical gaps: confirmation flow, validation rejection, ingredient requirements, unit conventions, and idempotency. It is missing only permission/auth context and any indication of the return payload, which are secondary given there is no output schema to explain.

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 only 33%, so the description must compensate, and it does: it expands on confirm, the meals array shape (name/scheduledTime/order/days/section/calories/macros/description/ingredients), the required ingredients breakdown with a concrete example, and the legacy slot auto-mapping. It adds real meaning beyond the terse schema, though a couple of fields (e.g. endDate, avatarUrl/recipeUrl) remain unexplained.

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 ('Create a diet plan for a client') plus the confirm-gate qualifier, and explicitly distinguishes itself from the sibling list_diet_plans. An agent can tell exactly what this tool does 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 Guidelines5/5

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

Explicitly names the alternative (list_diet_plans) and the condition that selects it ('is it done?'), and warns against calling this tool again to check status. It also documents the idempotency behavior for repeated confirm:true calls, leaving nothing to inference.

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.