Skip to main content
Glama
Yurzs

fatsecret-mcp-server

by Yurzs

Log Food to Diary

fatsecret_create_food_entry

Log a food and serving size to a meal on a specific date in your FatSecret food diary, calculating nutrition totals from the entry.

Instructions

Create a food diary entry for the user. Logs a specific food + serving to a meal on a given date.

You need food_id and serving_id from fatsecret_search_food / fatsecret_get_food.

Args:

  • food_id: FatSecret food ID

  • food_entry_name: Display name (e.g., "Chicken Breast")

  • serving_id: The serving size ID

  • number_of_units: How many of that serving (e.g., 2.5 for "2.5 cups")

  • meal: One of "breakfast", "lunch", "dinner", "other"

  • date: Date as YYYY-MM-DD string (default: today)

Returns: Created food entry with nutrition totals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
food_idYesFatSecret food ID
food_entry_nameYesDisplay name for the entry
serving_idYesServing size ID from food details
number_of_unitsYesNumber of servings
mealYesMeal type
dateNoDate YYYY-MM-DD (default: today)
Behavior4/5

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

Annotations indicate non-destructive, non-read-only. Description adds that it returns nutrition totals, which is beyond annotations. No contradiction.

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?

Structured with short summary, then dependency, then arg list. Slightly lengthy but no unnecessary information.

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?

Despite no output schema, description mentions return value ('nutrition totals'). Covers prerequisites, parameter meanings, and behavioral intent comprehensively.

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?

All parameters have schema descriptions (100% coverage). Description adds context: e.g., number_of_units example, date default, and dependency on other tool results.

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?

Description clearly states 'Create a food diary entry' and specifies logging food+serving to a meal on a date. It distinguishes from siblings by mentioning prerequisites (fatsecret_search_food/get_food).

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?

Explicitly states prerequisite IDs from other tools. Does not explicitly list when not to use, but sibling tools for editing/deleting provide implicit guidance.

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

Install Server

Other Tools

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/Yurzs/fatsecret-mcp-server'

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