Skip to main content
Glama

NutraPlanner Recipe Analyzer

Search Canadian Nutrient File foods

search_cnf_foods
Read-onlyIdempotent

Search Health Canada's Canadian Nutrient File 2026 (and the 2015 foods it withdrew) by English or French name or alternate name. Returns CNF food codes to use with get_cnf_food, compare_cnf_editions and compute_cnf_recipe. Every query word must start a word of the food's names; use generic food words ("yogurt plain 2%", "pois chiches").

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

Input Schema

NameRequiredDescriptionDefault
limitNo
queryYesFood words, in English or French.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/closed-world, so the description correctly spends its words elsewhere: it discloses the unusual matching rule (every query word must be a word-prefix of a food name), the edition coverage including withdrawn 2015 records, and the return value type. It omits result ordering and how partial matches are ranked, which keeps it from a 5.

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?

Three sentences, front-loaded with the resource and edition scope, then return/routing value, then query mechanics. No filler. The matching rule sentence is slightly awkwardly phrased ('must start a word of the food's names'), costing a bit of clarity.

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?

With no output schema, the description carries the burden of describing returns and does so (CNF food codes, consumable by named siblings). It also explains the non-obvious query grammar. Only the limit parameter's behavior and result-set ordering remain undocumented, which are small gaps for a two-parameter search 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 only 50% (limit has no description), so the description must compensate — and it does for the critical parameter, explaining the prefix-per-word matching semantics and giving worked example queries. The limit parameter's effect on result count is left entirely to the schema's default/maximum, a minor gap.

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?

States a specific verb (search) and a precisely scoped resource (Health Canada's Canadian Nutrient File 2026 plus withdrawn 2015 foods), and specifies the match fields (English/French name or alternate name). It also distinguishes itself from siblings by naming what it returns (CNF food codes) and which tools consume them (get_cnf_food, compare_cnf_editions, compute_cnf_recipe).

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?

Clearly positions the tool as the entry point that produces codes for get_cnf_food, compare_cnf_editions and compute_cnf_recipe, and gives concrete query-construction advice with examples. It stops short of explicit exclusions (e.g. when to prefer analyze_recipe_text for free-text recipe parsing), so it is strong context without full when-not guidance.

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