Skip to main content
Glama

edit_meal

Correct a logged meal by replacing its items or changing meal type, time, or notes; unspecified fields remain unchanged and updated day totals are returned.

Instructions

Correct a logged meal: replace its items or change its type, time, or notes. Unspecified fields stay as they are. Returns the updated meal and its day's totals.

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": {
      "meal_id": "<meal_id>"
    },
    "name": "edit_meal"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsNoReplaces ALL items; include the ones to keep
notesNo
meal_idYes
eaten_atNoISO 8601. No offset means local time. Omit for now.
meal_typeNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden, and it does disclose the most important trait: unspecified fields are preserved (patch semantics), and items replacement is total. It does not say whether replaced items are recoverable, what validation failures look like, or what happens if meal_id doesn't exist — meaningful gaps for an unannotated mutation tool.

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?

Three short sentences, front-loaded with the action and mutation scope, with no filler. Nothing is redundant beyond the brief return-value sentence, which the output schema already covers.

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?

Return values are covered by the output schema, and the description still confirms what comes back (updated meal plus day totals). For a five-parameter mutation with no annotations, the remaining holes are permission/error behavior and meal_id guidance, which are minor but real.

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 description coverage is only 40%, so the description needs to compensate, and it partially does by naming four of the five parameters (items, type, time, notes) and stating that omitted fields stay unchanged. However, meal_id is never mentioned, and eaten_at's ISO/local-time semantics are left entirely to the schema, so meaning is added but not enough for the coverage gap.

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 states a specific verb ('Correct') and resource ('a logged meal') and enumerates the mutable surfaces: items, type, time, notes. The phrase 'logged meal' implicitly separates it from log_meal, but no sibling is named explicitly, so differentiation is inferred rather than stated.

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?

'Correct a logged meal' implies this is for amending an existing entry, which indirectly steers new entries to log_meal, but the description never states that alternative or any exclusion. There is no guidance on when to replace items versus when a different tool (e.g. delete_entry) is the right call.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.