Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

get_food

Fetch detailed nutrition data for a specific FatSecret food ID, including all serving sizes and complete macro- and micronutrient values.

Instructions

Get detailed nutrition information for a specific food by its FatSecret food ID. Returns all serving sizes and complete macronutrient + micronutrient data (calories, protein, carbs, fat, fiber, sodium, vitamins, etc.).

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>"
    },
    "name": "get_food"
  }
}

Input Schema

NameRequiredDescriptionDefault
food_idYesFatSecret food ID (obtained from search_foods)
flag_default_servingNoHighlight the default/recommended serving size

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations and no output schema, the description carries the full burden, and it does meaningful work: it discloses that all serving sizes are returned and enumerates the nutrient categories, which tells an agent the payload is large and complete. It stops short of stating error behavior for invalid IDs or any rate-limit/caching traits.

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?

Two sentences, zero filler, with the identity of the tool front-loaded and the return payload summarized second. Nothing is repeated from the schema.

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?

The nutrient payload is rich, and since no output schema exists, the description's enumeration of returned fields is what makes the tool callable with correct expectations. The only gap is that the optional flag parameter's effect is left entirely to the schema.

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 both parameters are already documented, including that food_id comes from search_foods. The description adds nothing about the optional 'flag_default_serving' parameter, and only reinforces rather than extends the food_id meaning — baseline 3 applies.

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

Purpose4/5

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

States a specific verb and resource: 'Get detailed nutrition information for a specific food by its FatSecret food ID.' An agent can tell this is a lookup-by-ID tool, distinct from search tools, though the description itself never names a sibling — that differentiation only surfaces in the schema's parenthetical about search_foods.

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?

Usage is only implied: the required 'food_id' plus the schema note that it comes from search_foods suggests you must search first, but the description never says so, never says when to prefer this over get_daily_nutrition, and offers no exclusions or prerequisites.

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