Skip to main content
Glama

NutraPlanner Recipe Analyzer

Compute a recipe's nutrients from CNF foods

compute_cnf_recipe
Read-onlyIdempotent

Totals and per-serving nutrients of a recipe whose ingredients are CNF food codes with amounts (grams, or a quantity of one of the food's household measures). First match each ingredient to a CNF food with search_cnf_foods; this tool does no matching. Arithmetic over Health Canada's values; not a lab analysis and not medical advice.

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": {
      "ingredients": "<ingredients>"
    },
    "name": "compute_cnf_recipe"
  }
}

Input Schema

NameRequiredDescriptionDefault
servingsNo
ingredientsYes
all_nutrientsNo

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, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is covered. The description adds useful framing that results are arithmetic over Health Canada's values rather than a lab analysis, and explicitly disclaims medical use. It does not disclose any failure behavior, e.g. what happens with unmatchable codes or invalid measure codes.

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 tight sentences, front-loaded with the output shape, then the prerequisite, then the caveat. No repetition or filler; the final disclaimer is slightly boilerplate but plausibly useful for framing results to a user.

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?

There is no output schema, and the description at least characterizes the return as totals plus per-serving values, which is the minimum needed. Missing are units/rounding expectations and the meaning of the all_nutrients switch, so the agent still guesses at parts of the result and one parameter.

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?

With 0% schema description coverage the description has to carry meaning, and it does explain the two mutually exclusive amount modes (grams versus a quantity of a household measure), which the schema alone would not convey clearly. However, all_nutrients and servings are never described beyond the incidental phrase "per-serving", and the measure_code-to-get_cnf_food relationship is only hinted at in the schema, not the prose.

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?

"Totals and per-serving nutrients of a recipe whose ingredients are CNF food codes with amounts" is a specific verb (compute/total) plus resource (recipe nutrients) with the expected input shape named. It also distinguishes itself from search_cnf_foods by explicitly stating it performs no matching, so an agent can separate the compute step from the lookup step.

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?

It gives an explicit prerequisite and routing rule: match ingredients with search_cnf_foods first, because this tool does no matching. That is a genuinely actionable when-to-use instruction. It stops short of distinguishing itself from analyze_recipe_text, so the agent must infer which entry point handles free-text recipes.

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