Skip to main content
Glama

Find Foods High In Nutrient

find_foods_high_in_nutrient
Read-only

Foods from the catalog richest in a nutrient, for closing a gap. Uses the user's own diet unless diet is given. sort: "serving" (default, a usual portion), "100g" or "100kcal". Values are in the nutrient's unit.

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": {
      "code": "<code>"
    },
    "name": "find_foods_high_in_nutrient"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesNutrient code from list_components, such as FE for iron.
dietNoDefaults to the user's own diet.
sortNoWhat to rank by.serving
limitNoHow many foods to return.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so safety and catalog-scope are covered structurally. The description adds genuinely useful behavior: it silently falls back to the user's own diet, and returned values are expressed in the nutrient's unit. It says nothing about result shape (food name, amount, score) or pagination beyond limit.

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 short sentences, front-loaded with the core ranking behavior, then the personalization default, then sort semantics and units. No sentence is redundant with the title or schema.

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?

No output schema exists, so the description carries some burden of return-value description; stating 'values are in the nutrient's unit' partially does this, but the composition of each result (food identity plus amount) is left unstated. The use case, diet fallback, and sort semantics are otherwise complete for a four-parameter read tool.

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, and the description earns an increment by explaining that 'serving' means a usual portion (versus the schema's vague 'What to rank by') and that output values carry the nutrient's unit. It does not clarify `code` sourcing, which list_components already documents in the schema.

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+resource+ranking semantics: 'Foods from the catalog richest in a nutrient'. The phrase 'for closing a gap' positions it against gap-reporting siblings implicitly, but no sibling is named, so differentiation is inferred rather than stated.

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?

'for closing a gap' gives a clear use context and the diet-default behavior tells the agent it need not supply a diet. There is no explicit when-not guidance or named alternative (e.g., when a plain food search is better), leaving that to inference.

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