Skip to main content
Glama

Sugar replacement calculator

sweetener_sugar_replacement
Read-onlyIdempotent

Calculate how much of a sweetener matches the sweetness of a given amount of sugar (sucrose), the calories saved, and the bulk (grams of solids) lost that must be replaced with fiber, polyol or another bulking agent. Also returns the sweetener's relative sweetness, kcal/g, glycemic index, heat/acid stability and regulatory notes from the SKS Sweetener Atlas.

Input Schema

NameRequiredDescriptionDefault
sweetenerYesSweetener name, e.g. 'sucralose', 'stevia', 'allulose', 'erythritol', 'monk fruit'.
sugar_gramsYesGrams of sugar to replace.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, non-destructive, and openWorldHint, so safety is covered. The description adds genuine context beyond them: the returned data set (sweetness, kcal/g, glycemic index, heat/acid stability, regulatory notes) and the source ('SKS Sweetener Atlas'), which tells the agent this is a pure computation backed by a fixed reference dataset.

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?

Two sentences, front-loaded with the core computation, then a compact list of auxiliary outputs. Every clause carries distinct information (amount, calories, bulk, then atlas metadata); nothing is repeated from the title or schema.

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 must carry the return-value burden, and it does list the key outputs and the data source. It is slightly incomplete in not specifying units for the bulk-loss figure or how the tool responds to an unrecognized sweetener name, but overall it is sufficient for correct invocation.

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 description coverage is 100% and both parameters are documented there (sweetener with examples, sugar_grams with bounds). The description only restates 'a given amount of sugar' and 'a sweetener' without adding naming conventions, unit caveats, or behavior for unknown sweeteners, so the baseline of 3 applies.

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: 'Calculate how much of a sweetener matches the sweetness of a given amount of sugar'. It also enumerates the secondary outputs (calories saved, bulk lost, relative sweetness, kcal/g, GI, stability, regulatory notes), which clearly separates this conversion tool from siblings like calculate_nutrition_label or search_gras_notices.

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?

Usage is only implied by the tool's function — an agent can infer you call it when substituting a sweetener for sugar, but there is no explicit statement of when to use this versus calculate_nutrition_label or check_retailer_ingredients. No prerequisites, limits, or exclusions are given.

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