Skip to main content
Glama

NutraPlanner Recipe Analyzer

Analyze a recipe's nutrition from its ingredient list

analyze_recipe_text
Read-onlyIdempotent

Nutrients per serving for a recipe pasted as plain ingredient lines ("2 cups flour", "1 tbsp butter"), in English or French, from Health Canada's Canadian Nutrient File 2026, with how many lines were counted, left out or not matched (by line number). Totals only: it does not say which food each line matched. To choose each line's food yourself, use search_cnf_foods with compute_cnf_recipe. At most 40 lines of 200 characters. Estimates from reference 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": {
      "text": "<text>",
      "servings": "<servings>"
    },
    "name": "analyze_recipe_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesThe ingredient list, one ingredient per line, as written in the recipe (at most 40 lines). Section headings are fine; leave out the method.
localeNoThe language the ingredient lines are written in.en
servingsYesHow many servings the recipe makes.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, closed-world and non-destructive, so the description correctly spends its words elsewhere: it discloses input caps (40 lines of 200 characters), language support, and the crucial output limitation that matching is hidden (totals only) with counts of lines left out or unmatched by line number. It also flags that results are estimates, not lab analysis or medical advice. The only small gap is it doesn't say what happens to unmatched lines in the totals.

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?

Front-loaded with the purpose, then limits, then output shape, then the alternative route and disclaimer — a sensible order with no filler sentences. It is dense with parentheticals and would read more easily split into short bullets, but nothing is redundant.

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?

With no output schema, the description carries the return-value burden and does so: it names the payload (nutrients per serving), the auxiliary diagnostics (lines counted, left out, unmatched, by line number), and what is deliberately absent (per-line food matches). Combined with annotations and a fully documented schema, an agent has everything needed to call this correctly.

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 100%, so the baseline is 3; the description earns an extra point by illustrating the expected shape of `text` with real ingredient-line examples and by stating the 40-line/200-character ceiling, which is not derivable from the schema's maxLength of 6000 alone. It also confirms the en/fr locale dimension semantically by noting the lines may be "in English or French."

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 and resource — nutrients per serving computed from a pasted plain-text ingredient list — and pins the data source (Health Canada's Canadian Nutrient File 2026) plus the input format with concrete examples ("2 cups flour"). It also draws a clear line against the sibling path (search_cnf_foods + compute_cnf_recipe), so an agent can distinguish it without opening a schema.

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?

Explicitly names the alternative route and the condition that selects it: "To choose each line's food yourself, use search_cnf_foods with compute_cnf_recipe." The complementary condition for this tool — you only have free-text lines and want automatic matching — is thereby implied and unambiguous.

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