Calculate yarn
calculate_yarnEstimates the yarn for a punch needle design from its size, the share of each colour and the needle and loop height, or from a measured swatch. Returns metres, grams and whole skeins for each colour.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_yarn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Unit of the width and height; the default is cm. | |
| shape | No | Shape of the design; the default is rectangle. | |
| width | No | Width of the design, or the diameter of a circle, in the chosen unit. | |
| buffer | No | Same value as extra_percent. | |
| colors | No | Same value as colours. | |
| height | No | Height of a rectangular design in the chosen unit; a circle needs none. | |
| needle | No | Oxford needle such as #14 fine, #13 fine, #10 fine, #10 regular, #9 regular or #8 regular. The default is #14 fine. | |
| colours | No | Colours with their share of the design area in percent; the shares add up to 100. A single colour at 100 percent is the default. | |
| extra_percent | No | Extra yarn for tails and finishing in percent, from 0 to 100. The default is 15. | |
| swatch_yarn_m | No | Metres of yarn used in the measured swatch. | |
| loop_height_mm | No | Loop height in mm: 3.2, 4.8, 6.4, 9.5 or 12.7. | |
| skein_length_m | No | Length in metres of one skein of the project yarn. | |
| swatch_width_cm | No | Width in cm of a measured filled swatch; the four swatch values come together. | |
| swatch_height_cm | No | Height in cm of the measured swatch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| view | Yes |