Skip to main content
Glama
recipe-mcp

recipe-mcp

by mnavas

set_recipe_ingredient_unit

Change an ingredient's stored unit in a recipe and convert its amount between weight and volume, including density-based conversions.

Instructions

Change the stored unit of one ingredient, converting its amount.

Handles weight↔weight, volume↔volume, and weight↔volume (via density).

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": {
      "recipe_id": "<recipe_id>",
      "ingredient": "<ingredient>",
      "new_unit": "<new_unit>"
    },
    "name": "set_recipe_ingredient_unit"
  }
}

Input Schema

NameRequiredDescriptionDefault
new_unitYes
recipe_idYes
ingredientYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.3/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden. It does convey that this is a mutation ('stored') and that weight↔volume conversions go through density, but it omits what happens when no density is known, whether the operation fails or silently skips, whether amounts are rounded, and whether it returns the updated recipe. For an unannotated writer tool this leaves material behavioral gaps.

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 tight sentences, mutation intent front-loaded, density caveat presented compactly. No filler or repetition of the tool name.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema and no annotations on a mutating, conversion-heavy tool, so the description should cover return value and failure modes for unsupported conversions. It explains the conversion dimension well but leaves the mutation's outcome and error behavior undocumented.

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?

All three parameters are required with no schema descriptions (0% coverage), so the description must compensate. It clarifies that 'ingredient' is a single item whose amount gets converted and that 'new_unit' is a target unit with density-based conversion, but says nothing about whether recipe_id is an id or slug, how the ingredient is matched by name, or the accepted unit format.

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?

States a specific verb and resource: it changes the *stored* unit of one ingredient in a recipe, which distinguishes it from standalone converters like convert_weight/convert_volume. The conversion-capability sentence adds scope. It stops short of naming a sibling explicitly, so it doesn't quite reach 5.

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 implied by the word 'stored' – use this when the change should persist in a saved recipe rather than be a one-off conversion. No explicit when-to-use/when-not, and no mention of why to prefer this over update_recipe or the convert_* siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.