MCP tools reference

Source of truth: the developer reference docs/mcp/README.md is the source of truth for MCP tool names and behaviour. The server registers its tools from app/lib/mcp/tools/. This article is the user-facing summary; if the two ever disagree, trust docs/mcp/README.md.

All tools are scoped to the authorized household (OAuth grant or API key organization). Nutrition read tools (get_nutrition_summary, list_nutrition_intakes) return the caller’s personal diary; when nutrition-cross-org-diary is on, totals/history include intakes from every kitchen that user logged—not “household nutrition.” Writes still authorize against the grant kitchen for that entry. MCP and Copilot kitchen tools do not consume AI credits; they use rate limits instead. The one exception is the optional photo food log (propose_food_log, see Food diary tools below), which costs 2 credits per model call. Billed Gemini jobs (scan, URL import, Galley Generate, Plan Week) stay on native web/iOS only. Copilot invents meals with create_meal and fills a week with propose_manifest_plan → commit_manifest_plan. Every tool returns a uniform JSON envelope ({ ok: true, tool, data, warnings?, meta? } or { ok: false, tool, error }). Failures include error.code (including timeout), error.message, optional error.details, and often error.recoveryHint. Copilot returns the same envelope shape to the model. Tool handlers are capped (~20s) so hung Workers AI/D1 calls cannot stall the agent forever.

Access and plan

  • Free plan includes MCP. Every plan, including Free, gets full MCP access with OAuth. Free-plan capacity limits (Cargo items, Meals, Supply Lists) still apply to what tools can create.
  • OAuth sign-in only uses authorization_code and refresh_token. Ration does not support the client_credentials grant, so every MCP token comes from a person signing in and approving the household and scopes.
  • Local clients can use any loopback port. Public clients that use PKCE (no client secret) may redirect to http://127.0.0.1, http://[::1] or http://localhost on any port, as long as the path matches the registered redirect. Clients with a secret need an exact redirect match.
  • API keys with mcp:* scopes are the advanced alternative. See Connecting to MCP.

Confirmations and destructive tools

Since 1.13.1 every destructive tool follows one contract. It is marked destructiveHint: true (and readOnlyHint: false) in tools/list, its description ends with "Destructive: needs confirm:true after the person agrees.", and it refuses to run unless you pass confirm: true. Without it the tool changes nothing and returns error code confirmation_required with details.field: "confirm", a recoveryHint (tell the person what will change, then call again with confirm: true) and outcome: "no_effect". Before 1.13.1 this was invalid_input. AI apps that support forms (MCP 2026-07-28 elicitation) show a confirm form instead; declining returns consent_required.

The main ones:

ToolWhat it changes
delete_mealDeletes a Meal and its linked Manifest entries
clear_active_mealsClears every active Galley selection
remove_cargo_itemPermanently deletes a Cargo item
import_inventory_csvAdds or overwrites Cargo items from a CSV
commit_manifest_planWrites a multi-entry Manifest plan (and can sync Supply)
complete_supply_listDocks purchased Supply Items into Cargo and removes them from the list. Merges into the linked Cargo item, then the same name, then a similar name only for the same food in the same unit family; otherwise a new Cargo item. Returns mergedInto {id, name} per item

The full set: apply_inventory_import, apply_inventory_remove, clear_active_meals, clear_health_export, clear_manifest_intake, clear_nutrition_goal, clear_nutrition_match, commit_manifest_plan, complete_supply_list, delete_meal, delete_saved_food, import_inventory_csv, remove_cargo_item, remove_meal_plan_entry, remove_supply_item, save_diary_food_to_kitchen, set_health_export and void_diary_food. Ask Ration (Copilot) passes confirm: true only after you tap Approve; for the preview-then-apply tools (apply_inventory_import, apply_inventory_remove) and the single-line removals (remove_meal_plan_entry, remove_supply_item) it binds confirm: true itself, because you confirm those in the chat.

Rate limit categories

CategoryTypical limitApplies to
mcp_list30 per 60s per orgMost read tools
mcp_search20 per 60s per orgSemantic search + meal match
mcp_write15 per 60s per orgMost writes
mcp_supply_sync8 per 60s per orgHeavy supply rebuild
mcp_write_per_key15 per 60s per keyDefends against compromised keys

Exact windows may be tuned; if you hit limits, wait for the window to reset. Rate-limit details are also returned in the envelope's error.retryAfter and structured meta.rateLimit fields.

Inventory (Cargo)

ToolScopePurpose
list_inventorymcp:readCursor-paginated cargo list (default 100, max 200). Optional domain, expiresBefore / expiresAfter (UTC YYYY-MM-DD), and sortBy: expiresAt.
get_cargo_itemmcp:readFetch one item by id (name, quantity, unit, domain, tags, expiresAt, nutrition when present).
search_ingredientsmcp:readPantry search: an exact pantry name (case-insensitive) always comes first, then pantry lines whose name contains your words, then semantic hits by meaning (recall 0.60). Each group is ordered by score, and a semantic hit never ranks above a name hit (1.13.1). Each hit includes matchScore, reason and cookMatch (true at ≥ 0.78 when the name agrees).
get_expiring_itemsmcp:readPantry lines expiring within N UTC calendar days. Defaults to the user's expirationAlertDays when days is omitted.
get_expired_itemsmcp:readPantry lines whose expiry date is before today (UTC).
get_kitchen_summarymcp:readSingle-call kitchen snapshot. Prefer this over get_context for status. Manifest status is planned or cooked. loggedByYou is caller-only and omitted without nutrition read, nutrition-manifest, and intake consent. When mcp:nutrition:read is granted, may include caller-only personalNutritionToday.
get_kitchen_eventsmcp:readFlight Recorder timeline (filter by event type / date range; paginated).
get_kitchen_statsmcp:readFlight Recorder aggregates (7d/30d/90d/365d counts + top cooked meals).
add_cargo_itemmcp:inventory:writeAdd a single pantry item. Fuzzy Vectorize merge skipped; embeddings backfill async.
update_cargo_itemmcp:inventory:writeSet absolute pantry fields. Quantity may be 0.
adjust_cargo_itemmcp:inventory:writeRelative quantity change (delta). Exact name, or a semantic match at ≥ 0.78. A weaker name returns candidates and does not change quantity. Prefer for pantry used/wasted, not personal eating.
remove_cargo_itemmcp:inventory:writePermanently delete a pantry line. Requires confirm: true (Copilot host Approve binds confirm).

Receipt → pantry workflow (no credits)

Prefer resource ration://schemas/inventory-import for the item shape.

ToolScopePurpose
preview_inventory_importmcp:inventory:writeDry-run import. Returns previewToken, totals, sample rows + rowsOmitted, warnings.
apply_inventory_importmcp:inventory:writeCommits a preview the user has seen. Marked destructive and idempotent, so AI apps that support approval ask first. In Ask Ration with copilot-confirm-scope on, you tap Approve. Idempotent. Embeddings do not block return.
import_inventory_csvmcp:inventory:writeParse a CSV string and apply directly. Destructive (adds or overwrites Cargo). Approval required; requires confirm: true. Prefer preview → apply for large or untrusted input.

Bulk Cargo remove (no credits)

ToolScopePurpose
preview_inventory_removemcp:inventory:writeDry-run bulk deletes (prefer for 2+ items).
apply_inventory_removemcp:inventory:writeCommits a remove preview the user has seen. Marked destructive and idempotent, so AI apps that support approval ask first. In Ask Ration with copilot-confirm-scope on, you tap Approve. Idempotent.

Galley (Meals)

ToolScopePurpose
list_mealsmcp:readGalley index. Ingredients omitted unless includeIngredients is true.
get_mealmcp:readOne recipe by id, including directions and ingredients.
match_mealsmcp:readCookability match (strict / delta). Includes compact nutrition.perServing and optional maxEnergyKcal (unknown kcal stays listed).
create_mealmcp:galley:writeCreate structured recipe (credit-free).
update_mealmcp:galley:writeUpdate a recipe. Optional nutritionOverride (top level or inside meal, not both); null clears it and the reply carries the recomputed nutrition.
delete_mealmcp:galley:writeDelete a recipe. Requires confirm: true. Cascades to ingredients, tags, and linked meal plan entries. Returns deletedPlanEntryCount.
set_active_mealsmcp:galley:writeSet active selection to exactly mealIds. Optional syncSupply (host approval only when syncing).
clear_active_mealsmcp:galley:writeClear all active selections. Requires confirm: true.
consume_mealmcp:galley:write + mcp:inventory:writeCook by mealId and deduct cargo. When nutrition-cook-log-split is on, bridges to today’s Manifest (Prepared); never logs personal intake (offerPersonalLog hint only).

Manifest (Meal plan)

ToolScopePurpose
get_meal_planmcp:readMeal plan entries for a date range. days defaults to 7 (inclusive, max 14). Omitted startDate is today UTC. status is planned or cooked (cookedAt or legacy consumedAt). personalIntake and loggedByYou when nutrition flags, mcp:nutrition:read, and intake consent allow; gramsPerServing (recipe mass ÷ the Meal's servings) when known, and energyKcalPerServing. Cooking is not eating.
propose_manifest_planmcp:readCompact week proposal from expiring + match_meals. No writes.
commit_manifest_planmcp:manifest:writeCommit confirmed entries (max 50); optional supply sync. Destructive. Approval required; requires confirm: true.
add_meal_plan_entrymcp:manifest:writeSchedule one meal.
update_meal_plan_entrymcp:manifest:writePatch an unconsumed entry.
cook_manifest_entriesmcp:manifest:write + mcp:inventory:writeShared Cook: deduct Cargo once and mark Prepared. Requires nutrition-cook-log-split. Never logs intake.
consume_manifest_entriesmcp:manifest:write + mcp:inventory:writeLegacy combined consume. Refused when nutrition-cook-log-split is on (cook_eat_split_required). Does not write personal intake. logNutrition and portions are ignored.
remove_meal_plan_entrymcp:manifest:writeRemove a scheduled entry. Destructive; requires confirm: true.

Nutrition

Gated by nutrition feature flags. Not medical advice. Cargo/meal read and write tools may include a nutrition snapshot when present. Require mcp:nutrition:read / mcp:nutrition:write. Legacy broad mcp never grants nutrition; migrate keys to explicit kitchen scopes and re-issue or re-consent for nutrition. Agent personal nutrition reads are value-free audited (fail closed). Tools return schema-valid structuredContent plus text; clears and multi-entry intake writes need host approval. Mutation timeouts return timeout_ambiguous — retry with the same operationKey.

ToolScopePurpose
get_nutrition_summarymcp:nutrition:readDaily intake totals (energy + macros + optional fiber) for a UTC date range, plus active goal and additive vsGoal remaining/overage for the last day. from/to default to today UTC. Requires nutrition-goals or nutrition-manifest.
list_nutrition_intakesmcp:nutrition:readRow-level personal intake history for a UTC range (cursor-paginated).
set_nutrition_goalmcp:nutrition:writeIdempotently upsert a personal daily goal using operationKey (active consent required). Requires nutrition-goals. Store only numbers the person states. Do not suggest, calculate, or invent a target.
clear_nutrition_goalmcp:nutrition:writeIdempotently clear the active goal as of a date using operationKey. Requires nutrition-goals. confirm: true.
log_manifest_intakemcp:nutrition:writeAtomic private Eat / plate-up for prepared entries (operationKey + portions[] with per-item keys). servings is 0.01–100, or amount+unit (serving | g | oz) when get_meal_plan gramsPerServing is present. Consent must already be active in Ration. Never deducts Cargo. Optional notes (≤280) persist only when nutrition-intake-notes is on.
clear_manifest_intakemcp:nutrition:writeAtomically soft-void personal intake using operationKey. confirm: true. Does not uncook.
quick_eat_cargomcp:inventory:write + mcp:manifest:write + mcp:nutrition:writePersonal Quick Eat: resolve by cargoId, exact name, or a semantic match at ≥ 0.78. A weaker name returns candidates and does not eat or create. Otherwise creates a missing line then eats (net 0 restock reminder). Manifest snack + optional private intake. Requires cargo-quick-eat + nutrition-cook-log-split.

Food diary tools (when enabled)

These personal Macro Tracking tools only appear when the matching nutrition features are on for your account (all need nutrition-fast-log; iOS below 1.6.0 stays disabled). They act on your diary, not the shared kitchen, unless the tool says otherwise. Not medical advice.

ToolScopePurpose
quote_food_logmcp:nutrition:readQuote the credit cost of a food log before it runs. Typed, recent and custom-macro logs cost 0. No writes.
log_diary_foodmcp:nutrition:writeLog one food you ate (typed macros or a saved food). estimated marks an AI estimate. Approval required. Does not change Cargo, Galley, Manifest or Supply. 0 credits.
update_diary_foodmcp:nutrition:writeReplace one of your food logs. Approval required. 0 credits.
void_diary_foodmcp:nutrition:writeVoid one of your food logs. Destructive; approval required; requires confirm: true.
save_diary_food_to_kitchenmcp:nutrition:writeCopy a food log into the kitchen as a Cargo item or a Meal. Destructive for the shared kitchen; approval required; requires confirm: true.
set_diary_layoutmcp:preferences:writeChoose timeline or slots for your own day list. Approval required.
list_saved_foodsmcp:nutrition:readYour saved foods (needs nutrition-saved-food).
save_foodmcp:nutrition:writeSave a food for yourself (needs nutrition-saved-food). Approval required.
delete_saved_foodmcp:nutrition:writeDelete one of your saved foods (needs nutrition-saved-food). Approval required; requires confirm: true.
lookup_food_barcodemcp:nutrition:readLook up a packaged barcode in USDA Branded Foods (needs nutrition-barcode-diary). No writes.
propose_food_logmcp:nutrition:writeDraft a food log from a photo (needs nutrition-photo-log). A model call costs 2 credits. Approval required. Commit with log_diary_food and estimated: true.
get_health_export_statusmcp:nutrition:readRead the Apple Health export switch (needs nutrition-health-export).
get_health_export_previewmcp:nutrition:readPreview the Fuel logs you could export, and how many were kept out (missing or implausible numbers, or older logs without a Health id) (needs nutrition-health-export).
set_health_exportmcp:nutrition:writeTurn Apple Health export on or off (needs nutrition-health-export). Approval required; requires confirm: true.
clear_health_exportmcp:nutrition:writeAsk your iPhone to remove every Apple Health sample Ration wrote for your account on its next sync (needs nutrition-health-export). Destructive; approval required; requires confirm: true.

Supply (Shopping)

ToolScopePurpose
get_supply_listmcp:readLive Supply, cursor default 50 max 100 (optional listId when the supply list library is enabled). No MCP tool can turn that library on.
add_supply_itemmcp:supply:writeAdd a line to Live Supply. Optional listId writes a saved list when the library is enabled. Does not check off or dock. No note or tag fields.
update_supply_itemmcp:supply:writePatch a Live Supply line (name, quantity, or unit). No note field.
remove_supply_itemmcp:supply:writeRemove a line. Destructive; requires confirm: true.
mark_supply_purchased_bulkmcp:supply:writeMark one or many lines purchased (max 50).
sync_supply_from_selected_mealsmcp:supply:writeRebuild supply from plan + selections. Reports net new, removed, and changed lines.
complete_supply_listmcp:supply:write + mcp:inventory:writeDock purchased Live Supply items → Cargo with the dock merge rules (linked item, exact name, then a similar name only for the same food and unit family; else a new line). Reply items[] has mergedInto {id, name} and matchedBy, or created {id, name}. Saved lists cannot be docked. supplyResyncFailed: true means the dock went through but Supply was not refreshed: follow its recoveryHint (do not dock again; re-read get_supply_list). Requires both scopes. Destructive. Approval required; requires confirm: true.
list_supply_listsmcp:readLive, Saved, Template, and Archived lists (when saved lists are enabled for your account).
create_supply_listmcp:supply:writeCreate a Saved or Template list (when saved lists are enabled).
duplicate_supply_listmcp:supply:writeDuplicate a list into an independent copy (when saved lists are enabled).
archive_supply_listmcp:supply:writeArchive a Saved list (when saved lists are enabled).
transfer_supply_itemsmcp:supply:writeCopy or move items between lists (when saved lists are enabled).
manage_supply_staplesmcp:supply:writeList, upsert, or delete kitchen staples (when saved lists are enabled).
save_receipt_as_supply_listmcp:supply:writeSave reviewed receipt lines as a Saved list, without a second AI credit (when saved lists are enabled).

Account & preferences

ToolScopePurpose
get_contextmcp:readOrg/key context, slim kitchen tier/credits, capabilities, versions.toolsList (a hash of the whole published tools/list and server version, fixed at build time: list again when it changes). Prefer get_kitchen_summary for full status.
get_billing_summarymcp:readTier, credits, renewal, billing links.
get_user_preferencesmcp:readAllergens, alert days, theme, units.
update_user_preferencesmcp:preferences:writePatch preferences.

Not exposed

  • Camera/OCR receipt scan as a tool (text → preview/apply, or native Scan)
  • Recipe URL scraping (start_import_url does not exist). Copilot hard-blocks URL paste → Galley Import. MCP clients extract caption/page text with the client LLM, then create_meal.
  • Billed Galley Generate / Manifest Plan Week as tools. Use create_meal and propose_manifest_plan → commit_manifest_plan. Native buttons remain on web/iOS.

Large Galley JSON imports use the REST API with galley scope—not MCP.