Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

by fcoury

add_food_entry

Log a food item and serving quantity to a specific meal in the user's FatSecret diary, optionally setting the date, to track daily nutrition intake.

Instructions

Add a food entry to the user's diary

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": {
      "foodId": "<foodId>",
      "servingId": "<servingId>",
      "quantity": "<quantity>",
      "mealType": "<mealType>"
    },
    "name": "add_food_entry"
  }
}

Input Schema

NameRequiredDescriptionDefault
dateNoDate in YYYY-MM-DD format (default: today)
foodIdYesThe FatSecret food ID
mealTypeYesMeal type (breakfast, lunch, dinner, snack)
quantityYesQuantity of the serving
servingIdYesThe serving ID for the food

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full behavioral burden for a mutation tool. It says nothing about authentication requirements, whether the entry is immediately persisted, duplicate handling, or whether the date defaults to today, all of which matter for a write operation.

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?

A single short sentence with no filler and the action front-loaded. It is efficient, though the brevity reflects thin content rather than tight editing of rich content.

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

Completeness2/5

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

For a 5-parameter write tool with no annotations and no output schema, the description should carry auth/permission context, the provenance of foodId/servingId, and some notion of what a successful call returns or mutates. None of that is present, leaving key gaps for a destructive-style 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 description coverage is 100%, so every parameter (foodId, servingId, quantity, mealType, date) is already documented, including the enum values and the today default. The description adds no meaning beyond the schema, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The sentence identifies a verb (add) and resource (food entry) plus a scope ('the user's diary'), which is slightly more than the name alone. But it is close to a restatement of 'add_food_entry' and offers no differentiation from siblings such as get_user_food_entries or search_foods/food lookup tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no indication of when to use this versus alternatives, no mention that a foodId must first be obtained via search_foods or get_food, and no note on prerequisites such as being authenticated (contrast check_auth_status/complete_oauth_flow siblings). An agent must infer all of this.

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