Skip to main content
Glama

NutraPlanner Recipe Analyzer

Compare a food across CNF 2015 and 2026

compare_cnf_editions
Read-onlyIdempotent

For one CNF food code: its name and values in CNF 2015 and CNF 2026 side by side, the nutrients whose value changed, and whether the food was new, withdrawn or renamed in 2026.

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": {
      "code": "<code>"
    },
    "name": "compare_cnf_editions"
  }
}

Input Schema

NameRequiredDescriptionDefault
codeYesThe CNF food code.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

The annotations already establish that this is a read-only, idempotent, non-destructive operation. The description adds useful behavioral context by enumerating the comparison output: side-by-side values, changed nutrients, and new/withdrawn/renamed status.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The definition is a single, front-loaded sentence that states the scope first and then lists the useful outputs. Every clause contributes directly to understanding what the tool returns, with no redundant wording.

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?

For a simple one-parameter comparison tool with rich annotations and no output schema, the description provides enough detail about the comparison dimensions and status categories. An agent can understand the result shape without needing a separate output schema.

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?

Schema coverage is 100%, and the schema documents the single 'code' parameter and its pattern. The description reinforces that the parameter is one CNF food code, but it does not add format details or explain the optional '-2015' suffix beyond what the schema provides.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states that the tool compares a single CNF food code across the 2015 and 2026 editions, including name, values, changed nutrients, and status. It is specific about the resource and output, but it does not explicitly differentiate itself from sibling tools such as get_cnf_food.

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

Usage Guidelines3/5

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

The phrase 'For one CNF food code' scopes usage to a single-code comparison and implies when the tool applies. However, it does not state when to use this instead of get_cnf_food or other siblings, nor does it provide exclusions.

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