Skip to main content
Glama
ruffood
by ruffood

filter_by_nutrient

Filter foods by nutrient ranges. Specify min and max values for nutrients like protein, fat, or energy to identify foods meeting your dietary targets.

Instructions

按营养素范围筛选食物,如查找高蛋白、低脂肪的食物

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
maxNo最大值(含)
minNo最小值(含)
sortNo排序方向,默认降序desc
limitNo返回数量上限,默认20
nutrientYes营养素字段名
Behavior2/5

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

With no annotations provided, the description must carry the full burden of behavioral disclosure. It only states the tool filters by nutrient range, without mentioning return format, pagination, sorting behavior, or any edge cases. This is minimal transparency beyond the tool's name.

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?

The description is a single, concise sentence in Chinese that front-loads the action ('filter foods by nutrient range') and includes a useful example. Every word contributes, with no redundant or filler content.

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?

The tool is simple and the schema covers parameters well, but there is no output schema or annotation to explain what the tool returns. The description doesn't clarify whether the result is a list of food names, full nutrition profiles, or something else, leaving an important gap for invocation.

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% coverage with detailed descriptions for every parameter (e.g., min/max limits, sort direction, nutrient enum). The description adds a brief example linking nutrients to min/max ranges, but this only slightly enhances the schema's already clear semantics, so a baseline 3 is warranted.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool filters foods by nutrient range, with a concrete example (high protein, low fat). The verb 'filter' and resource 'foods' are explicit, and the nutrient-range scope distinguishes it from sibling tools like search_food or get_nutrition.

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?

No explicit alternatives or exclusion criteria are mentioned, but the example ('find high protein, low fat foods') implies a use case for nutrient-based filtering. This gives some contextual guidance but does not explicitly distinguish when to use this tool over search_food or get_nutrition.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/ruffood/cn-food-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server