Skip to main content
Glama
delize

MyFitnessPal MCP Server

by delize

mfp_update_food_entry

Update an existing MyFitnessPal diary entry by changing its meal, quantity, serving size, or date using the entry ID from a diary lookup. Get confirmation if the entry ID changes after editing.

Instructions

Update an existing MyFitnessPal diary entry.

Supports changing the meal, quantity, serving size, and date for an entry previously returned by mfp_get_diary (use response_format='json' to get the entry_id). MyFitnessPal can rewrite an entry during edit and return a replacement row, so the response includes current_entry_id and entry_id_changed to keep callers tracking the right diary row.

Args: params: UpdateFoodEntryInput containing: - entry_id (str): Diary entry ID from mfp_get_diary JSON output - date (str, optional): Date in YYYY-MM-DD format, defaults to today - meal (str, optional): New meal name - quantity (float, optional): New number of servings - unit (str, optional): New serving-size label - weight_id (str, optional): Raw MFP serving-size option ID

Returns: str: Confirmation with the current entry id and whether it changed

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
paramsYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the annotations, it discloses a non-obvious behavior: MyFitnessPal may rewrite an entry during edit and return a replacement row, with current_entry_id and entry_id_changed to track the right row. This directly prepares the agent for a shifted identity, which is valuable for a 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description front-loads the core purpose, then adds the important rewrite caveat, followed by a scannable bullet list of parameters and a short Returns line. Every sentence earns its place and the layout supports quick parsing.

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 an update operation with a potential entry-id change, the description provides the necessary source-of-truth workflow, all editable fields, and return semantics. The agent has enough context to locate the entry_id, make the desired change, and handle the possible replacement row.

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?

The description covers all six parameters in its Args section and adds meaning: entry_id comes from mfp_get_diary JSON output, date defaults to today, unit is a serving-size label, and weight_id is a raw MFP option ID. With schema coverage reported at 0%, it carries much of the semantic load, though it omits some nuances like weight_id overriding unit and constraints on quantity.

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?

The description opens with a precise verb+resource phrase: 'Update an existing MyFitnessPal diary entry,' and enumerates what can be changed (meal, quantity, serving size, date). It also names mfp_get_diary as the source of entry IDs, which helps distinguish it from add/create/delete siblings.

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?

It clearly states the prerequisite—entries previously returned by mfp_get_diary—and tells callers to use response_format='json' to obtain the required entry_id. It gives strong contextual guidance for when this tool applies, though it does not explicitly list exclusions or alternative tools.

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

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/delize/myfitness-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server