Skip to main content
Glama
recipe-mcp

recipe-mcp

by mnavas

recipe_to_percentages

Convert recipe ingredient amounts into percentages of total weight, including volume-to-weight conversion for known ingredients, to support baker's ratios and scaling.

Instructions

Express each ingredient as a percentage of total weight.

Each item: {name, amount, unit}. Volume units are converted to weight using the ingredient density table, so names must be known ingredients.

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": {
      "ingredients_list": "<ingredients_list>"
    },
    "name": "recipe_to_percentages"
  }
}

Input Schema

NameRequiredDescriptionDefault
ingredients_listYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior3/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 credibly explain the non-obvious mechanic that volume units are converted via a density table and that unknown ingredient names are unsupported, but it says nothing about the returned structure, rounding of percentages, or what happens with missing or unresolvable units.

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 short sentences, front-loaded with the operation's effect and followed by the input contract. No filler or restatement of the tool name.

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?

For a single-parameter, no-output-schema computation, the definition covers the operation, the item structure, and the density-conversion dependency. Only minor gaps remain, such as return shape and handling of unknown units.

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 0% and the array items are untyped objects with additionalProperties, so the schema alone tells an agent nothing. The description supplies the essential item shape {name, amount, unit} and the constraint that names must be known ingredients, which is the key semantic an agent needs; it stops short of giving a concrete example or noting ordering.

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: expressing each ingredient as a percentage of total weight. The phrase 'percentage of total weight' implicitly separates it from bakers_percentages-style siblings, which are normally relative to flour weight, but the description never names that alternative to make the distinction explicit.

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 stated precondition that names must be known ingredients. There is no explicit when-to-use versus when-not-to-use guidance and no pointer to related siblings such as volume_to_weight or bakers_percentages for callers who have unnormalized data.

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