weight_to_count
Convert an ingredient weight into an estimated piece count for recipes, such as turning 250 g of potatoes into about 1.5 pieces.
Instructions
How many pieces a weight corresponds to (e.g. 250 g potato -> ~1.5).
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": {
"item": "<item>",
"value": "<value>"
},
"name": "weight_to_count"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| value | Yes | ||
| weight_unit | No | g |