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
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | g | |
| parts | Yes | ||
| total | No | ||
| known_name | No | ||
| known_amount | No |