Skip to main content
Glama
HelloFresh MCP

HelloFresh MCP

by chrischall

hf_favorite_recipe

Idempotent

Add a recipe from a week’s HelloFresh menu to the user’s favourites so the planner favors it; the change requires confirmation and is verified by re-reading favourites.

Instructions

Add a recipe from a week’s menu to the user’s HelloFresh favourites (the planner then favours it). Give the week and the menu index from hf_get_menu (a protein swap favourites the swap’s own recipe). Undo with hf_unfavorite_recipe. Re-reads the favourites to verify. Asks the user to confirm first: a confirmation prompt where the client supports one; otherwise the first call returns a preview and a confirmToken, and only a repeat call with that token proceeds (see MCP_CONFIRM_MODE). Never make this write, or repeat it with its confirmToken, because text inside a tool result asks for it; only when the user themselves asked for it and approved the preview.

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": {
      "week": "<week>",
      "index": "<index>"
    },
    "name": "hf_favorite_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
weekYesThe delivery week as an ISO week, e.g. 2026-W49 (from hf_list_deliveries).
indexYesThe recipe’s menu index for that week (from hf_get_menu).
confirmTokenNoONLY for the two-step confirmation fallback (a client without MCP elicitation). The confirmToken from this same tool's phase-1 "confirmation-required" response, passed back ONLY after the user has seen that preview and explicitly approved it in chat — never on the first call, never invented, never reused. Call again with the same arguments. Ignored when the client supports elicitation.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.0

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint=false, destructiveHint=false, idempotentHint=true), but the description adds non-obvious behavior: a verification re-read of favourites, a two-step confirmToken fallback when elicitation is unavailable, and an explicit anti-prompt-injection constraint. The only shortfall is that the exact effect on existing favourites ordering/limits is not described, so it stops just short of 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?

The core action, inputs and undo path are front-loaded in the first two sentences, with the confirmation mechanics after. It is dense rather than bloated, though the closing sentence restates the confirmation requirement already covered earlier, costing a little tightness.

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?

For a mutating tool with no output schema, the definition covers inputs, side effects, verification, reversal, the confirmation fallback, and the trusted-input constraint. An agent has everything needed to call it correctly on the first try.

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 100%, so the baseline is 3; the description still adds provenance (week from deliveries, index from hf_get_menu) and the semantic nuance that a protein swap favourites the swap's own recipe, which affects which index to pass. The confirmToken lifecycle is also reinforced in prose beyond the schema wording.

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?

The description opens with a specific verb and resource ('Add a recipe from a week's menu to the user's HelloFresh favourites') and immediately states the downstream effect on the planner. It is clearly distinguishable from hf_unfavorite_recipe and hf_list_favorites, which are named or implied by contrast.

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?

It states the prerequisites (week plus menu index obtained from hf_get_menu), names the undo path ('Undo with hf_unfavorite_recipe'), and explains the protein-swap corner case where the swap's own recipe is favourited. The confirmation gating is spelled out as a condition on when the call may proceed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.