Skip to main content
Glama

Convert cups to grams for a named ingredient

convert_ingredient
Read-onlyIdempotent

Converts a kitchen amount between volume and weight for a specific ingredient, using measured grams-per-cup values (USDA FoodData Central portion weights with FDC ids, and the King Arthur Baking ingredient weight chart) instead of guessed densities. 271 ingredients. Units: US cup (236.5882365 mL), metric cup (250 mL), imperial cup, US legal cup (240 mL), Japanese cup, US/metric/Australian tablespoons, teaspoons, US and imperial fl oz, pints, quarts, gallons, mL, dL, L, g, mg, kg, oz, lb and sticks of butter. Volume to volume and weight to weight need no ingredient. States which cup definition it used and cites the density source.

Input Schema

NameRequiredDescriptionDefault
amountYesQuantity to convert, e.g. 1.5. Use decimals for fractions (3/4 = 0.75).
to_unitYesUnit to convert to, e.g. g, oz, cup, ml.
from_unitYesUnit to convert from, e.g. cup, us_cup, metric_cup, tbsp, tsp, fl oz, ml, l, g, oz, lb, stick.
cup_systemNoWhich cup and spoon family the bare words cup, tbsp, tsp, fl oz and pint mean. us = 236.588 mL cup (default), metric = 250 mL cup with 15/5 mL spoons, imperial = 284.13 mL cup with UK pints. Explicit units such as metric_cup always win.
ingredientNoIngredient name, e.g. "all-purpose flour", "brown sugar", "honey". Required when converting between volume and weight.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnly, idempotent, non-destructive and closed-world, so safety needs no restating. The description instead adds real behavioural context: the density data is measured (not guessed), the corpus is 271 ingredients, and the response reports which cup definition was applied and cites the source. That last point is valuable output-behaviour disclosure in the absence of an output schema.

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 purpose and the ingredient-optional rule are front-loaded, and every other sentence does work. The single long unit enumeration is dense but earns its place because the unit parameters are free-form strings; still, it reads as a wall of nouns rather than a structured list.

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 read-only five-parameter converter with a fully documented schema and no output schema, this covers the decision points an agent faces: which units exist, how cup ambiguity is resolved, when an ingredient is mandatory, and what the result reports about its own provenance. Only ingredient-name resolution failures are unaddressed, a minor gap against an otherwise complete picture.

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?

Coverage is 100%, so the baseline is 3, but the description goes further by enumerating the accepted unit vocabulary (including the six cup definitions and the spoon/fl-oz/butter-stick families) for free-form string parameters whose schema only supplies partial examples. It also reinforces that explicit units like metric_cup override cup_system, which is the subtlest interaction in the call.

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 opening sentence states a specific verb (converts) and a precise resource (a kitchen amount between volume and weight for a named ingredient), plus the data basis (USDA portion weights with FDC ids, King Arthur chart). This is unmistakably distinct from the sibling tools convert_oven_temperature, search_ingredients, and scale_recipe.

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 clearly establishes the condition that selects the ingredient parameter — "Volume to volume and weight to weight need no ingredient" — which is exactly the decision an agent needs to make. What it lacks is any routing to siblings, e.g. pointing at search_ingredients when the exact ingredient name is unknown.

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.