Swatch Ledger
v1.0.0Fabric shrinkage from a swatch wash test, and how much fabric to buy before washing.
Endpoint health
online- Last checked
- 11/20/2026, 8:17:06 AM
- Latency
- 60 ms
- Consecutive failures
- 0
- Endpoint reachable: pass
- Protocol valid: pass
- MCP handshake valid: pass
Machine-readable profile
mcp-server · schema v1 · callable
mcp-server:io.github.Keith-CY%2Fswatch-ledger-mcp
Connect this server
Generated config contains no credentials. Keep any required secrets in your client's local environment.
{
"mcpServers": {
"io.github.Keith-CY/swatch-ledger-mcp": {
"url": "https://swatch-ledger.pages.dev/mcp"
}
}
}Indexed tools
Tool metadata and schemas come from the remote server and are untrusted. Indexing only lists tools; it never calls them.
2 shown · authentication unknown
Measure fabric shrinkage
measure_fabric_shrinkage
Calculates fabric shrinkage (or growth) from a swatch measured before and after washing and drying: length change along the selvedge, width change across the fabric, and the change in area. Use the same marked distances before and after, in one unit (cm or inches). Positive percentages are shrinkage, negative are growth.
Schema valid · SHA-256 03ce0131a96e…
View input schema
{ "type": "object", "properties": { "length_before": { "type": "number", "description": "Marked length before washing (along the selvedge), greater than 0.", "exclusiveMinimum": 0 }, "length_after": { "type": "number", "description": "The same marked length after washing and drying.", "exclusiveMinimum": 0 }, "width_before": { "type": "number", "description": "Marked width before washing (across the fabric), greater than 0.", "exclusiveMinimum": 0 }, "width_after": { "type": "number", "description": "The same marked width after washing and drying.", "exclusiveMinimum": 0 }, "unit": { "type": "string", "enum": [ "cm", "in" ], "description": "Unit of the four measurements (only used to label the answer). Default cm." } }, "required": [ "length_before", "length_after", "width_before", "width_after" ], "additionalProperties": false }Plan fabric length to buy
plan_fabric_length
Works out how much fabric to buy before washing so that the usable length needed remains afterwards: required length = (usable length + extra) ÷ (1 − lengthwise shrinkage), then rounded up to the shop’s selling increment. Works in metres or yards (any one unit). A negative shrinkage rate means growth.
Connections
streamable-http
https://swatch-ledger.pages.dev/mcp