Skip to main content
Glama

Suggest a meal

propose_meal
Idempotent

Suggest a meal for the person to approve in the Metrics Nest app. This only leaves a suggestion: nothing is logged until they approve it and then log it from their phone, where they can change it on the plate first; no log entry is ever created, changed or deleted here. Give each food a name and, where you can, its grams and its calories and macros for that portion; leave out any figure you do not know rather than guessing. Make up a new idempotency_key for each suggestion and send the same one only when retrying this exact call. Works only where the person allowed this connection to suggest (get_profile says can_propose). list_meal_proposals shows what became of each suggestion.

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": {
      "idempotency_key": "<idempotency_key>",
      "title": "<title>",
      "planned_for": "<planned_for>",
      "items": "<items>"
    },
    "name": "propose_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
slotNoWhich meal of the day it is for.
itemsYesThe foods on the plate.
titleYesWhat the meal is, as the person will see it: "Chicken rice bowl".
clientNoFor a coach: a client id from list_clients, to read that client. Omitted: your own account.
rationaleNoWhy this meal, in a few sentences the person reads before approving.
planned_forYesThe day it is meant for, in the account time zone: today up to 28 days ahead.
idempotency_keyYesUnique per suggestion; the same key again returns the first suggestion instead of a duplicate.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already flag non-read-only, non-destructive, idempotent, closed-world, so the description's job is to add nuance and it does: no log entry is ever created, changed or deleted here, and the person may edit the plate before logging. The gating prerequisite (can_propose) is extra context annotations cannot express. Only the response payload itself is left implicit.

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?

Front-loaded with the core action and the 'suggestion only' caveat, and the closing pointers to get_profile and list_meal_proposals are well placed. The second sentence is a long semicolon chain and restates the no-log guarantee twice, which could be tightened without losing meaning.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Covers prerequisites, data-quality rules, idempotency and follow-up, which is substantial for a 7-parameter creation tool with no output schema. What a successful call returns (proposal id/shape) is only hinted at via the idempotency note, leaving a small gap.

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 baseline is 3, but the description adds real meaning: items need a name and only the grams/kcal/macros you actually know, with an explicit instruction not to guess. It also reinforces the idempotency_key contract beyond the schema text.

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 ('Suggest a meal') plus the destination and the approval gating, which separates it from sibling propose_* tools and from anything that writes logs. An agent knows immediately this creates a pending suggestion, not a record.

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?

Gives explicit when-to-use (a person who granted can_propose, checked via get_profile), when-not (nothing is logged here; logging happens later from the phone), and where to look next (list_meal_proposals for outcomes). It also prescribes idempotency-key discipline: a fresh key per suggestion, reuse only on retry of the same call.

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