Skip to main content
Glama
recipe-mcp

recipe-mcp

by mnavas

convert_weight

Convert mass between units such as mg, g, kg, oz, lb, and stone for recipes and ingredient measurements.

Instructions

Convert a mass between weight units (mg, g, kg, oz, lb, stone).

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": {
      "value": "<value>",
      "from_unit": "<from_unit>",
      "to_unit": "<to_unit>"
    },
    "name": "convert_weight"
  }
}

Input Schema

NameRequiredDescriptionDefault
valueYes
to_unitYes
from_unitYes

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 exist, so the description carries the full disclosure burden. It says nothing about rounding or precision of the result, whether units are case-sensitive, what happens with unsupported or misspelled units, or the shape of the returned value. For a low-risk pure computation this is not catastrophic, but the behavioral picture is largely absent.

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?

A single sentence with zero filler, front-loading the verb and the supported unit set. Nothing could be removed without losing information.

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?

For a simple three-parameter converter with no output schema, the description is roughly adequate: it establishes what is converted and between which units. It omits result precision, unit-string formatting rules, and error behavior, which an agent would otherwise have to discover by trial.

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 description coverage is 0%, so the description must carry parameter meaning, and it does partially: the enumerated unit list effectively supplies the accepted values for from_unit and to_unit, which the schema does not. It leaves 'value' unexplained (negative or fractional values, expected magnitude) and does not state case-sensitivity for the unit strings.

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?

The description names a specific verb ('convert') and resource ('mass between weight units'), and enumerates the supported units, which implicitly separates it from siblings like convert_temperature and convert_volume. It stops short of explicitly differentiating itself from those siblings by name, but an agent can still identify the correct tool from the unit list alone.

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?

No explicit when-to-use or when-not-to-use guidance is given, and no alternative is named. Usage is nonetheless strongly implied by the unit enumeration, since an agent handling a mass conversion obviously selects this tool over the volume or temperature converters.

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