Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

by fliptheweb

search_foods

Read-onlyIdempotent

Query the FatSecret food database by name or keyword to retrieve food names, descriptions, and basic nutrition information for diet tracking and meal planning.

Instructions

Search the FatSecret food database. Returns food names, descriptions, and basic nutrition info. On the Basic plan only search_expression, page_number and max_results (max 50) are used.

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

Input Schema

NameRequiredDescriptionDefault
regionNo
languageNo
food_typeNo
max_resultsNo
page_numberNo
search_expressionYesSearch query for foods
include_food_imagesNo
flag_default_servingNo
include_sub_categoriesNo
include_food_attributesNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.0.9

TDQS

B3.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, openWorldHint, and idempotentHint, so safety is covered. The description adds two genuinely useful behavioral facts not in the annotations: the shape of the return payload and the Basic-plan limitation that only three parameters take effect. It says nothing about pagination behavior, result ordering, or total-count semantics, which matter for a search endpoint.

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?

Three short sentences, front-loaded with purpose, then return values, then the plan constraint. No filler or repetition. It is arguably slightly too terse given the ten-parameter surface, but nothing present is wasted.

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?

For a search tool with annotations covering read-only/idempotent semantics and a description covering return fields, the core picture is complete. Gaps remain for a ten-parameter endpoint with 10% schema coverage: pagination semantics, what page_number counts, whether results are capped total or per page, and the meaning of food_type are all unaddressed.

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 10% (only search_expression is documented), so the description must carry the load. It adds the concrete max_results ceiling of 50 and signals that the other seven parameters (region, language, food_type, image/serving/attribute flags) are ignored on Basic plan, which usefully tells the agent not to bother. However, it never explains what those parameters would mean or their accepted values, so seven of ten remain semantically dark.

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 ('Search the FatSecret food database') plus what comes back ('food names, descriptions, and basic nutrition info'), so the agent knows exactly what the tool does. It does not distinguish itself from nearby siblings such as autocomplete_foods, get_food, or find_food_by_barcode, which all operate on the same food corpus.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance. With roughly 40 siblings including autocomplete_foods (typeahead) and find_food_by_barcode (exact lookup), the agent is left to infer that this is the free-text/partial-match search path. The 'Basic plan' sentence is a capability constraint, not routing guidance.

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