Skip to main content
Glama

Copy Meal

copy_meal
Idempotent

Copy a logged meal to another date or meal, such as yesterday's lunch into today's dinner. Use when the user asks to copy or repeat a meal. The result lists what was added and any insights the app noted.

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": {
      "source_date": "<source_date>",
      "source_meal": "<source_meal>",
      "target_date": "<target_date>",
      "target_meal": "<target_meal>",
      "request_id": "<request_id>"
    },
    "name": "copy_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
request_idYesA new unique string for this action. Reuse it only when retrying the same action.
source_dateYesThe day to copy from, YYYY-MM-DD.
source_mealYes
target_dateYesThe day to copy to, YYYY-MM-DD.
target_mealYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare the safety profile (non-read-only, non-destructive, idempotent, closed-world), so the bar is lower; the description still earns credit for disclosing the return content — "lists what was added and any insights the app noted" — which matters because there is no output schema. The notable gap is that it never says whether entries are appended to an existing target meal or replace it.

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?

Three short sentences, each doing distinct work: what it does, when to use it, and what comes back. The action and its example are front-loaded, and nothing is padded or repeated from the annotations.

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?

For a five-required-parameter mutation with no output schema, the description covers purpose, trigger, and result shape, and the annotations cover safety and idempotency. The one thing an agent could get wrong without more text is conflict behavior when the target meal already contains entries.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 60%, and the description's phrase "to another date or meal" usefully signals that source and target can differ on date, meal, or both — meaning beyond the raw schema. That said, the required request_id, whose idempotency-reuse rule is materially important for retries, is never mentioned, and the copy semantics for partially populated targets remain unspecified.

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?

States a specific verb and resource ("Copy a logged meal") and anchors it with a concrete example, "yesterday's lunch into today's dinner," which pins down what a "meal" means in this system. It stops short of naming a contrasting sibling (e.g., log_favorite_meal or log_food), so an agent must infer the boundary from the phrase "logged meal" rather than being told explicitly.

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?

"Use when the user asks to copy or repeat a meal" gives a clear trigger condition and even supplies a natural phrasing ("repeat") that maps to the tool. There are no stated exclusions, however, such as whether this applies to favorite meals or recipes, which are handled by siblings in the same namespace.

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