ReferenceMCP Tools
export_shopping_list
Export a shopping list for a saved meal plan with automatic ingredient aggregation, unit conversion, and per-person rule warnings. Supports multiple export formats for different use cases.
Input Schema
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
planId | string (UUID) | Yes | - | Meal plan ID to generate shopping list for |
format | enum | No | "markdown" | Output format: "json", "csv", "markdown", or "text" |
groupBy | enum | No | "aisle" | Grouping strategy: "aisle", "recipe", or "category" |
includeStaples | boolean | No | false | Include kitchen staples (salt, pepper, oil). Distinct from the pantry category. |
includePantryItems | boolean | No | - | Deprecated alias for includeStaples |
includeRuleWarnings | boolean | No | true | Include per-person rule warnings for shoppers |
timeZone | string | No | kitchen TZ | IANA timezone for the markdown/text Generated line (always labeled) |
Output Schema
MCP tools/call also sets structuredContent to this object. Do not JSON.parse a string stuffed in content to get the list - read structuredContent.list (or list after one parse of the text JSON for format: "json").
Format Examples
Markdown (default)
JSON
CSV
Text
Example Call
Example Result
Grouping Strategies
aisle
- Groups by grocery store aisle (produce, dairy, meat, etc.)
- Best for efficient shopping
- Kitchen staples land in a Kitchen staples section when
includeStaplesis true. That is not the pantry food-taxonomy category (flour, canned goods).
recipe
- Groups by recipe
- Helps with recipe-by-recipe shopping
- Good for meal kit-style shopping
category
- Groups by food taxonomy: produce, protein, dairy, grains, spices, pantry, frozen
- Distinct from aisle: chicken and salmon share Protein but sit in Meat vs Seafood aisles
- Balanced between organization and flexibility
Usage Notes
- Automatic aggregation: Duplicate ingredients across recipes are combined when possible
- Unit conversion: Common unit conversions are applied (e.g., 3 tsp = 1 tbsp). Amounts follow the week cook-for; per-night servings do not change list amounts.
- Safety warnings: Inline warnings alert shoppers to dietary restrictions and allergens
- Kitchen staples: Enable
includeStaples: trueto include salt and oil.includePantryItemsis still accepted as an alias. On each item,isStapleis canonical;isPantryItemis the same alias. - Check-offs and extras: Markdown uses
- [x]for checked keys from the saved trip. Extras such as paper towels appear inlistand in markdown/text/csv. - Generated time: The human-readable Generated line uses
timeZone(IANA) and always includes a zone label such as CDT or UTC.generatedAtstays ISO-8601 UTC.
Related Tools
- get_meal_plan - Get the plan details
- check_meal_plan - Verify safety before shopping
- save_meal_plan - Save plan before export