Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

add_food_entry

Log a food serving to the user's FatSecret diary by providing food ID, serving ID, number of units, and meal; optionally set the entry date.

Instructions

Add a food entry to the user's food diary. Use search_foods to find food_id and get_food to find the correct serving_id. Requires OAuth 1.0 user credentials AND Diary Read/Write API access (contact FatSecret support to enable).

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_id": "<food_id>",
      "serving_id": "<serving_id>",
      "number_of_units": "<number_of_units>",
      "meal": "<meal>"
    },
    "name": "add_food_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate for the entry (YYYY-MM-DD). Defaults to today.
mealYesWhich meal to log this food under
food_idYesFatSecret food ID (from search_foods)
serving_idYesServing size ID (from get_food). Use the serving_id field of the desired serving.
food_entry_nameNoCustom name for the diary entry (optional, defaults to food name)
number_of_unitsYesNumber of servings consumed (e.g. 1 or 2.5)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does the most valuable part: it discloses that OAuth 1.0 user credentials AND Diary Read/Write API access are required, and that the API access must be enabled by contacting FatSecret support — a non-obvious gate that would otherwise produce confusing failures. It does not describe what the call returns (e.g. a new entry identifier) or how duplicate entries are handled, so it is strong but not complete.

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, the core action front-loaded, then prerequisites, then the access gate — no filler. The final sentence is dense (two credential types plus a support-contact requirement) but every clause is load-bearing information.

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 6-parameter mutation tool with no annotations and no output schema, the definition covers the action, the input-sourcing path, and the access requirements, which is most of what an agent needs to invoke it. The remaining gap is outcome behavior — what the response contains and whether re-adding the same food/meal produces a duplicate.

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 100% and the schema already documents every parameter, including the enum for meal and the provenance hints for food_id and serving_id. The description's mention of search_foods/get_food largely restates what the schema fields already say, so baseline 3 applies.

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?

States a specific verb and resource ('Add a food entry to the user's food diary') and immediately separates the write action from the read/lookup siblings (search_foods, get_food) needed to supply inputs. An agent can distinguish this from edit_food_entry or delete_food_entry without opening any 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?

Gives explicit prerequisite routing: use search_foods for food_id and get_food for serving_id, which tells the agent what must happen before calling. It stops short of stating when NOT to use this (e.g. use edit_food_entry to correct an existing entry), so it is clear context rather than full when/when-not guidance.

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