cn-food-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| list_nutrientsA | 列出所有可查询的营养素字段名、中英文名称和单位 |
| search_foodA | 按名称搜索中国食物,返回匹配的食物列表(含ID、名称、主要营养素摘要) |
| get_nutritionA | 获取某个食物的完整营养成分(每100g),需提供食物ID(通过 search_food 获取) |
| compare_foodsA | 对比多个食物的营养成分(每100g),提供2-5个食物ID |
| filter_by_nutrientA | 按营养素范围筛选食物,如查找高蛋白、低脂肪的食物 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
TDQS
Scored across 5 tools
Each tool has a clearly distinct role: listing nutrient metadata, searching by name, retrieving full details, comparing multiple foods, and filtering by nutrient criteria. There is no meaningful overlap between them.
All tool names follow a consistent snake_case verb-first pattern (list_, search_, get_, compare_, filter_by_). Although filter_by_nutrient uses a preposition, it remains predictable and aligned with the others.
With 5 tools, the server is well-scoped for a food nutrition lookup domain. Each tool addresses a distinct user need without unnecessary redundancy.
The tool surface covers the full read-only workflow: discovering available nutrients, finding foods by name or nutrient criteria, getting detailed data, and comparing foods. There are no obvious dead ends or missing operations for the stated purpose.