Skip to main content
Glama
borgels

mcp-server-fatsecret

by borgels

Search Foods (FatSecret)

fatsecret_search_foods
Read-onlyIdempotent

Search FatSecret's public food database by keyword to obtain per-serving calories and macros for any food item.

Instructions

Search FatSecret's public food database by keyword. Each result's food_description carries per-serving calories and macros; use fatsecret_get_food for structured serving data. NOTE: on the free Basic tier this database is US-only — for Danish foods, look the item up in a Danish food-data source first, then log the closest match here with the serving quantity scaled so the macros line up.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYes
maxResultsNo
pageNumberNo
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent, and non-destructive behavior. The description adds useful context beyond annotations: each result's food_description carries calories/macros, and the database is US-only on the free tier. 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.

Conciseness5/5

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

Three sentences, each earning its place: purpose, result format/reference, and a critical limitation with workaround. Front-loaded and no filler.

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 a search tool with no output schema, the description explains the key return content (food_description with calories/macros) and a critical limitation. It is complete enough for an agent to select and invoke correctly.

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 0%, so the description must compensate. It explains 'query' via 'search by keyword', but does not mention maxResults or pageNumber. These are somewhat self-explanatory from names and constraints, so a score of 3 is appropriate.

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 clearly states it searches FatSecret's public food database by keyword, which is a specific verb+resource. It distinguishes from sibling tools like fatsecret_search_recipes (recipes vs food) and fatsecret_get_food (structured data vs search results).

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

Usage Guidelines5/5

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

Explicitly directs to use fatsecret_get_food for structured serving data, and provides a detailed NOTE about the US-only limitation on the free Basic tier with a workaround for Danish foods. This gives clear when-to-use and alternative 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/borgels/mcp-server-fatsecret'

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