Skip to main content
Glama
fastmcp-me

ANSES Ciqual MCP Server

by fastmcp-me

query

Search the ANSES Ciqual French food database with SQL queries to retrieve nutritional values per 100g, including calories, macros, vitamins, and minerals.

Instructions

Execute SQL query on ANSES Ciqual French food composition database.

⚠️ EFFICIENCY: Follow this 2-step workflow to minimize queries!

STEP 1 - SEARCH (one query): SELECT alim_code, alim_nom_fr FROM foods_fts WHERE foods_fts MATCH 'steak OR boeuf'; Note: FTS uses OR between words. For "steak sauce poivre", search "steak" first.

STEP 2 - GET ALL NUTRIENTS (one query with JOIN): SELECT f.alim_nom_fr, n.const_nom_fr, c.teneur, n.unit FROM foods f JOIN composition c ON f.alim_code = c.alim_code JOIN nutrients n ON c.const_code = n.const_code WHERE f.alim_code = ;

🛑 STOP after finding a matching food! Don't keep searching with different terms.

COMPOUND DISHES (steak + sauce):

  • CIQUAL has individual ingredients, not full recipes

  • Search each component: "steak" then "sauce poivre"

  • Sum the calories (typical portions: meat 150g, sauce 30g)

QUICK CALORIE LOOKUP (const_code 328 = kcal/100g): SELECT f.alim_nom_fr, c.teneur as kcal_100g FROM foods f JOIN composition c ON f.alim_code = c.alim_code WHERE f.alim_code = AND c.const_code = 328;

KEY NUTRIENT CODES: Energy: 328 (kcal), 327 (kJ) Macros: 25000 (protein), 31000 (carbs), 40000 (fat), 34100 (fiber), 32000 (sugars) Minerals: 10110 (sodium), 10200 (calcium), 10260 (iron), 10190 (potassium), 10120 (magnesium) Vitamins: 55100 (vit C), 52100 (vit D), 56600 (vit B12), 53100 (vit E), 56700 (folates)

SCHEMA:

  • foods: alim_code (PK), alim_nom_fr, alim_nom_eng, alim_grp_code

  • nutrients: const_code (PK), const_nom_fr, const_nom_eng, unit

  • composition: alim_code, const_code, teneur (value per 100g), code_confiance

  • food_groups: grp_code, grp_nom_fr, grp_nom_eng

  • foods_fts: FTS5 virtual table for full-text search (alim_code, alim_nom_fr, alim_nom_eng)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
sqlYes

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior4/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It explains FTS behavior (OR between words), how compound dishes are handled (not available as recipes), and includes a stop condition to avoid excessive searching. However, it does not explicitly state whether the tool is read-only or how errors are handled, but the read-only nature is strongly implied by the focus on SELECT queries.

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 description is lengthy but well-structured with clear headings, emojis, and code blocks. Every section provides practical value—workflow steps, nutrient codes, schema documentation. While not minimal, the length is justified by the complexity of the domain; however, a few lines could be condensed without losing essential information.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

The description is comprehensive for a SQL query tool: it provides the database schema, key nutrient codes, example queries, and guidance on FTS behavior and compound dishes. With an output schema present, the description does not need to explain return values, but it still gives enough context to use the tool effectively without prior knowledge.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

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

Schema description coverage is 0%, with only the 'sql' parameter defined as a string. The description compensates by providing a complete schema, example queries, and nutrient codes, effectively explaining exactly what the sql parameter should contain and how to use it. This exceeds the baseline expectation for low schema coverage.

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's function: 'Execute SQL query on ANSES Ciqual French food composition database.' It specifies the resource (ANSES Ciqual database) and the action (execute SQL query). Even without siblings, the purpose is unambiguous and well-defined.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides a detailed 2-step workflow with example queries, explicitly instructing users to first search, then retrieve nutrients, and to stop after finding a matching food. It also covers compound dishes and quick calorie lookups, giving clear usage context and guidance on how to structure queries efficiently.

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/fastmcp-me/ciqual-mcp'

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