Skip to main content
Glama

Log Favorite Meal

log_favorite_meal
Idempotent

Add one of the user's favorite meals to their diary. Use when the user asks to log a favorite 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": {
      "favorite_meal_id": "<favorite_meal_id>",
      "date": "<date>",
      "meal": "<meal>",
      "request_id": "<request_id>"
    },
    "name": "log_favorite_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateYesThe day, YYYY-MM-DD.
mealYes
request_idYesA new unique string for this action. Reuse it only when retrying the same action.
favorite_meal_idYesThe id from list_favorite_meals.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.7/5.0
Behavior4/5

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

The annotations already establish the safety profile: a non-destructive, idempotent write with no open-world access. The description adds something the annotations cannot: the result lists what was added and any insights the app noted, which matters because there is no output schema. It does not cover failure modes, such as an unknown id or a date that is already logged, but that is a minor gap given the annotation coverage.

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 action is front-loaded in the first sentence, and the result behavior is stated compactly in the third. The middle sentence is close to redundant with the name, but it is not costly. The description is appropriately sized for a simple four-parameter write tool.

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 non-destructive idempotent write, the definition covers the action, the trigger, and the shape of the result, and annotations handle the safety profile. What is missing is any note on behavior when the same meal is logged twice or when the id is invalid, though idempotentHint and the request_id guidance from the schema partially cover the retry case.

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 75%, and the schema itself documents date, request_id, and the id's origin in list_favorite_meals. The description adds nothing beyond that, and the one undocumented parameter (meal) is self-explanatory through its enum. The baseline of 3 is appropriate when the schema carries the parameter detail.

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 names a specific verb and resource: it adds a favorite meal to the user's diary. That is clearly distinct from a tool that would create a favorite meal, and the id comes from list_favorite_meals. It stops short of naming any sibling explicitly, so an agent must infer the boundary with log_food or copy_meal.

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

Usage Guidelines3/5

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

The description does say when to use it ("Use when the user asks to log a favorite meal"), which is a real trigger. But this trigger essentially restates the tool name, so it adds no routing information. It never says when not to use it, or how this differs from log_food, copy_meal, or list_recent_meals.

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