Skip to main content
Glama

nutrition_compare

Read-onlyIdempotent

Compare nutrition facts across 2-5 recipes side-by-side. Shows calories, protein, carbs, fat, fiber for each recipe in a comparison table format. TRIGGERS:

  • 'compare nutrition of X and Y', 'which is healthier X or Y'

  • 'calories in X vs Y', 'protein comparison X and Y'

  • 'healthiest option between X Y Z'

  • 'nutritional comparison', 'which has fewer calories'

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
recipeSlugsYesArray of 2-5 recipe slugs to compare nutritionally (e.g. ['chicken-pho', 'beef-pho', 'veggie-pho'])

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, and destructiveHint=false. The description adds useful context beyond these by stating the output is a 'comparison table format' and enumerating the specific nutrient fields returned. This gives the agent expectations about the result structure, though it does not cover edge cases like invalid slugs or missing data.

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 starts with a crisp summary sentence, then offers a helpful trigger list. The trigger examples are somewhat repetitive but serve a purpose in recognizing varied user intents. Overall it is well-structured and each line has a role, though the trigger list could be trimmed without losing meaning.

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?

Given the simple single-parameter signature and strong annotations, the description is sufficiently complete. It explains the tool's scope (2-5 recipes), the data displayed, and the output format. The absence of an output schema is partially compensated by the table format disclosure. It does not mention error behavior, but that is a minor gap for a read-only comparison tool.

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?

The schema covers 100% of the single parameter recipeSlugs with a clear description including range and examples. The tool description reinforces the 2-5 recipe range and implies slugs as input, but adds no new parameter-level details beyond what the schema already provides. Per rubric, baseline 3 is appropriate when schema does the heavy lifting.

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 opens with a specific verb and resource: 'Compare nutrition facts across 2-5 recipes side-by-side.' It then lists exact nutrients shown (calories, protein, carbs, fat, fiber) and a comparison table format, making it clear this is a multi-recipe nutrition comparison. This distinctly separates it from sibling tools like nutrition_analyze (single recipe) or recipes_compare (general recipe comparison).

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?

A dedicated TRIGGERS section provides concrete example phrasings for when to use this tool, such as 'compare nutrition of X and Y' and 'which is healthier X or Y'. This is clear context for invocation, but it does not explicitly mention when not to use it or alternative tool names, so it stops short of the full 5.

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