Skip to main content
Glama
FatSecret MCP Server

FatSecret MCP Server

by fcoury

search_foods

Search the FatSecret database by keyword to find foods and return paginated results for nutrition tracking.

Instructions

Search for foods in the FatSecret database

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

Input Schema

NameRequiredDescriptionDefault
maxResultsNoMaximum results per page (default: 20)
pageNumberNoPage number for results (default: 0)
searchExpressionYesSearch term for foods (e.g., "chicken breast", "apple")

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.9/5.0
Behavior2/5

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

With no annotations supplied, the description carries the full behavioral burden but only mentions the database name. It does not disclose authentication requirements (FatSecret is an external API), rate limits, whether results are paginated, or what kind of information is returned. The schema exposes pagination parameters, but the description itself adds no behavioral context.

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 a single efficient sentence with no wasted words and the resource is front-loaded. It is appropriately sized, though its brevity contributes to the gaps in guidance and behavioral detail.

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 low-complexity search tool whose parameters are fully documented in the schema, the description is minimally adequate. However, with no annotations and no output schema, it should clarify what the tool returns (such as food IDs or names) and whether authentication is required, so an agent can invoke it correctly without guessing.

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?

The input schema has 100% description coverage for all three parameters, so the schema already explains searchExpression, maxResults, and pageNumber. The description adds no additional meaning beyond what the schema provides, which is the expected baseline when schema coverage is complete.

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?

The description states a specific verb (Search) and resource (foods) and identifies the FatSecret database as the source, which naturally distinguishes it from sibling search_recipes and get_food. It lacks an explicit sibling comparison, but the verb+resource pairing is clear enough for an agent to understand its function.

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?

The description provides no when-to-use guidance, no alternatives (e.g., get_food for retrieving a known food), and no conditions or exclusions. It simply says to search, leaving the agent to infer when this tool is appropriate.

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