Skip to main content
Glama

Create Favorite Meal

create_favorite_meal
Idempotent

Save a favorite meal, as the app's "add to favorites" does. Use when the user asks to save a meal as a favorite. Send date and meal to save a meal already in the diary, or items (food_id, food_measure_id, quantity) to save a list of foods. The diary itself doesn't change. The result lists the saved foods and amounts, and skipped counts diary foods that can't be saved.

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": {
      "request_id": "<request_id>"
    },
    "name": "create_favorite_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDay of the logged meal to save, YYYY-MM-DD.
mealNoThe logged meal to save.
nameNoName for the meal, such as "Seitan dinner". Defaults to the meal and date for a diary meal.
itemsNoThe foods to save, up to 30, instead of a diary meal.
request_idYesA new unique string for this action. Reuse it only when retrying the same action.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations (which only state it is a non-destructive, idempotent write), the description discloses the blast radius ("The diary itself doesn't change") and the return shape without an output schema (saved foods and amounts, plus a skipped count for diary foods that cannot be saved). That partial-failure semantics is exactly the kind of behavioral context an agent needs and cannot get from structured fields.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Four short sentences ordered purpose → trigger → input mode → side effects and result, with zero filler. The most decision-relevant facts (what it saves, when to use it) are front-loaded.

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 non-destructive write with five parameters, no output schema, and full schema coverage, the description supplies the missing pieces: mode selection, the unchanged-state guarantee, and the returned fields including the skipped count. Nothing an agent needs in order to invoke it correctly is absent.

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, but the description adds real meaning the schema does not: that date+meal and items are mutually exclusive paths, and which parameters belong to which path. It doesn't cover name defaults or request_id semantics, but those are documented in the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/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 ("Save a favorite meal") and anchors it to the app's known "add to favorites" behavior, then clarifies the two creation modes (diary meal vs. explicit food list). It does not name a sibling to distinguish itself from, e.g., log_favorite_meal or copy_meal, so an agent has to infer that boundary from the word "save".

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

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

It gives an explicit trigger ("Use when the user asks to save a meal as a favorite") and, more usefully, a routing rule between the two input modes: date+meal for a meal already in the diary, items for an arbitrary food list. What is missing is any when-not guidance or named alternative for related operations.

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