Skip to main content
Glama

Save plan

save_plan

Save a plan of several sessions or meals at once, such as a week of workouts and meals, when the person asks for the plan to be saved. Use this rather than many create_workout and create_meal calls whenever a plan holds more than one session or meal, so the person sees the whole plan as one. Give every workout a note of one or two short lines on what the session is for and how to approach it, such as Full body with dumbbells and a pull-up bar; start pull-ups at 3 × 4: it shows on the plan's card and in the app while training. Each workout and meal is exactly what create_workout and create_meal take: find every exercise with list_exercises and every food with list_foods first, and read get_targets before planning meals. Everything is saved as planned. An unknown exercise saves nothing. Otherwise each piece is saved on its own, and failed lists any refused, by kind and its place in the input: fix and save only those again. Give every workout and meal its own requestId, so after an error or timeout the same call can be sent again and saves only what is missing. Say the plan is saved only after this returns.

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

Input Schema

NameRequiredDescriptionDefault
mealsNoEach meal to plan, exactly as create_meal takes it. Its state is always planned
workoutsNoEach session to plan, exactly as create_workout takes it. Its state is always planned

Output Schema

NameRequiredDescriptionDefault
daysYes
mealsYes
failedYes
workoutsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior4/5

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

Adds substantial behavior the annotations don't cover: atomicity rules ('An unknown exercise saves nothing. Otherwise each piece is saved on its own'), the shape of partial failure ('failed lists any refused, by kind and its place in the input'), and the instruction to confirm only after return. It also explains the requestId idempotency contract for retry after error or timeout. Slightly short of 5 because the response payload's structure is only gestured at ('failed lists any refused') rather than described.

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 the alternative-tool routing are front-loaded, and the failure/retry semantics follow in a logical order. It is dense and long, but nearly every sentence carries a distinct operational rule; the note-writing guidance is the most verbose passage yet still earns its place by specifying content and length.

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?

An output schema exists so return values need no explanation, and the description covers the remaining hard parts: prerequisites, the per-item requestId idempotency rule, partial-failure handling, and when to tell the user the save succeeded. Nothing an agent needs to invoke this correctly is missing.

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 description coverage is 100%, so the baseline is 3, but the description adds real meaning: it mandates a per-workout note with a rationale ('it shows on the plan's card and in the app while training'), requires a distinct requestId per workout and meal, and frames each entry as exactly what create_workout/create_meal accept. That is useful routing context beyond the schema.

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 ('Save a plan of several sessions or meals at once') plus the concrete scope ('a week of workouts and meals'). It immediately distinguishes itself from the create_workout/create_meal siblings by naming them and saying it replaces many of those calls.

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 gives the triggering condition ('when the person asks for the plan to be saved') and the selection rule against alternatives ('Use this rather than many create_workout and create_meal calls whenever a plan holds more than one session or meal'). It also lists prerequisites — find exercises with list_exercises, foods with list_foods, read get_targets before planning meals.

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