Skip to main content
Glama

Search the nutrition ingredient library

search_label_ingredients
Read-onlyIdempotent

Search the SKS nutrition ingredient library (about 3,600 records: USDA SR Legacy plus sourced calculations) for an ingredient's nutrients per 100 g, label declaration name and allergens. English or Chinese names. Each result says where its data comes from and which nutrients are missing.

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_label_ingredients"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesIngredient, e.g. 'wheat flour', 'cane sugar', 'whole milk powder'.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds context annotations cannot: the records are multi-source, and each result self-reports its data source and missing nutrients — critical for an agent deciding whether to trust a value. It does not mention rate limits or how to page past the result cap.

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 sentences, front-loaded with the resource and scope, then the return payload, then the caveat about provenance and missing nutrients. No filler, no restatement of the title or the annotation flags.

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?

For a simple two-parameter read tool with no output schema, the description covers what comes back well enough that a return schema is not needed. The one real gap is that max limit is 15 with no stated continuation strategy, leaving the agent unsure what to do when a name matches many records.

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 coverage is 50%: query is documented but limit is not. The description compensates partly by telling the agent names may be English or Chinese, which the schema does not say, and by giving example-style query intent (ingredient lookup). It adds nothing about limit's role in capping results, so the uncovered parameter stays unexplained.

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 and resource and goes further than the title: it states the corpus size (~3,600 records), the provenance (USDA SR Legacy plus sourced calculations), and the exact payload (nutrients per 100 g, label declaration name, allergens). It stops short of distinguishing itself from siblings such as get_ingredient_profile or calculate_nutrition_label, so an agent still has to infer that boundary.

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 implied rather than stated: the agent can infer this is a lookup for nutrient data per 100 g, and the 'English or Chinese names' note is a useful query convention. There is no explicit when-to-use/when-not and no named alternative for cases like computing a full label or checking a supplier.

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