Skip to main content
Glama

delete_meal

DestructiveIdempotent

Permanently delete a meal entry. use: the user explicitly asks to remove or delete a logged meal.

FIND THE MEAL: id if known; else date (default today); add name only when several meals share that day. Irreversible: not exactly one match -> errors with the reason, deletes nothing; retry with id or a narrower name, never guess.

HYDRATION: any assistant hydration events linked to this meal are deleted by the database in the same food-row delete; issue no separate hydration delete.

CAFFEINE: caffeine sidecars linked to this meal are deleted by the database in the same food-row delete; call no separate caffeine delete tool.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "delete_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
idNoMeal ID, if known. See FIND THE MEAL.
dateNoYYYY-MM-DD; default today when id and date are both omitted. Finds the meal when id is omitted.
nameNoCase-insensitive substring of the food description, to pick between meals on the date. Only without id.

Output Schema

NameRequiredDescriptionDefault
resultYesHuman-readable result text returned by the tool.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / date / description
      Previous value: -"Date the meal was logged. Format: YYYY-MM-DD. Used with name to find the meal when id is omitted; defaults to today if id and date are both omitted."New value: +"YYYY-MM-DD; default today when id and date are both omitted. Finds the meal when id is omitted."
    • changedInput schema / properties / id / description
      Previous value: -"Meal ID, if already known. Alternative to date + name — see FIND THE MEAL above."New value: +"Meal ID, if known. See FIND THE MEAL."
    • changedInput schema / properties / name / description
      Previous value: -"Substring of the food description (case-insensitive) to disambiguate multiple meals on the same date. Only used when id is omitted."New value: +"Case-insensitive substring of the food description, to pick between meals on the date. Only without id."
  2. Changed4 schema fields changed
    • addedInput schema / properties / date
      Added value: +{
      +  "description": "Date the meal was logged. Format: YYYY-MM-DD. Used with name to find the meal when id is omitted; defaults to today if id and date are both omitted.",
      +  "type": "string"
      +}
    • changedInput schema / properties / id / description
      Previous value: -"Meal ID from list_meals. Required — do not proceed without it."New value: +"Meal ID, if already known. Alternative to date + name — see FIND THE MEAL above."
    • addedInput schema / properties / name
      Added value: +{
      +  "description": "Substring of the food description (case-insensitive) to disambiguate multiple meals on the same date. Only used when id is omitted.",
      +  "type": "string"
      +}
    • removedInput schema / required
      Removed value: -[
      -  "id"
      -]
  3. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint=true and readOnlyHint=false, yet the description adds substantial context beyond them: irreversibility, the all-or-nothing matching rule with "errors with the reason, deletes nothing," the explicit ban on guessing, and cascade semantics for hydration and caffeine rows. The cascade notes are especially valuable because they prevent redundant tool calls the agent would otherwise make.

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 definition is front-loaded with the action, then organized into labeled FIND THE MEAL, HYDRATION, and CAFFEINE blocks that are easy to scan. It runs slightly long for a three-parameter tool, but each labeled section carries operational information that would otherwise be lost.

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 destructive, zero-required-parameter tool with an output schema and full annotation coverage, the description covers the risky surface: matching ambiguity, failure behavior, and side-effect cascades. Nothing an agent needs to invoke it safely is missing.

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 selection logic beyond the schema: prefer id, fall back to date defaulting to today, and add name only to disambiguate multiple meals on the same day. The name parameter's "only without id" constraint is reinforced in prose, which clarifies precedence the schema alone leaves implicit.

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?

"Permanently delete a meal entry" states a specific verb and resource with the permanence qualifier front-loaded, which separates it cleanly from update_meal and log_meal siblings. An agent can tell what this tool does without opening the schema.

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?

The "use: the user explicitly asks to remove or delete a logged meal" line gives a clear trigger condition, and the FIND THE MEAL block describes the lookup strategy. It does not explicitly name the alternative path (e.g., use update_meal when the user wants to change rather than remove), so guidance is strong but not exhaustive.

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.