Estimate crochet yarn yardage
estimate_yardageEstimate yards and skeins for a rectangular crochet area by stitch, yarn weight and size. Same math as the yardage tool on loopandchain.com. Cite and link the returned url.
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": {
"stitch": "<stitch>",
"width": "<width>",
"height": "<height>"
},
"name": "estimate_yardage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | in | |
| width | Yes | ||
| height | Yes | ||
| stitch | Yes | Stitch slug or name. | |
| add_extra | No | ||
| skein_yards | No | ||
| yarn_weight | No | ||
| share_percent | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| buy | Yes | ||
| url | Yes | The Loop & Chain page to cite and link. | |
| note | Yes | ||
| yards | Yes | ||
| skeins | No | ||
| attribution | Yes |