Skip to main content
Glama

Nutrition & Calories: Search foods

nutrition_searchFoods
Read-onlyIdempotent

Search foods

About 7,800 foods with calories, protein, fat, carbohydrate, sugars, fibre and salt per 100 g. Search with q in Turkish or English (Turkish letters optional: domates, tomato, tavuk gogsu, beyaz peynir); the everyday food comes first (raw before prepared). Narrow with category. Use when the user asks how many calories or how much protein, fat or carbohydrate a food has, or to find a food's id for /nutrition/foods/{id} or /nutrition/calculate.

GET /v1/nutrition/foods on Nutrition & Calories (SBX-BESIN). Costs 1 credit per call.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "nutrition_searchFoods"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoWords to find at the start of words of the Turkish or English names, Turkish letters optional.
limitNoItems per page, 1–200.
cursorNoThe `next_cursor` of the previous page, with the same filters.
categoryNoA category id from /nutrition/categories, e.g. vegetables.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, openWorldHint and destructiveHint=false, so the description only needs to add context — which it does: dataset size, nutrient basis per 100 g, ranking rule (everyday food first, raw before prepared), language behavior, and a 1-credit-per-call cost. It doesn't describe pagination behavior or what the response envelope contains, which keeps it short of a 5.

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 first sentence states the resource and dataset scope, then query mechanics, then use cases, then cost — a sensible front-loaded order with no filler. The single dense paragraph with parenthetical examples and an inline API route is slightly packed, but every clause carries information.

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?

With no output schema, the description usefully enumerates the nutrient fields returned and their per-100 g basis, plus ranking and credit cost, which covers what an agent needs to call and interpret it. Nothing critical is missing, though the response pagination shape 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.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3, but the description actively adds meaning: `q` matches word starts in Turkish or English with Turkish diacritics optional (with worked examples), and `category` is narrowed using ids from the categories endpoint. That exceeds what the schema says without fully explaining cursor semantics beyond the schema's own text.

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 names a specific verb+resource (search a ~7,800-item food database with calories and macros per 100 g) and states what data comes back and how results are ranked. It is clearly a search tool rather than a lookup-by-id or category lister, though it doesn't explicitly name the sibling tools to distinguish itself from.

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?

"Use when the user asks how many calories or how much protein, fat or carbohydrate a food has, or to find a food's id for /nutrition/foods/{id} or /nutrition/calculate" gives concrete when-to-use triggers and routes to the follow-on endpoints. There is no explicit when-not or statement of what to use for browsable category listings.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources