Skip to main content
Glama
fliptheweb

FatSecret MCP Server

by fliptheweb

find_food_by_barcode

Read-onlyIdempotent

Look up detailed food information by scanning a GTIN-13 barcode, including UPC-A, EAN-13, and EAN-8 formats. Get nutritional data and food attributes instantly.

Instructions

Find food by barcode (GTIN-13). UPC-A, EAN-13 and EAN-8 supported. Premier exclusive.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
regionNo
barcodeYesGTIN-13 barcode number
languageNo
include_food_imagesNo
flag_default_servingNo
include_sub_categoriesNo
include_food_attributesNo
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and openWorldHint=true, so the core safety profile is clear. The description adds value by stating 'Premier exclusive' (a behavioral constraint about requiring a specific subscription or access level) which goes beyond what annotations provide. No contradictions with annotations.

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?

The description is two sentences, each providing distinct information: the core action and the exclusivity constraint. It is front-loaded and efficient, though it could be slightly more structured with separators for different types of information.

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

Completeness3/5

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

Given the tool has 7 parameters (only 1 required), no output schema, and siblings like search_foods and get_food, the description tells the agent enough to select the tool but not enough to invoke it correctly. Missing details include what the return data looks like, how region/language affect results, and what happens for invalid barcodes. The annotations cover safety, but invocation guidance is incomplete.

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 low at 14%, but the description adds no detail about the 6 optional parameters (region, language, include_food_images, etc.) beyond what the schema's property names imply. The description only elaborates on the single required parameter (barcode: 'GTIN-13 barcode number'), which is already described in the schema. Baseline 3 is appropriate since the description doesn't compensate for the low coverage.

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 the tool's verb ('Find') and resource ('food by barcode'), specifies the exact barcode formats supported (GTIN-13, UPC-A, EAN-13, EAN-8), and includes a distinguishing phrase 'Premier exclusive' which differentiates it from sibling tools like search_foods or 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 Guidelines3/5

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

The description implies usage when a user has a barcode (GTIN-13 format) but provides no explicit guidance on when to use this tool versus alternatives like search_foods or get_food. There are no when-not-to-use instructions or mentions of prerequisites like barcode length validation.

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

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