Skip to main content
Glama

Your AI Kitchen (YAK)

Convert a measurement

convert_units
Read-onlyIdempotent

Convert one cooking amount between units, using ingredient density for volume↔weight (e.g. 1 cup flour → grams). Pure calculation: reads and writes nothing. For a whole recipe use get_recipe units=metric instead. Returns {from, to, amount, unit}, e.g. {from: "1 cup", to: "120 g", amount: 120, unit: "g"}.

Input Schema

NameRequiredDescriptionDefault
toYesTarget system: us or metric
unitYesSource unit, e.g. "cup", "tbsp", "oz", "g", "ml", "°F"
amountYesQuantity: number or fraction text, e.g. 1.5, "1 1/2", "3/4"
ingredientNoIngredient for density-based volume↔weight, e.g. "flour", "sugar"; optional

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive, and "Pure calculation: reads and writes nothing" reinforces that the recipe store is untouched, which is useful for an agent reasoning about side effects. It does not cover edge behavior (unknown ingredient, unsupported unit, what happens on a failed density lookup), so it is not exhaustive.

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?

Three sentences, front-loaded with the core purpose, then the exclusion, then the return shape. The worked example earns its place because there is no output schema.

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?

No output schema exists, and the description compensates by spelling out the return object and a concrete example. Combined with annotations covering the safety profile and full schema coverage, 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 baseline would be 3, but the description adds real meaning: it explains the density mechanism behind the optional `ingredient` param with a concrete "1 cup flour → grams" example and shows how amount/unit/from map into the result. It does not explain the `to` enum's effect on rounding/precision.

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?

Specific verb+resource ("Convert one cooking amount between units") with an immediately distinguishing scope: single amount vs. whole recipe. It names the sibling it is not (get_recipe units=metric) so an agent can separate the two without opening either 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 routes the agent: use this for one amount, use get_recipe units=metric for a whole recipe. That is a named alternative with the condition that selects it, leaving nothing to inference.

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