Skip to main content
Glama
recipe-mcp

recipe-mcp

by mnavas

solve_ratio

Scales ingredient ratios to target amounts by using a total weight or a known component amount, returning proportional quantities for each part.

Instructions

Scale a ratio (e.g. {'flour':3,'water':2,'salt':1}) to amounts.

Provide total, or a known component (known_name + known_amount).

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": {
      "parts": "<parts>"
    },
    "name": "solve_ratio"
  }
}

Input Schema

NameRequiredDescriptionDefault
unitNog
partsYes
totalNo
known_nameNo
known_amountNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.5/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It discloses the two operating modes (total-driven vs known-component-driven), which is genuinely useful behavior for a solver, but says nothing about what is returned (a name-to-amount mapping?), whether the result is rounded, what unit is applied, or how errors/unknown `known_name` are handled.

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?

Two short sentences, front-loaded with the verb and an inline example that earns its place by fixing the input shape. Slightly truncated feel from the dangling newline, but no wasted wording.

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 self-contained math tool with a nested `parts` object and no output schema, the description is close to sufficient: the input modes are clear and the example pins down the object shape. The remaining gap is the undescribed return value and the unexplained `unit` parameter, which matter but are recoverable by an agent.

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 coverage is 0%, so the description must compensate. It does explain `total`, `known_name`, `known_amount`, and the shape of the nested `parts` object via the example, which covers the core semantics. However, `unit` — one of five parameters — is never mentioned, and the relationship between `unit` and the computed amounts is left entirely implicit.

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: "Scale a ratio ... to amounts", and the inline example `{'flour':3,'water':2,'salt':1}` makes the domain immediately concrete. It does not explicitly differentiate itself from siblings like scale_recipe or recipe_to_percentages, so it stops short of a 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?

The second sentence says how to invoke it: supply either `total` or a known component via `known_name` + `known_amount`. That is real invocation guidance for the two input modes, but there is no when-to-use guidance, no statement that the two modes are mutually exclusive or what happens if both/neither are supplied, and no routing away from scale_recipe or bakers_percentages.

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