Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

search_foods

Search the FatSecret food database by name or keyword to find food IDs and basic nutrition details (calories, protein, carbs, fat) for use with get_food.

Instructions

Search the FatSecret food database by name or keyword. Returns a paginated list of foods with basic nutrition info (calories, protein, carbs, fat) per serving. Use this to find food IDs for use with get_food.

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": {
      "query": "<query>"
    },
    "name": "search_foods"
  }
}

Input Schema

NameRequiredDescriptionDefault
queryYesFood name or keyword to search for (e.g. 'banana', 'chicken breast')
regionNoISO 3166-1 alpha-2 region code (e.g. 'US', 'GB')
food_typeNoFilter by food typeall
max_resultsNoNumber of results to return (1–50, default 10)
page_numberNoZero-based page offset for pagination (default 0)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It usefully discloses that results are paginated and include basic nutrition per serving, but it does not mention ordering, empty-result behavior, authentication, or rate limits, leaving meaningful gaps for a tool with no structured behavior hints.

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 tight sentences with the core purpose, return shape, and intended use front-loaded. No sentence is wasted and there is no repetition.

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?

Given the full schema coverage and absence of an output schema, the description adequately explains what the tool returns and how it relates to get_food. It could be slightly more complete by covering result ordering or empty-result behavior, but nothing essential for correct invocation is missing.

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 all five parameters are already well documented in the schema. The description only reinforces that searching is by name or keyword and that results are paginated, adding little beyond the structured parameter descriptions.

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 states a specific verb and resource (search the FatSecret food database by name or keyword) and distinguishes the result set from get_food by saying this is for finding food IDs. An agent can identify its role without opening the schema.

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?

It explicitly says to use this tool to find food IDs for get_food, giving clear usage context relative to a sibling. It does not state when not to use it or mention alternatives like search_recipes, so it falls short of full routing guidance.

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