Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

edit_food_entry

Modify an existing food diary entry's serving size, meal, or unit count to correct logged nutrition.

Instructions

Edit an existing food diary entry (change serving size, meal, or number of units). Use get_food_entries to find the food_entry_id. Requires Diary Read/Write API access.

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": {
      "food_entry_id": "<food_entry_id>",
      "serving_id": "<serving_id>",
      "number_of_units": "<number_of_units>"
    },
    "name": "edit_food_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
mealNoNew meal category
serving_idYesNew serving size ID (from get_food)
food_entry_idYesID of the diary entry to edit (from get_food_entries)
food_entry_nameNoNew custom display name (optional)
number_of_unitsYesNew number of servings consumed

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.7/5.0
Behavior3/5

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

No annotations are provided, so the description carries the full burden. It correctly signals a mutation and discloses the authorization requirement plus the ID-discovery step, which is real added value, but it omits whether unspecified fields are preserved and whether the entry is returned or mutated in place.

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, front-loaded with the operation, then the discovery prerequisite, then the access requirement. Nothing is redundant or padded.

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

Completeness3/5

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

For an unannotated five-parameter mutation with no output schema, the definition covers purpose, prerequisite lookup, and auth, but leaves open the mutation's effect on unmentioned fields and what a successful call yields. Adequate, but not sufficient on its own for a write operation.

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 100%, so all five parameters are already documented, including the enum and the 'from get_food'/'from get_food_entries' provenance notes. The description mirrors that lineage but never mentions the optional food_entry_name parameter, so it adds little beyond the schema.

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 ('Edit an existing food diary entry') and enumerates the editable dimensions (serving size, meal, number of units). It implicitly separates itself from add_food_entry/delete_food_entry via 'existing', but never names or contrasts an alternative tool 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?

Gives a concrete prerequisite workflow: call get_food_entries first to obtain the food_entry_id, and notes the required Diary Read/Write API access. No when-not guidance (e.g., to rename without changing servings, or for entries that no longer exist), so it stops short of full routing guidance.

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