API & MCP

Everything a person can do on Threadsmith Pattern Block Drafter, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Threadsmith Pattern Block Drafter

Enter your body measurements (only bust, waist and hip are required — the rest is derived) and get sewing-pattern blocks drafted to them: a straight skirt, a fitted bodice with bust and waist darts, a one-piece sleeve whose cap is solved to the bodice armhole plus cap ease, and trousers. Each piece gets seam and hem allowance (mitred or squared corners, folded-hem corners), notches, grainline and darts trued to equal legs. The tool checks that the waist and hip of the drafted pieces equal your measurements plus ease, can grade a size run from your measurements, and writes a home-printable tiled PDF (A4 or Letter with overlap, crosses and a test square), a full-size SVG for plotters and projectors, or a DXF R12 file.

Inputs of Threadsmith Pattern Block Drafter
FieldTypeDefaultDescription
unitsselect (cm, in)"cm"Units of all lengths below
blocksmultiselect (skirt, bodice, sleeve, trousers)["skirt"]Blocks. The sleeve is fitted to the bodice armhole drafted from the same measurements.
heightnumber—Body height. Standing, barefoot, from the floor to the top of the head. Empty = derived from the measurements you give.
bustnumber—Bust / chest girth. Horizontal girth over the fullest part of the bust (bust points) or chest, under the arms. Empty = derived from the measurements you give.
waistnumber—Waist girth. Horizontal girth at the natural waist, the narrowest part between the lowest rib and the hip bone. Empty = derived from the measurements you give.
hipnumber—Hip girth. Horizontal girth over the fullest part of the buttocks. Empty = derived from the measurements you give.
necknumber—Neck base girth. Around the base of the neck through the nape (cervicale), the side neck points and the front neck point. Empty = derived from the measurements you give.
backWaistnumber—Back waist length. From the nape (cervicale) down the centre back to the waist line. Empty = derived from the measurements you give.
frontWaistnumber—Front waist length. From the side neck point over the bust point straight down to the waist line. Empty = derived from the measurements you give.
bustDepthnumber—Bust point depth. From the side neck point to the bust point. Empty = derived from the measurements you give.
bustSpannumber—Bust point separation. Horizontal distance between the two bust points. Empty = derived from the measurements you give.
shouldernumber—Shoulder length. From the side neck point to the shoulder point (acromion). Empty = derived from the measurements you give.
acrossBacknumber—Back width. Across the back between the armpit folds, about halfway between nape and underarm level. Empty = derived from the measurements you give.
armnumber—Arm length. From the shoulder point over the slightly bent elbow to the wrist bone. Empty = derived from the measurements you give.
upperArmnumber—Upper arm girth. Horizontal girth of the upper arm at its fullest, just below the armpit. Empty = derived from the measurements you give.
wristnumber—Wrist girth. Around the wrist over the wrist bone. Empty = derived from the measurements you give.
hipDepthnumber—Waist to hip. Vertical distance from the waist line to the hip line, at the side. Empty = derived from the measurements you give.
crotchDepthnumber—Body rise (crotch depth). Seated on a hard flat chair: vertical distance from the waist line at the side down to the seat. Empty = derived from the measurements you give.
outsideLegnumber—Waist to floor (outside leg). At the side from the waist line down to the floor, barefoot. Empty = derived from the measurements you give.
skirtLengthnumber—Skirt length. Design measurement: from the waist at centre front down to the hem. Empty = derived from the measurements you give.
easetextarea—Ease (optional). Wearing ease in the units above, as key=value. Keys: bodiceBust (bodice ease at the bust), bodiceWaist (bodice ease at the waist), skirtWaist (skirt ease at the waist), skirtHip (skirt ease at the hip), trousersWaist (trousers ease at the waist), trousersHip (trousers ease at the hip), crotch (ease in the body rise), upperArm (sleeve ease at the upper arm), wrist (sleeve ease at the wrist), capEase (sleeve cap ease).
seamAllowancenumber—Seam allowance. Empty = 1.5 cm or 5/8 in. Fold edges get none.
hemAllowancenumber—Hem allowance. Empty = 4 cm or 1 1/2 in.
cornerselect (mitre, square)"mitre"Allowance corners
hemCornerselect (mirror, mitre)"mirror"Hem corners
gradeDowninteger0Sizes below yours
gradeUpinteger0Sizes above yours
gradeStepnumber—Girth step per size. Empty = 4 cm. Bust, waist and hip grow by this much per size; other measurements by a proportional rule.
sizetext"Base"Size in the files. Base, +1, +2 … or -1, -2 … of the size run.
hemWidthnumber—Trouser hem circumference. Empty = 42 cm.
paperselect (a4, letter)"a4"Paper for the tiled PDF
overlapnumber—Page overlap. Empty = 1.5 cm.
outputselect (pdf, svg, dxf)"pdf"File

Example request

Straight skirt from bust 92, waist 74, hip 100 cm (A4 tiles)

curl -X POST https://threadsmithpatternblock.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"units":"cm","blocks":["skirt"],"bust":92,"waist":74,"hip":100,"skirtLength":60}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "threadsmith-pattern-block": { "type": "http", "url": "https://threadsmithpatternblock.usefulweb.site/mcp" }
  }
}