decimal_to_fraction
Convert decimal amounts to cooking fractions like 1/2 or 1 3/4 with a chosen denominator cap for accurate recipe measurements.
Instructions
Convert a decimal amount to a friendly cooking fraction (e.g. 0.5 -> 1/2, 1.75 -> 1 3/4) with a denominator cap.
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>"
},
"name": "decimal_to_fraction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| max_denominator | No | Largest denominator allowed (default 8) |