# Connect an AI assistant to the construction calculator engine

> Connect any MCP client by URL to 67 construction tools: calculators, takeoffs, planners and drawings, plus 42 typed trade endpoints. Streamable HTTP, no…

Page: https://craftquantities.com/developers/mcp/ (developer documentation). This is the page's Markdown copy; the HTML page is the canonical version.

One URL gives an assistant every calculator, takeoff, planner and drawing tool on this site as MCP tools. It asks the engine, the engine runs the same code the pages run, and the answer comes back in both unit systems with its sources and a link the reader can open.

- 67 Tools on the main endpoint
- 42 Trade endpoints
- None Sign-in or key
- 1.9.0 Engine version

**On this page Connect a client**

## Connect a client

Add the address to any client that connects to a remote server by URL. The transport is Streamable HTTP; there is no sign-in, no key and no session to keep.

```
claude mcp add --transport http craftquantities https://api.craftquantities.com/mcp
```

- [Add to Cursor](cursor://anysphere.cursor-deeplink/mcp/install?name=craft-quantities&config=eyJ1cmwiOiJodHRwczovL2FwaS5jcmFmdHF1YW50aXRpZXMuY29tL21jcCJ9)
- [Install in VS Code](https://vscode.dev/redirect?url=vscode%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522craft-quantities%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fapi.craftquantities.com%252Fmcp%2522%257D)
- [VS Code Insiders](https://insiders.vscode.dev/redirect?url=vscode-insiders%3Amcp%2Finstall%3F%257B%2522name%2522%253A%2522craft-quantities%2522%252C%2522type%2522%253A%2522http%2522%252C%2522url%2522%253A%2522https%253A%252F%252Fapi.craftquantities.com%252Fmcp%2522%257D)

**Full (all tools)**

`api.craftquantities.com/mcp`

**Slim core (fewer tools, smaller context)**

`api.craftquantities.com/mcp/core`

**On demand**

`api.craftquantities.com/mcp?toolsets=<names>`

**Protocol versions**

2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26

**Server card**

[api.craftquantities.com/mcp/server-card](https://api.craftquantities.com/mcp/server-card)

**MCP Registry**

`com.craftquantities/engine`

## One endpoint per trade

The main endpoint reaches a calculator through `calculate` and its slug. A trade endpoint instead lists that trade’s calculators as tools of their own, each input named with its units and range, which suits a client that picks tools by their schema. There are 42 of them; the index gives each one’s address, tool names and counts.

_The trade index_

```
curl -s https://api.craftquantities.com/v1/trades
```

The same typed calculators are described for code generators, trade by trade, at [/openapi/index.json](https://craftquantities.com/openapi/index.json), and as JSON Schema at [/schemas/calculators/index.json](https://craftquantities.com/schemas/calculators/index.json).

## What an answer carries

Each tool returns a short Markdown report for the model and the same answer as structured content for the client. A calculation names:

- every result line in metric and in US customary, rounded as the calculator’s page rounds it;
- each input it used, and whether it came from the request or from the page’s opening value;
- the calculator’s version, the standards and sources it cites, and a citation line;
- a link that opens the same calculation on its page, where the reader can change any input;
- the notice that it is a quantity for estimating, not a design, a code check or a price.

The server keeps nothing between calls: a project lives in a token the client sends back with the next change. When you quote an answer, give the reader its page link and its citation line.

## Interactive views (MCP Apps)

On a host that supports MCP Apps (Claude, ChatGPT, VS Code and others), 62 of the 67 tools name a view in `_meta.ui.resourceUri`: one of 49 self-contained HTML documents the host reads with `resources/read` and runs in a sandboxed frame. The view draws the tool's structured answer in the host's light or dark theme, switches units, runs the tool again through the host when the reader changes a figure, and opens the matching page on this site with the figures filled in.

- No network: each view declares an empty CSP and holds its style and script inline; every figure comes from the tool result the host hands it.
- Data is written with textContent only, and links open through the host, to craftquantities.com only.
- A host without MCP Apps gets the same Markdown text and structured content as before.
- Text only, on purpose: `fetch, get_illustration, get_planner, list_plans, get_plan`

Every view, 49 in all

- ![Calculator result: The answer in both unit systems, its breakdown, formula and sources, with every input editable in place.](https://craftquantities.com/images/ai/views/calculate-light.webp)![Calculator result: The answer in both unit systems, its breakdown, formula and sources, with every input editable in place.](https://craftquantities.com/images/ai/views/calculate-dark.webp)

  _**Calculator result**The answer in both unit systems, its breakdown, formula and sources, with every input editable in place._

  Ask“How much concrete for a 10 × 10 ft slab, 4 inches thick?”

  `ui://craftquantities/calculate.html`calculate
- ![Batch of calculations: Several calculations at once as one table, each with its own page to open.](https://craftquantities.com/images/ai/views/batch-light.webp)![Batch of calculations: Several calculations at once as one table, each with its own page to open.](https://craftquantities.com/images/ai/views/batch-dark.webp)

  _**Batch of calculations**Several calculations at once as one table, each with its own page to open._

  Ask“Work out the concrete, the drywall and the paint for my garage in one go.”

  `ui://craftquantities/calculate-batch.html`calculate_batch
- ![What your material covers: Works backwards from what you have to the area it covers, step by step.](https://craftquantities.com/images/ai/views/solve-light.webp)![What your material covers: Works backwards from what you have to the area it covers, step by step.](https://craftquantities.com/images/ai/views/solve-dark.webp)

  _**What your material covers**Works backwards from what you have to the area it covers, step by step._

  Ask“I have 24 gallons of wall paint. How much wall will that cover?”

  `ui://craftquantities/solve-backwards.html`solve_backwards
- ![Unit conversion: A value converted with its factor; change it or swap the units in the card.](https://craftquantities.com/images/ai/views/convert-light.webp)![Unit conversion: A value converted with its factor; change it or swap the units in the card.](https://craftquantities.com/images/ai/views/convert-dark.webp)

  _**Unit conversion**A value converted with its factor; change it or swap the units in the card._

  Ask“Convert 10 feet to metres.”

  `ui://craftquantities/convert-units.html`convert_units
- ![Formula: The formula set out with each symbol, its value for your figures and the calculators that use it.](https://craftquantities.com/images/ai/views/formula-light.webp)![Formula: The formula set out with each symbol, its value for your figures and the calculators that use it.](https://craftquantities.com/images/ai/views/formula-dark.webp)

  _**Formula**The formula set out with each symbol, its value for your figures and the calculators that use it._

  Ask“What is the formula for the volume of a round pier, 300 mm across and 1.2 m deep?”

  `ui://craftquantities/formula.html`get_formula
- ![Calculator inputs: What a calculator asks for, the values it opens with, its test cases and changelog.](https://craftquantities.com/images/ai/views/calculator-light.webp)![Calculator inputs: What a calculator asks for, the values it opens with, its test cases and changelog.](https://craftquantities.com/images/ai/views/calculator-dark.webp)

  _**Calculator inputs**What a calculator asks for, the values it opens with, its test cases and changelog._

  Ask“What does the paint calculator need from me?”

  `ui://craftquantities/calculator.html`get_calculator
- ![Whole-job takeoff: The bill in three tiers (core, accessories and consumables, add-ons), labour by trade, and measurements to change.](https://craftquantities.com/images/ai/views/takeoff-light.webp)![Whole-job takeoff: The bill in three tiers (core, accessories and consumables, add-ons), labour by trade, and measurements to change.](https://craftquantities.com/images/ai/views/takeoff-dark.webp)

  _**Whole-job takeoff**The bill in three tiers (core, accessories and consumables, add-ons), labour by trade, and measurements to change._

  Ask“Everything to order for an asphalt shingle roof on a 39 × 26 ft house.”

  `ui://craftquantities/takeoff.html`run_takeoff, run_guide_chain
- ![House estimate: Each floor drawn, every material by section, the counts and the labour hours by trade.](https://craftquantities.com/images/ai/views/house-light.webp)![House estimate: Each floor drawn, every material by section, the counts and the labour hours by trade.](https://craftquantities.com/images/ai/views/house-dark.webp)

  _**House estimate**Each floor drawn, every material by section, the counts and the labour hours by trade._

  Ask“Rough quantities for a single-storey house, 12 × 8 m, six windows and two doors.”

  `ui://craftquantities/house-estimate.html`estimate_house
- ![Compare on your job: Two options side by side on your own room, and a chart of how they move as a size changes.](https://craftquantities.com/images/ai/views/compare-light.webp)![Compare on your job: Two options side by side on your own room, and a chart of how they move as a size changes.](https://craftquantities.com/images/ai/views/compare-dark.webp)

  _**Compare on your job**Two options side by side on your own room, and a chart of how they move as a size changes._

  Ask“Paint or wallpaper for a 4 × 3.5 m room with 2.4 m walls: what does each take?”

  `ui://craftquantities/compare-on-job.html`compare_on_job
- ![Job sheet: The one-page sheet: dimensions in both systems, materials with what to order, labour by trade.](https://craftquantities.com/images/ai/views/jobsheet-light.webp)![Job sheet: The one-page sheet: dimensions in both systems, materials with what to order, labour by trade.](https://craftquantities.com/images/ai/views/jobsheet-dark.webp)

  _**Job sheet**The one-page sheet: dimensions in both systems, materials with what to order, labour by trade._

  Ask“Make a one-page job sheet for a 6 × 4 m slab, 100 mm thick.”

  `ui://craftquantities/job-sheet.html`make_job_sheet
- ![Takeoff recipe: What a takeoff measures and what it works out, tier by tier.](https://craftquantities.com/images/ai/views/recipe-light.webp)![Takeoff recipe: What a takeoff measures and what it works out, tier by tier.](https://craftquantities.com/images/ai/views/recipe-dark.webp)

  _**Takeoff recipe**What a takeoff measures and what it works out, tier by tier._

  Ask“What does the concrete slab takeoff measure and count?”

  `ui://craftquantities/takeoff-recipe.html`get_takeoff
- ![Worked example: A worked example step by step, each answer checked, or moved to your own figures.](https://craftquantities.com/images/ai/views/example-light.webp)![Worked example: A worked example step by step, each answer checked, or moved to your own figures.](https://craftquantities.com/images/ai/views/example-dark.webp)

  _**Worked example**A worked example step by step, each answer checked, or moved to your own figures._

  Ask“Rework the bathroom refit example for a 4.5 × 3 m room.”

  `ui://craftquantities/worked-example.html`get_example, run_example, run_example_live
- ![Lines by division: Your bill grouped by MasterFormat division, with the lines left unassigned.](https://craftquantities.com/images/ai/views/classify-light.webp)![Lines by division: Your bill grouped by MasterFormat division, with the lines left unassigned.](https://craftquantities.com/images/ai/views/classify-dark.webp)

  _**Lines by division**Your bill grouped by MasterFormat division, with the lines left unassigned._

  Ask“Group these materials by MasterFormat division: ready-mix, rebar, damp-proof membrane, hardcore.”

  `ui://craftquantities/classify.html`classify_items
- ![Room plan: A room drawn from its footprint with its materials by trade and the labour band.](https://craftquantities.com/images/ai/views/plan-light.webp)![Room plan: A room drawn from its footprint with its materials by trade and the labour band.](https://craftquantities.com/images/ai/views/plan-dark.webp)

  _**Room plan**A room drawn from its footprint with its materials by trade and the labour band._

  Ask“Plan a 4 × 3 m bedroom, 2.4 m ceiling, one door and two windows.”

  `ui://craftquantities/room-plan.html`plan_room
- ![Project plan: A project space by space, its lines and the trades in order with their hours.](https://craftquantities.com/images/ai/views/project-light.webp)![Project plan: A project space by space, its lines and the trades in order with their hours.](https://craftquantities.com/images/ai/views/project-dark.webp)

  _**Project plan**A project space by space, its lines and the trades in order with their hours._

  Ask“Plan a bedroom and a bathroom with a 6/12 roof over them.”

  `ui://craftquantities/project-plan.html`plan_project
- ![Programme: A Gantt chart of the job by stage and trade on working days, with a crew you can change.](https://craftquantities.com/images/ai/views/programme-light.webp)![Programme: A Gantt chart of the job by stage and trade on working days, with a crew you can change.](https://craftquantities.com/images/ai/views/programme-dark.webp)

  _**Programme**A Gantt chart of the job by stage and trade on working days, with a crew you can change._

  Ask“Make a programme for a two-storey house with a crew of two, starting 2 November.”

  `ui://craftquantities/programme.html`plan_programme
- ![Labour hours: Person-hours on each line as a band, each rate's confidence and source, the crew-days.](https://craftquantities.com/images/ai/views/hours-light.webp)![Labour hours: Person-hours on each line as a band, each rate's confidence and source, the crew-days.](https://craftquantities.com/images/ai/views/hours-dark.webp)

  _**Labour hours**Person-hours on each line as a band, each rate's confidence and source, the crew-days._

  Ask“How many hours for a 6 × 4 m slab and a 6 m stud wall with a crew of two?”

  `ui://craftquantities/labour-hours.html`estimate_hours
- ![Cutting plan: The lengths or sheets to buy, every bar drawn with its cuts and offcut.](https://craftquantities.com/images/ai/views/cuts-light.webp)![Cutting plan: The lengths or sheets to buy, every bar drawn with its cuts and offcut.](https://craftquantities.com/images/ai/views/cuts-dark.webp)

  _**Cutting plan**The lengths or sheets to buy, every bar drawn with its cuts and offcut._

  Ask“24 studs at 2.326 m, 3 sills at 1.225 m and 3 plates of 8.9 m: which timber lengths should I buy?”

  `ui://craftquantities/cut-plan.html`optimise_cuts
- ![Trim corner: Each piece's mitre and bevel as the saw reads, the corner drawn, cope or mitre.](https://craftquantities.com/images/ai/views/trim-light.webp)![Trim corner: Each piece's mitre and bevel as the saw reads, the corner drawn, cope or mitre.](https://craftquantities.com/images/ai/views/trim-dark.webp)

  _**Trim corner**Each piece's mitre and bevel as the saw reads, the corner drawn, cope or mitre._

  Ask“Skirting into a 92° inside corner on a double-bevel mitre saw: what do I set?”

  `ui://craftquantities/trim-corner.html`trim_corner
- ![Mitre chart: Mitre and crown settings for each corner angle, and the gap a plain 45° cut leaves.](https://craftquantities.com/images/ai/views/miter-light.webp)![Mitre chart: Mitre and crown settings for each corner angle, and the gap a plain 45° cut leaves.](https://craftquantities.com/images/ai/views/miter-dark.webp)

  _**Mitre chart**Mitre and crown settings for each corner angle, and the gap a plain 45° cut leaves._

  Ask“Give me a mitre chart for 88°, 90°, 92° and 135° corners.”

  `ui://craftquantities/miter-chart.html`miter_chart
- ![Room trim plan: A room's skirting wall by wall: each piece, its end cuts and the lengths to buy drawn as bars.](https://craftquantities.com/images/ai/views/trimplan-light.webp)![Room trim plan: A room's skirting wall by wall: each piece, its end cuts and the lengths to buy drawn as bars.](https://craftquantities.com/images/ai/views/trimplan-dark.webp)

  _**Room trim plan**A room's skirting wall by wall: each piece, its end cuts and the lengths to buy drawn as bars._

  Ask“Plan the skirting for a 4 × 3 m room with a door on the east wall.”

  `ui://craftquantities/room-trim.html`plan_room_trim
- ![Scribe template: The scribe line drawn from your gap readings, with the oversize to cut and the sheets to print.](https://craftquantities.com/images/ai/views/scribe-light.webp)![Scribe template: The scribe line drawn from your gap readings, with the oversize to cut and the sheets to print.](https://craftquantities.com/images/ai/views/scribe-dark.webp)

  _**Scribe template**The scribe line drawn from your gap readings, with the oversize to cut and the sheets to print._

  Ask“Make a scribe template from gaps of 4, 11, 15, 9 and 3 mm every 300 mm.”

  `ui://craftquantities/scribe-template.html`scribe_template
- ![Full-size template: A full-size template's figures and the sheets it prints on.](https://craftquantities.com/images/ai/views/template-light.webp)![Full-size template: A full-size template's figures and the sheets it prints on.](https://craftquantities.com/images/ai/views/template-dark.webp)

  _**Full-size template**A full-size template's figures and the sheets it prints on._

  Ask“Print a full-size step gauge for my stair stringer.”

  `ui://craftquantities/print-template.html`print_template
- ![Panel between walls: The true shape of a worktop or panel between out-of-square walls, drawn with its angles and setbacks.](https://craftquantities.com/images/ai/views/panel-light.webp)![Panel between walls: The true shape of a worktop or panel between out-of-square walls, drawn with its angles and setbacks.](https://craftquantities.com/images/ai/views/panel-dark.webp)

  _**Panel between walls**The true shape of a worktop or panel between out-of-square walls, drawn with its angles and setbacks._

  Ask“Fit a 2.4 m worktop between walls at 91° and 88.5° with a 6 mm bow.”

  `ui://craftquantities/fit-panel.html`fit_panel
- ![Worktop run: Each piece of an L-shaped run drawn to its true shape, and the sheets to buy.](https://craftquantities.com/images/ai/views/worktop-light.webp)![Worktop run: Each piece of an L-shaped run drawn to its true shape, and the sheets to buy.](https://craftquantities.com/images/ai/views/worktop-dark.webp)

  _**Worktop run**Each piece of an L-shaped run drawn to its true shape, and the sheets to buy._

  Ask“Worktops for a 3 m back wall and a 2.2 m side run with an open end.”

  `ui://craftquantities/worktop-run.html`fit_worktop_run
- ![Bar layout: The bar grid drawn to scale with its spacing, the schedule, sticks to order and weight.](https://craftquantities.com/images/ai/views/rebar-light.webp)![Bar layout: The bar grid drawn to scale with its spacing, the schedule, sticks to order and weight.](https://craftquantities.com/images/ai/views/rebar-dark.webp)

  _**Bar layout**The bar grid drawn to scale with its spacing, the schedule, sticks to order and weight._

  Ask“Lay out #4 bars at 12 inches for a 20 × 12 ft slab with 2 inches of cover.”

  `ui://craftquantities/rebar-layout.html`layout_reinforcement
- ![Stair flight: The flight drawn in elevation: risers, goings, pitch, the stringer and the code check.](https://craftquantities.com/images/ai/views/stair-light.webp)![Stair flight: The flight drawn in elevation: risers, goings, pitch, the stringer and the code check.](https://craftquantities.com/images/ai/views/stair-dark.webp)

  _**Stair flight**The flight drawn in elevation: risers, goings, pitch, the stringer and the code check._

  Ask“Lay out a straight stair for a 2.8 m floor-to-floor rise.”

  `ui://craftquantities/stair-flight.html`stair_flight
- ![Roof framing: The roof's section drawn, every rafter's lengths and cuts, and the cut list by stock length.](https://craftquantities.com/images/ai/views/roof-light.webp)![Roof framing: The roof's section drawn, every rafter's lengths and cuts, and the cut list by stock length.](https://craftquantities.com/images/ai/views/roof-dark.webp)

  _**Roof framing**The roof's section drawn, every rafter's lengths and cuts, and the cut list by stock length._

  Ask“Frame a hip roof 24 ft span, 40 ft long at 6 in 12 with 16-inch centres.”

  `ui://craftquantities/roof-framing.html`roof_framing
- ![Quote check: A contractor's quote read line by line against your job's range; prices are never read.](https://craftquantities.com/images/ai/views/check-light.webp)![Quote check: A contractor's quote read line by line against your job's range; prices are never read.](https://craftquantities.com/images/ai/views/check-dark.webp)

  _**Quote check**A contractor's quote read line by line against your job's range; prices are never read._

  Ask“My roofer quotes 34 bundles of shingles and 4 rolls of underlayment. Does that sound right?”

  `ui://craftquantities/quote-check.html`check_quote
- ![Quotes levelled: Several quotes in one matrix: what each includes, leaves out or excludes, and what to ask.](https://craftquantities.com/images/ai/views/level-light.webp)![Quotes levelled: Several quotes in one matrix: what each includes, leaves out or excludes, and what to ask.](https://craftquantities.com/images/ai/views/level-dark.webp)

  _**Quotes levelled**Several quotes in one matrix: what each includes, leaves out or excludes, and what to ask._

  Ask“Compare these two bathroom quotes line by line.”

  `ui://craftquantities/quote-levelling.html`level_quotes
- ![Quote imported: A pasted quote read into lines with your own prices and totals, ready for My Project.](https://craftquantities.com/images/ai/views/import-light.webp)![Quote imported: A pasted quote read into lines with your own prices and totals, ready for My Project.](https://craftquantities.com/images/ai/views/import-dark.webp)

  _**Quote imported**A pasted quote read into lines with your own prices and totals, ready for My Project._

  Ask“Read this merchant's quote into my project: 30 sheets of plasterboard at 9.50…”

  `ui://craftquantities/quote-import.html`import_quote
- ![Scope of work: The scope as a three-part document: general, products and execution, clause by clause.](https://craftquantities.com/images/ai/views/scope-light.webp)![Scope of work: The scope as a three-part document: general, products and execution, clause by clause.](https://craftquantities.com/images/ai/views/scope-dark.webp)

  _**Scope of work**The scope as a three-part document: general, products and execution, clause by clause._

  Ask“Write the scope of work for my garage slab and stud wall.”

  `ui://craftquantities/scope-of-work.html`write_scope_of_work
- ![Proposal: The client proposal as a document preview; prices only from your own rates.](https://craftquantities.com/images/ai/views/proposal-light.webp)![Proposal: The client proposal as a document preview; prices only from your own rates.](https://craftquantities.com/images/ai/views/proposal-dark.webp)

  _**Proposal**The client proposal as a document preview; prices only from your own rates._

  Ask“Write a proposal for this garage job for Example Builders, reference Q-0001.”

  `ui://craftquantities/proposal.html`write_proposal
- ![Variation: What changed, was and now, line by line, priced only at your own rates.](https://craftquantities.com/images/ai/views/variation-light.webp)![Variation: What changed, was and now, line by line, priced only at your own rates.](https://craftquantities.com/images/ai/views/variation-dark.webp)

  _**Variation**What changed, was and now, line by line, priced only at your own rates._

  Ask“The slab grew from 6 to 7 m long. Write the variation at my rate of £120 per m³.”

  `ui://craftquantities/variation.html`write_variation
- ![Request for quote: A request merchants can price: items, quantities and the link to send.](https://craftquantities.com/images/ai/views/rfq-light.webp)![Request for quote: A request merchants can price: items, quantities and the link to send.](https://craftquantities.com/images/ai/views/rfq-dark.webp)

  _**Request for quote**A request merchants can price: items, quantities and the link to send._

  Ask“Make a request for quote for 2.64 m³ of C25/30, 11 rebar sticks and 10 formwork boards.”

  `ui://craftquantities/supplier-request.html`create_supplier_quote_request
- ![Sketched room: A room drawn from its corners with each wall's length, its areas and its materials.](https://craftquantities.com/images/ai/views/sketch-light.webp)![Sketched room: A room drawn from its corners with each wall's length, its areas and its materials.](https://craftquantities.com/images/ai/views/sketch-dark.webp)

  _**Sketched room**A room drawn from its corners with each wall's length, its areas and its materials._

  Ask“Sketch an L-shaped room and tell me its floor and wall area.”

  `ui://craftquantities/sketch-room.html`sketch_room
- ![Drawing: Your drawing as a plan with doors, windows and rooms, its quantities or what an edit changed.](https://craftquantities.com/images/ai/views/drawing-light.webp)![Drawing: Your drawing as a plan with doors, windows and rooms, its quantities or what an edit changed.](https://craftquantities.com/images/ai/views/drawing-dark.webp)

  _**Drawing**Your drawing as a plan with doors, windows and rooms, its quantities or what an edit changed._

  Ask“Draw a 6 × 4 m studio with a door and a window and give me the quantities.”

  `ui://craftquantities/drawing.html`create_drawing, edit_drawing
- ![Measured sketch: Shapes measured off a photo or sketch to scale, each with its uncertainty band.](https://craftquantities.com/images/ai/views/measure-light.webp)![Measured sketch: Shapes measured off a photo or sketch to scale, each with its uncertainty band.](https://craftquantities.com/images/ai/views/measure-dark.webp)

  _**Measured sketch**Shapes measured off a photo or sketch to scale, each with its uncertainty band._

  Ask“Measure the living room and the fence on this plan photo; the top wall is 6 m.”

  `ui://craftquantities/measure-sketch.html`measure_sketch
- ![Plan set takeoff: Counts and lengths marked across plan sheets, totalled per layer and per sheet.](https://craftquantities.com/images/ai/views/planset-light.webp)![Plan set takeoff: Counts and lengths marked across plan sheets, totalled per layer and per sheet.](https://craftquantities.com/images/ai/views/planset-dark.webp)

  _**Plan set takeoff**Counts and lengths marked across plan sheets, totalled per layer and per sheet._

  Ask“Total the outlets and partition walls I marked on these two plan sheets.”

  `ui://craftquantities/plan-set.html`plan_set_takeoff
- ![Diagnosis: Likely causes in order, how to tell them apart, the checks to make and when to call a professional.](https://craftquantities.com/images/ai/views/diagnose-light.webp)![Diagnosis: Likely causes in order, how to tell them apart, the checks to make and when to call a professional.](https://craftquantities.com/images/ai/views/diagnose-dark.webp)

  _**Diagnosis**Likely causes in order, how to tell them apart, the checks to make and when to call a professional._

  Ask“My breaker keeps tripping. What should I check?”

  `ui://craftquantities/diagnose.html`diagnose_symptom
- ![Guides: The step-by-step guides that match, with the calculators each one uses.](https://craftquantities.com/images/ai/views/guide-light.webp)![Guides: The step-by-step guides that match, with the calculators each one uses.](https://craftquantities.com/images/ai/views/guide-dark.webp)

  _**Guides**The step-by-step guides that match, with the calculators each one uses._

  Ask“Find me a guide to pouring a concrete slab.”

  `ui://craftquantities/guides.html`get_guide
- ![Sources: A calculator's sources as citation cards, and the standards it refers to.](https://craftquantities.com/images/ai/views/sources-light.webp)![Sources: A calculator's sources as citation cards, and the standards it refers to.](https://craftquantities.com/images/ai/views/sources-dark.webp)

  _**Sources**A calculator's sources as citation cards, and the standards it refers to._

  Ask“Where do the concrete calculator's figures come from?”

  `ui://craftquantities/sources.html`get_sources
- ![Benchmark cases: The benchmark's cases for a calculator, with the expected answer in both systems.](https://craftquantities.com/images/ai/views/benchmark-light.webp)![Benchmark cases: The benchmark's cases for a calculator, with the expected answer in both systems.](https://craftquantities.com/images/ai/views/benchmark-dark.webp)

  _**Benchmark cases**The benchmark's cases for a calculator, with the expected answer in both systems._

  Ask“Show me the benchmark cases for the concrete calculator.”

  `ui://craftquantities/benchmark.html`get_benchmark
- ![Trade term: One trade term across markets, how close each name is, and the false friends.](https://craftquantities.com/images/ai/views/term-light.webp)![Trade term: One trade term across markets, how close each name is, and the false friends.](https://craftquantities.com/images/ai/views/term-dark.webp)

  _**Trade term**One trade term across markets, how close each name is, and the false friends._

  Ask“What do the British call casing?”

  `ui://craftquantities/term.html`translate_term
- ![Market documents: The documents a market works to for a subject, and who decides on site.](https://craftquantities.com/images/ai/views/market-light.webp)![Market documents: The documents a market works to for a subject, and who decides on site.](https://craftquantities.com/images/ai/views/market-dark.webp)

  _**Market documents**The documents a market works to for a subject, and who decides on site._

  Ask“Which documents cover kitchen wiring in England?”

  `ui://craftquantities/market-documents.html`market_documents
- ![Search results: The calculators, takeoffs and guides that match, as cards to open.](https://craftquantities.com/images/ai/views/search-light.webp)![Search results: The calculators, takeoffs and guides that match, as cards to open.](https://craftquantities.com/images/ai/views/search-dark.webp)

  _**Search results**The calculators, takeoffs and guides that match, as cards to open._

  Ask“Find the tools for a concrete slab.”

  `ui://craftquantities/search.html`search, resolve_id
- ![Project file: Your project as a card with its lines and totals, and Open in My Project.](https://craftquantities.com/images/ai/views/projectfile-light.webp)![Project file: Your project as a card with its lines and totals, and Open in My Project.](https://craftquantities.com/images/ai/views/projectfile-dark.webp)

  _**Project file**Your project as a card with its lines and totals, and Open in My Project._

  Ask“Put the garage slab takeoff into a project I can open on the site.”

  `ui://craftquantities/project-file.html`create_project_file_from_calculations, create_project_file_from_drawing, create_project_file_from_house, create_project_file_from_plan, create_project_file_from_takeoffs, update_project
- ![Link to open: A link that opens the answer on the site: what travels in it and what stays behind.](https://craftquantities.com/images/ai/views/share-light.webp)![Link to open: A link that opens the answer on the site: what travels in it and what stays behind.](https://craftquantities.com/images/ai/views/share-dark.webp)

  _**Link to open**A link that opens the answer on the site: what travels in it and what stays behind._

  Ask“Give me a link to share this project with my client.”

  `ui://craftquantities/share-link.html`make_share_link, make_canvas_link, open_in_site_link, export_drawing
- ![Shared link: What a shared Craft Quantities link holds, read back: a sketch drawn or a project's lines.](https://craftquantities.com/images/ai/views/shared-light.webp)![Shared link: What a shared Craft Quantities link holds, read back: a sketch drawn or a project's lines.](https://craftquantities.com/images/ai/views/shared-dark.webp)

  _**Shared link**What a shared Craft Quantities link holds, read back: a sketch drawn or a project's lines._

  Ask“What is in this Craft Quantities link?”

  `ui://craftquantities/shared-link.html`open_share_link

Executable API and MCP

## Run a calculator, not just read it

The same calculators, computed on request for a program or an AI assistant, at https://api.craftquantities.com/v1/ and as an MCP server at https://api.craftquantities.com/mcp.

**Each engine tool, its HTTP route and what it does**

| Tool and route | What it does |
|---|---|
| `search`GET/v1/search?q={words} | Finds calculators by what the job is, in American, British or Australian words; returns ids and slugs, best first. |
| `fetch`MCP | One search result as a plain-text document: what the calculator works out, each input with its units and opening value, its sources and how to cite it. |
| `get_calculator`GET/v1/describe/{slug} | Each input's id, accepted units, range, options and the value the page opens on in both systems, with sources, version and a citation. |
| `calculate`GET, POST/v1/calculate/{slug} | Runs the calculator as its page does. The answer in metric and US customary, each input used and where it came from, the breakdown, the version, the sources, a citation and a link. |
| `convert_units`GET/v1/convert?value=&from=&to= | Converts between the units the calculators use, by the exact statutory factors in units.json. |
| `get_sources`GET/v1/sources/{slug} | The sources as the calculator cites them, the codes and standards they name, the matching standards pages here, and the citation in four formats. |
| `open_in_site_link`GET, POST/v1/link/{slug} | A link that opens the calculator's page with the same inputs and unit system, for handing the working to a person. |
| `get_takeoff`GET/v1/takeoff/{id} | A whole-job takeoff's measurements with their units and opening figures, its build-up choices, the calculators it runs and what it leaves out. |
| `run_takeoff`GET, POST/v1/takeoff/{id}/run | Works the whole job as its takeoff page does: every row's quantity, what to order, the allowance and its source, every input and where it came from, both systems, the sources and a link to the page on this job. |
| `get_example`GET/v1/example/{slug} | A worked example as published: the measurements, the calculators in order and why, and the figure each step pins. |
| `run_example`GET/v1/example/{slug}/run | Runs every pinned step of a worked example now, in both systems, and says whether each still meets the published figure. |
| `create_project_file_from_calculations`POST/v1/my-project-file | A My Project backup file from calculator lines, each computed as the page adds it, for Restore from a backup. Nothing is stored; no prices. |
| `create_project_file_from_takeoffs`POST/v1/my-project-file | A My Project backup file from whole-job takeoffs, each worked as its page commits it. Nothing is stored; no prices. |
| `create_project_file_from_house`POST/v1/my-project-file | A My Project backup file from a House Estimator form: its lines and its drawing, which the canvas reopens. Nothing is stored; no prices. |
| `create_project_file_from_plan`POST/v1/my-project-file | A My Project backup file from a room plan (one space, or spaces and a roof), saved as the planner saves it. Nothing is stored; no prices. |
| `create_project_file_from_drawing`POST/v1/my-project-file | A My Project backup file from a Construction Canvas drawing: its lines and the drawing itself. Nothing is stored; no prices. |
| `check_quote`POST/v1/check/{slug} | Reads a contractor's quote against the reader's own job as the site's quote check does: each quantity against the range the job's calculators give, what it leaves out and adds, and the questions to ask. Money is taken out and never judged; nothing is kept. |
| `estimate_house`GET, POST/v1/house | The House Estimator: a one- or two-storey house drawn from the form, and every quantity of its footing, slab, walls, openings and roof with what to order, both systems, what the drawing could not hold, its assumptions, each storey's plan and labour hours. It counts; it never designs. |
| `list_plans`GET/v1/plans | The free plan library as its hub lists it: original concept plans for houses, granny flats, tiny homes, cabins, garages, sheds, gazebos, pergolas, carports and extensions, filtered by kind, bedrooms, floor area and storeys, each with its page. A concept plan, never a construction drawing. |
| `get_plan`GET/v1/plans/{plan}?system=metric | One plan worked as its page works it: the areas, the room schedule, every material to order in three parts with quantities in both systems, labour hours by trade, and its drawings and files. Quantities only, nothing sized or certified. |
| `get_planner`GET/v1/planner/{kind} | The room planner's own ids for one kind of space: its figures, surfaces and finishes, scope questions, trades, rows and how a decision is written, stable within the model schema version it names. |
| `plan_room`POST/v1/plan | Plans one space as the site's planner does — a room, bathroom, slab, deck, driveway, fence, loft, retaining wall, exterior wall or stair — and returns every row it works, what it waits for, what is not built and why, the finishes compared, labour hours and the plan. |
| `plan_project`POST/v1/plan-project | Plans several spaces in one planner model — rooms, bathrooms, slabs, decks and the rest — and a roof over the rooms and bathrooms with its pitch, as the site's planner holds a whole project; each space's rows, every line together, labour hours and the plan. |
| `create_drawing`POST/v1/drawing | Makes a Construction Canvas drawing from simple shapes (a room with doors and windows, a deck, patio, bed or path, a fence of legs and turns), from the House Estimator's form, from drawing commands or from a canvas document, lists every material the canvas lists for it, and returns a one-click link that opens it on the canvas and a My Project file that carries it. |
| `import_quote`POST/v1/quote-import | The reader's own quote, prices and all, read as Quote to Estimate reads it, its arithmetic checked, and returned as a My Project file. The prices are the reader's figures, never the site's. |
| `diagnose_symptom`GET, POST/v1/diagnose?symptom={words} | Matches a defect described in plain words to the site's diagnosis pages: each candidate cause with what tells it apart and the one check, the checks in order and when to call a professional. Never says which cause you have; ambiguous words return the candidates. |
| `solve_backwards`GET, POST/v1/solve/{page}?have={amount} | Works backwards from what the reader has — sheets, tins, bags, bricks, a volume — to the area and the room, wall, deck or slab it covers, as the Solve Backwards page does: its calculator at its own settings, the waste taken off. Never sizes structure. |
| `market_documents`GET/v1/documents?market={market}&subject={words} | Names the family of codes or standards that governs a kind of work, or a calculator's subject, in the US, Canada, the UK or Australia, who publishes it and the site's page for it — never an edition or a date. Adoption is local; the answer says who decides. |
| `translate_term`GET/v1/term?term={word}&from={market}&to={market} | A trade word in each market's usage — plasterboard and drywall, skirting and baseboard — matched however it is written (a brand said for the product such as gyprock or sheetrock, spaced, plural or misspelt), how close each equivalent is, the warning where the same word is a false friend, each market's unit system, the unit traps it raises (US and imperial gallons, short, long and metric tons, the survey foot, board feet, a yard of concrete, bag sizes) with their conversions, and the market's document family — never an edition. |
| `create_supplier_quote_request`POST/v1/supplier-quote-request | Turns a bill of materials into a request for quote to merchants, as the site's request does: Markdown to paste, a CSV, the site's link each merchant opens to price it, and a My Project file. It carries no price and sends nothing. |
| `get_benchmark`GET/v1/benchmark?page={n} | The Construction Quantities Benchmark a page at a time, or one calculator's items: each question's inputs and prompt in metric and US units, the answer the page gives in each with its tolerance, and the worked steps, with the dataset's edition, download and citation. CC BY 4.0; no model results. |
| `measure_sketch`POST/v1/sketch | Measures areas, perimeters and lengths from points an assistant reads off a plan, sketch or photo, scaled by one known dimension or an ID-1 card, A4 or Letter sheet in the same image: both systems, an uncertainty band from the pixel error and the reference, closure and crossing checks, optionally a calculator run on the figure, and a link that opens the scaled shapes on the canvas. No image is sent. |
| `export_drawing`POST/v1/drawing-export | A Construction Canvas drawing (a template, shapes, a room layout, commands, house figures or a canvas document) as DXF with the site's CQ-\* layers and as SVG, one plan per level in millimetres, painted by the canvas's own exporters; a file too large to return is rebuilt from the drawing's link. |
| `layout_reinforcement`POST/v1/rebar-layout | A bar layout for a rectangular slab or footing from the bar size, spacing and cover the engineer gives: bars each way inside the cover by the Rebar Calculator's count, bar lengths, total with lap, stock sticks, weight where the Rebar Weight Calculator carries the size, a bar schedule (each mark's size, count, length with its laps at the lap length given, and weight from the nominal diameter) with the stock to buy from the site's cut optimiser (engine 1.7.0), and the layout as SVG and DXF. A quantity layout, never a design. |
| `calculate_batch`POST/v1/calculate-batch | Up to 25 calculator runs in one request, each a slug or permanent id with its own inputs, each answered exactly as calculate answers it, in order; a refused run leaves the others answered. |
| `update_project`POST/v1/project-update | Changes a project carried in a state token — a space added or removed, a dimension changed, a takeoff or calculator line added or removed, a roof's pitch — rebuilds every line and returns the new token, the diff, the totals and a link that opens it in My Project. The token is compact, not encrypted; nothing is stored. |
| `classify_items`POST/v1/classify | Groups lines, calculators or a project's token by MasterFormat 2018 division with My Project's own rule: a suggestion to read a list by, not a specification. No Uniclass or NRM grouping, which no calculator here cites. |
| `resolve_id`GET/v1/id/{id} | A permanent id, an old slug or a site address to the page as it is today, with its slug history. Every calculator, takeoff, guide, worked example, glossary term and diagnosis has one; /id/<id>/ on the site redirects to it. |
| `plan_programme`POST/v1/programme | A build programme from a project's labour hours (a state token, a My Project file, takeoffs or a drawing): tasks by trade, stage and level in the usual order of work, each the site's labour hours or the reader's own over the crew and working day given, in working days rounded up to the half day, with level-by-level overlaps, totals, a CSV and, with a start date, a calendar file. A planning aid in hours and days, no prices; a contractor's programme decides. |
| `optimise_cuts`POST/v1/optimise-cuts | A cut list optimised with the site's own optimiser, as its cut-list tool and the Construction Canvas run it: pieces cut from the stock lengths a merchant sells, or rectangles nested on sheets in edge-to-edge cuts; the stock or sheets to buy, a cutting plan per bar or sheet, the real waste and the bound no plan beats. A piece no stock takes is listed, never split. |
| `estimate_hours`POST/v1/hours | The estimated person-hours on every line of a project, as My Project shows them (hours typed on a line, else the band an operation's production rate gives its quantity, else why there are none), and the project's person-hours and crew-days at the crew and working day given. From a state token, a My Project file, calculators, takeoffs or a drawing. Hours only, never money. |
| `compare_on_job`POST/v1/compare-on-job | A comparison page's two options worked on one job: each side's quantity in both unit systems, allowance, weight and person-hours, the difference in the measure both share, and where the two cross as one job figure is swept, each point run through the calculators' own pipeline. No prices. |
| `run_guide_chain`POST/v1/guide-chain | A guide's "Try the calculation" on the caller's figures: each step's calculator in the guide's order, the materials to buy with waste and order quantities, the checks between them, both unit systems, the person-hours and the guide's own link that opens the block on these figures. |
| `run_example_live`POST/v1/example-live | A worked example with the job's figures changed: each change carried down every step that reads it, each step beside its published figure with the difference, both unit systems, the project lines it makes with their offered hours, and the example's #live= link. A modelled job, not a record. |
| `stair_flight`POST/v1/stair | A stair laid out as built, by the stair pages' own code: risers, goings, pitch, 2R+G, the floor opening for a headroom, the stringer as cut and the timber and fixings (straight, or an L or U on a landing or winders), concrete, formwork and bars (cast), or steel mass (stringers), every length in both systems, the limits read against a named code (never compliance) and a canvas link. The stringer, waist, bars and section are the reader's; nothing is sized. |
| `level_quotes`POST/v1/level-quotes | Two to six quotes for one job levelled line by line against the job's own lines, by the quote check's own reader: included (and where its quantity sits against the job's range, both systems), left out, excluded in words or covered by an alternative; what each adds; the scopes each names; the questions to ask; CSV files. Money is taken out first: no total, no score, no ranking. |
| `write_variation`POST/v1/variation | The variation (change order) between an agreed and a proposed version of a project, by My Project's own code: every line added, removed or changed with its quantity in metric and imperial, the labour hours, and the document as the site prints it. Money only from the reader's own rates (in the files or passed); with none, unpriced. |
| `write_proposal`POST/v1/proposal | The client proposal My Project prints, from a project: the scope by line or trade division, a quantities summary in both systems, assumptions, exclusions, terms, stages of payment and the signature block, every word and figure formatted. Every line "Not priced" unless the reader's own rates are on it or passed. |
| `make_job_sheet`POST/v1/job-sheet | A takeoff's one-page job sheet, as its PDF button builds it: the job's picture as SVG, the key dimensions in metric and imperial, the build-up, the materials going in with what to buy where the takeoff knows a pack, the labour hours by trade, and the link that reopens the takeoff on these figures. No prices. |
| `make_canvas_link`POST/v1/canvas-link | A takeoff the Construction Canvas wraps, or a worked example it draws, at the caller's figures, as a canvas drawing built through the canvas's own commands, in a #d= link that opens it (the fragment never reaches a server), with what the drawing cannot carry. A drawing for quantities, not a construction drawing. |
| `get_illustration`POST/v1/illustration | The topic illustration a page carries, as the SVG's address on the site with its subject in words: one per guide, comparison, diagnosis, worked or calculator example, category, material hub, solve-backwards question and site page, and a shared plate for the glossary, methods, policies, standards, reference tables and tools. Drawings with no figures in them. |
| `write_scope_of_work`POST/v1/scope-of-work | The scope of work My Project writes, from a project or one of its takeoffs: Part 1 General (the jobs and trades, the work each takeoff says it does not cover, submittals, the codes and standards the lines' own calculators cite in the market with who decides what is in force, site conditions), Part 2 Products by trade with quantities and each line's cited document, Part 3 Execution in the takeoffs' order with notices, tests and inspections; North American or UK/Australian headings; also as Markdown. A template for the parties to complete: no prices, not legal advice, not a design. |
| `trim_corner`POST/v1/trim-corner | One corner of skirting/baseboard, casing/architrave or crown/cornice cut on a named saw from the site's library (or the reader's own limits), by the miter-angle page's own solver: per piece the mitre and bevel as the saw's dials read them, the stop each sits on or how far it is from one, how the piece lies on the saw, which side of the blade to keep, and whether the saw can make the cut (with what to do if not); cope or mitre, and the gap a 45° cut would leave, in both unit systems. Cutting geometry only. |
| `plan_room_trim`POST/v1/room-trim | Skirting, crown or picture rail planned round a whole room, by the room trim plan's own code: walls and corners as measured, door openings and built-ins, every piece numbered in fitting order with its long- and short-point lengths in both systems, each end's cope, mitre, butt or 45° scarf (placed on studs when the stud layout is given) with its saw settings, the cut list per stock length and the stock to buy. |
| `scribe_template`POST/v1/scribe-template | The scribe line for a board against an uneven wall, by the scribe template calculator's own code: from gaps measured off a straight line (or a preset wall shape), the widest and narrowest gap, the board width to start from, the strip to cut away, the line itself as full-size SVG and DXF, and how the full-size template tiles on A4, A3, Letter, Tabloid or a roll. A pattern for the cut, not a fit. |
| `fit_panel`POST/v1/fit-panel | A worktop, shelf or panel fitted between walls that are not square, by the panel fit's own code: the true shape with its front and back lengths, setbacks and diagonals, the blank with the scribe allowance and the back wall's bow, then the blank and any other parts nested on the market's stock sizes with part ids, grain held, the saw cuts in order, offcuts worth keeping and edge banding. Geometry and quantities only. |
| `fit_worktop_run`POST/v1/worktop-run | A worktop run along several wall faces, as the Construction Canvas's worktop cuts it: each piece's true shape at the room's real angles, butt or mitre joints at the corners, a straight longer than the stock joined, the front run and the free ends, and every blank nested on worktop lengths with the cut order and the edge banding, in both unit systems. Support, overhangs and loads are the maker's. |
| `miter_chart`POST/v1/miter-chart | The mitre saw angle chart, from the same library as the page: for each corner angle the mitre each piece takes, the outside corner read through the room, the gap a 45° cut leaves on 18 mm and 3/4 in trim and where it opens, crown laid flat at 38/52 and 45/45 (mitre and bevel), and the handing table at a square corner; the site's corners from 80° to 150°, or any asked for. |
| `print_template`POST/v1/print-template | The full-size template a calculator page prints, by the page's own template code: a stair stringer or its step gauge, a rafter's cuts or the whole rafter, a cone or frustum pattern, an arch's centring or voussoirs, an anchor bolt setting board or plate, a curved wall's plate, a spiral stair's tread or landing, a turn's winder blanks, a housed string or ship's ladder stringer, a split stair's stringers, a handrail's gooseneck or easing; the calculator's inputs and the template's own figures in, the lines out as full-size SVG and DXF with the checks to measure, what the template does not show, the structural notice where it applies, and the tiling on A4, Letter or a roll. A pattern for marking out, never a design. |
| `edit_drawing`POST/v1/drawing-edit | A Construction Canvas drawing changed and handed back, by the canvas's own commands: the drawing arrives as its link, its document or any form create_drawing takes, and each edit is one the canvas's editor makes — a wall moved by a vector or a compass direction with the walls joined to it following so the room stays closed, a wall's length set, a door or window added (centred unless an offset is given), properties or the build-up type set, an object removed with its openings, or any drawing command added. A wall can be named by the side it faces, of a room or of the building; where more than one wall answers, the edit is refused with the candidates, never guessed. The answer is the edited drawing (it passes the canvas's own checks), the link that opens it, what changed object by object, and the canvas dock's quantities that moved, before and after, in both unit systems. Quantities only; nothing is sized. |
| `plan_set_takeoff`POST/v1/plan-set-takeoff | A set of plan sheets taken off as the plan takeoff takes them: each sheet with its own scale, set from a line whose real length is known or given as pixels per millimetre, and the counts, lengths and areas read off the sheets as points in each sheet's own pixels. Marks with one layer name add up across the sheets, each measured with its own sheet's scale, and the answer is each layer's total and each sheet's share in metric and US units, with an area's perimeter. A length or area on a sheet with no scale is left out of the totals and counted as unscaled, never added as zero. The engine receives no drawing; quantities only. |
| `roof_framing`POST/v1/roof-framing | A gable or hip roof laid out from the caller's own sizes as the roof framing tool lays it out, with an optional equal-pitch gable wing and its valleys: each common, king common, hip, valley, jack and cripple rafter with its count and hands, its length along the measuring line after the deductions, its tail, the board it needs, the birdsmouth with its height above the plate, the plumb and cheek cuts as saw settings (mitre and bevel, and the angle on the top edge), and the hip's backing or drop; the ridge and fascia runs; a cut list against the caller's stock lengths, where no rafter is ever joined; and, on request, one member's full-size template as SVG and DXF in millimetres. Both unit systems. The geometry of the members given, never their size. |
| `make_share_link`POST/v1/share-link | A whole project as a link, as My Project's Share key makes it: craftquantities.com/project/shared/#s=… opens every line, quantity, unit, calculator, takeoff setup and planned room for anyone, without an account. The project rides in the link's fragment, which no browser sends to a server. No prices, no client name, no site address. |
| `open_share_link`POST/v1/share-link/open | A share link somebody pasted, read out: a shared project's lines with quantities, units and calculators; a planner's plan and its spaces; or a sketched room measured. Decoded and kept nowhere; prices in a link are not read out. |
| `sketch_room`POST/v1/sketch-room | A room drawn as corners (any shape: L, U, angled walls), its doors, windows and height, measured as the sketch page measures it: floor and ceiling area, perimeter, each wall, gross and net wall area in both systems; the /plan/sketch/ link that draws it; and, for four to eight square corners, the room planner's material lines. |
| `get_formula`POST/v1/formula | The open formula library (/formulas/): each equation with its symbols and units in both systems, the calculators bound to it and the test vectors it reproduces; found by id, words or calculator, and worked on the caller's own values. |
| `get_guide`POST/v1/guide | The how-to guides by words, slug or calculator: title, summary, trade, address, the Markdown twin of the full text and the calculators each guide works with. |

```
curl "https://api.craftquantities.com/v1/calculate/concrete-calculator?slabLength=3%20m&slabWidth=3%20m&slabThickness=10%20cm"
```

MCP protocol versions 2026-07-28, 2025-11-25, 2025-06-18, 2025-03-26; the server card is at [/mcp/server-card](https://api.craftquantities.com/mcp/server-card), the OpenAPI description at [/openapi.json](https://api.craftquantities.com/openapi.json) and the API catalogue at [/.well-known/api-catalog](https://api.craftquantities.com/.well-known/api-catalog).

### Every tool, worked

One call for each tool, as an MCP client sends it and as the same request over HTTP. The test suite runs every one of them.

**`search` — Which calculator works out a concrete slab?**

```
{
  "query": "concrete slab",
  "limit": 3
}
```

**`fetch` — Everything about the concrete calculator, as one document.**

```
{
  "id": "calculator:concrete-calculator"
}
```

**`get_calculator` — What does the paint calculator ask for?**

```
{
  "slug": "paint-calculator"
}
```

**`calculate` — How much concrete for a 10 × 10 ft slab, 4 inches thick?**

```
{
  "slug": "concrete-calculator",
  "inputs": {
    "slabLength": "10 ft",
    "slabWidth": "10 ft",
    "slabThickness": "4 in"
  },
  "system": "imperial"
}
```

**`convert_units` — 10 feet in metres.**

```
{
  "value": 10,
  "from": "ft",
  "to": "m"
}
```

**`get_sources` — Where do the concrete calculator's figures come from?**

```
{
  "slug": "concrete-calculator"
}
```

**`open_in_site_link` — A link that opens the concrete calculator on a 3 × 3 m slab.**

```
{
  "slug": "concrete-calculator",
  "inputs": {
    "slabLength": "3 m",
    "slabWidth": "3 m",
    "slabThickness": "10 cm"
  }
}
```

**`get_takeoff` — What does the concrete slab takeoff measure?**

```
{
  "takeoff": "concrete-slab"
}
```

**`run_takeoff` — Everything to order for a 6 × 4 m slab, 100 mm thick.**

```
{
  "takeoff": "concrete-slab",
  "measurements": {
    "length": "6 m",
    "width": "4 m",
    "thickness": "100 mm"
  },
  "system": "metric"
}
```

**`get_example` — The published bathroom re-tile example.**

```
{
  "slug": "bathroom-gutted-and-retiled"
}
```

**`run_example` — Does the bathroom example still meet its published figures?**

```
{
  "slug": "bathroom-gutted-and-retiled"
}
```

**`create_project_file_from_calculations` — A My Project file with the garage slab's concrete.**

```
{
  "name": "Garage slab",
  "system": "metric",
  "calculators": [
    {
      "slug": "concrete-calculator",
      "inputs": {
        "slabLength": "6 m",
        "slabWidth": "4 m",
        "slabThickness": "100 mm"
      }
    }
  ]
}
```

**`create_project_file_from_takeoffs` — A My Project file with the garage slab's takeoff.**

```
{
  "name": "Garage slab",
  "system": "metric",
  "takeoffs": [
    {
      "takeoff": "concrete-slab",
      "measurements": {
        "length": "6 m",
        "width": "4 m",
        "thickness": "100 mm"
      }
    }
  ]
}
```

**`create_project_file_from_house` — A My Project file for the House Estimator's opening house, with its drawing.**

```
{
  "name": "House",
  "system": "metric",
  "houses": [
    {}
  ]
}
```

**`create_project_file_from_plan` — A My Project file for a 4 × 3 m bedroom.**

```
{
  "name": "Bedroom",
  "system": "metric",
  "plan": {
    "kind": "room",
    "name": "Bedroom",
    "figures": {
      "length": "4 m",
      "width": "3 m",
      "height": "2.4 m"
    },
    "doors": {
      "count": 1
    },
    "windows": {
      "count": 1
    }
  }
}
```

**`create_project_file_from_drawing` — A My Project file for a 6 × 4 m deck drawn on the canvas.**

```
{
  "name": "Deck",
  "system": "metric",
  "drawing": {
    "shapes": [
      {
        "shape": "deck",
        "width": "6 m",
        "depth": "4 m"
      }
    ]
  }
}
```

**`check_quote` — Is anything missing from this bathroom quote?**

```
{
  "job": "bathroom-quote",
  "quote": "Wall and floor tiles 12 m2\nTile adhesive 6 bags\nGrout 3 bags"
}
```

**`estimate_house` — Everything a 12 × 8 m one-storey house is built from.**

```
{
  "values": {
    "length": "12 m",
    "width": "8 m",
    "windows": 6,
    "outsideDoors": 2
  },
  "storeys": 1,
  "system": "metric"
}
```

**`list_plans` — Free 3 bedroom house plans with a material list.**

```
{
  "kind": "house",
  "bedrooms": 3
}
```

**`get_plan` — Everything the free 80 m² 2-bedroom bungalow plan takes to build.**

```
{
  "slug": "80-m2-2-bedroom-bungalow-plan",
  "system": "metric"
}
```

**`get_planner` — What does the planner ask for a deck?**

```
{
  "kind": "deck"
}
```

**`plan_room` — Plan a 4 × 3 m bedroom with a door and two windows.**

```
{
  "kind": "room",
  "figures": {
    "length": "4 m",
    "width": "3 m",
    "height": "2.4 m"
  },
  "doors": {
    "count": 1
  },
  "windows": {
    "count": 2
  },
  "name": "Bedroom"
}
```

**`plan_project` — Plan a bedroom and a bathroom with a 6-in-12 roof over both.**

```
{
  "spaces": [
    {
      "kind": "room",
      "name": "Bedroom",
      "figures": {
        "length": "4 m",
        "width": "3 m",
        "height": "2.4 m"
      },
      "doors": {
        "count": 1
      },
      "windows": {
        "count": 2
      }
    },
    {
      "kind": "bathroom",
      "figures": {
        "length": "2.5 m",
        "width": "2 m",
        "height": "2.4 m"
      },
      "doors": {
        "count": 1
      }
    }
  ],
  "roof": {
    "pitch": 6
  }
}
```

**`create_drawing` — Draw a 6 × 4 m studio with a door and a window, list it, and give me the file.**

```
{
  "commands": [
    {
      "op": "wall",
      "ref": "south",
      "from": {
        "x": "0 m",
        "y": "0 m"
      },
      "to": {
        "x": "6 m",
        "y": "0 m"
      }
    },
    {
      "op": "wall",
      "from": {
        "x": "6 m",
        "y": "0 m"
      },
      "to": {
        "x": "6 m",
        "y": "4 m"
      }
    },
    {
      "op": "wall",
      "from": {
        "x": "6 m",
        "y": "4 m"
      },
      "to": {
        "x": "0 m",
        "y": "4 m"
      }
    },
    {
      "op": "wall",
      "from": {
        "x": "0 m",
        "y": "4 m"
      },
      "to": {
        "x": "0 m",
        "y": "0 m"
      }
    },
    {
      "op": "opening",
      "kind": "door",
      "wall": "south",
      "offset": "1.5 m",
      "p": {
        "exterior": true
      }
    },
    {
      "op": "opening",
      "kind": "window",
      "wall": "south",
      "offset": "4 m"
    },
    {
      "op": "room",
      "name": "Studio",
      "at": {
        "x": "3 m",
        "y": "2 m"
      }
    }
  ],
  "name": "Studio",
  "system": "metric"
}
```

**`import_quote` — Turn my supplier's quote into a My Project file, prices and all.**

```
{
  "quote": "Plasterboard 12.5 mm 30 sheets @ 9.50\nJointing compound 4 bags @ 12.00",
  "currency": "£",
  "supplier": "Builders' merchant"
}
```

**`diagnose_symptom` — My breaker keeps tripping. What could it be, and how do I tell?**

```
{
  "symptom": "breaker keeps tripping"
}
```

**`solve_backwards` — I have 24 gallons of wall paint. How much wall will it cover?**

```
{
  "page": "wall-paint",
  "have": "24 gal"
}
```

**`market_documents` — Which document governs wiring a kitchen in England, and who decides what is in force?**

```
{
  "market": "England",
  "subject": "kitchen wiring"
}
```

**`translate_term` — My American contractor says "casing". What is that in the UK, and is it the same thing?**

```
{
  "term": "casing",
  "from": "US",
  "to": "UK"
}
```

**`create_supplier_quote_request` — Turn my slab's bill into a request for quote I can send to two merchants.**

```
{
  "project": "Garage slab",
  "market": "UK",
  "items": [
    {
      "description": "Ready-mix concrete, C25/30",
      "quantity": 2.64,
      "unit": "m³",
      "notes": "Pump access from the drive"
    },
    {
      "description": "Rebar, 12 mm, 12 m lengths",
      "quantity": 11,
      "unit": "sticks"
    },
    {
      "description": "Formwork boards, 2.4 m",
      "quantity": 10,
      "unit": "boards"
    }
  ]
}
```

**`get_benchmark` — Show me the benchmark items for the concrete calculator, with the answer in both unit systems.**

```
{
  "calculator": "concrete-calculator"
}
```

**`measure_sketch` — From the plan in my photo: the living room's floor area and the fence along the garden, scaled from the 6 m dimension.**

```
{
  "reference": {
    "dimension": {
      "from": {
        "x": 100,
        "y": 80
      },
      "to": {
        "x": 700,
        "y": 80
      },
      "length": "6 m"
    }
  },
  "shapes": [
    {
      "name": "Living room",
      "kind": "area",
      "points": [
        {
          "x": 100,
          "y": 100
        },
        {
          "x": 700,
          "y": 100
        },
        {
          "x": 700,
          "y": 500
        },
        {
          "x": 400,
          "y": 500
        },
        {
          "x": 400,
          "y": 350
        },
        {
          "x": 100,
          "y": 350
        }
      ],
      "calculator": {
        "slug": "self-leveling-underlayment-calculator",
        "input": "floorArea"
      }
    },
    {
      "name": "Garden fence",
      "kind": "length",
      "as": "fence",
      "points": [
        {
          "x": 100,
          "y": 600
        },
        {
          "x": 700,
          "y": 600
        },
        {
          "x": 700,
          "y": 800
        }
      ]
    }
  ],
  "system": "metric"
}
```

**`export_drawing` — The single-room template as a DXF and an SVG I can open in CAD.**

```
{
  "template": "single-room",
  "system": "metric"
}
```

**`layout_reinforcement` — Lay out #4 bars at 12 in each way with 2 in cover in a 20 × 12 ft slab, and count them.**

```
{
  "element": "slab",
  "length": "20 ft",
  "width": "12 ft",
  "cover": "2 in",
  "barSize": "#4",
  "spacing": "12 in",
  "system": "imperial"
}
```

**`calculate_batch` — In one request: the concrete for a 6 × 4 m slab, the drywall and the paint for the room (by its permanent id).**

```
{
  "system": "metric",
  "items": [
    {
      "ref": "Slab",
      "slug": "concrete-calculator",
      "inputs": {
        "slabLength": "6 m",
        "slabWidth": "4 m",
        "slabThickness": "100 mm"
      }
    },
    {
      "ref": "Walls",
      "slug": "drywall-calculator"
    },
    {
      "ref": "Paint",
      "slug": "cq-c0656"
    }
  ]
}
```

**`update_project` — Make the bedroom 4.5 m long, add a bathroom and put a 6-in-12 roof over both.**

```
{
  "token": "cqp1.zZYtBDsIgEEWvYv6amFRdzdKb1M4IxMIYoDZNw90NRBfG5fv_vR0v0GDw8JFBeM5jhEEcg4BwFU6qAQZ5y0UCCEFK8hMMbsobaP-GH-8vvHu7JMnNnCXa4kC4HNqzeu507uTEW1dAOB3bXQ1YNfVu0iUW0FBbE1nX37XWNw.a6887bd2",
  "operations": [
    {
      "op": "set_dimension",
      "target": "space",
      "index": 0,
      "field": "length",
      "value": "4.5 m"
    },
    {
      "op": "add_space",
      "space": {
        "kind": "bathroom",
        "name": "Bathroom",
        "figures": {
          "length": "2.5 m",
          "width": "2 m",
          "height": "2.4 m"
        },
        "doors": {
          "count": 1
        }
      }
    },
    {
      "op": "set_roof_pitch",
      "pitch": 6
    }
  ]
}
```

**`classify_items` — Group my slab's bill by MasterFormat division.**

```
{
  "lines": [
    {
      "label": "Ready-mix concrete",
      "quantity": 2.64,
      "unit": "m³",
      "slug": "concrete-calculator"
    },
    {
      "label": "Rebar, 12 mm",
      "quantity": 11,
      "unit": "sticks",
      "slug": "rebar-calculator"
    },
    {
      "label": "Damp-proof membrane",
      "quantity": 30,
      "unit": "m²"
    },
    {
      "label": "Hardcore sub-base",
      "quantity": 2.4,
      "unit": "t"
    }
  ]
}
```

**`resolve_id` — Where is page cq-c0187 today?**

```
{
  "ref": "cq-c0187"
}
```

**`plan_programme` — How long would a crew of two take to build the two-storey house template, eight-hour days, starting 2 November?**

```
{
  "drawing": {
    "template": "two-storey-house"
  },
  "crew": 2,
  "hoursPerDay": 8,
  "startDate": "2026-11-02"
}
```

**`optimise_cuts` — A wall's 24 studs, 3 sills and 3 plates: which lengths of timber to buy from 2.4, 3, 3.6 and 4.8 m, with a 3 mm saw?**

```
{
  "kind": "linear",
  "material": "timber",
  "pieces": [
    {
      "length": "2.326 m",
      "count": 24,
      "label": "stud"
    },
    {
      "length": "1.225 m",
      "count": 3,
      "label": "sill"
    },
    {
      "length": "8.9 m",
      "count": 3,
      "label": "plate",
      "join": true
    }
  ],
  "stock": [
    "2.4 m",
    "3 m",
    "3.6 m",
    "4.8 m"
  ],
  "kerf": "3 mm",
  "system": "metric"
}
```

**`estimate_hours` — How many hours would a crew of two take for the garage slab and a 6 m stud wall?**

```
{
  "name": "Garage",
  "system": "metric",
  "crew": 2,
  "takeoffs": [
    {
      "takeoff": "concrete-slab",
      "measurements": {
        "length": "6 m",
        "width": "4 m",
        "thickness": "100 mm"
      }
    },
    {
      "takeoff": "stud-wall",
      "measurements": {
        "length": "6 m",
        "height": "2.4 m"
      }
    }
  ]
}
```

**`compare_on_job` — Paint or wallpaper for a 4 × 3.5 m room with 2.4 m walls: how much of each, and how long?**

```
{
  "comparison": "paint-vs-wallpaper",
  "job": {
    "roomLength": "4 m",
    "roomWidth": "3.5 m",
    "wallHeight": "2.4 m"
  },
  "system": "metric"
}
```

**`run_guide_chain` — Boarding a 5 × 2.4 m loft deck over insulation on 600 mm trusses: what do I buy?**

```
{
  "guide": "how-to-board-a-loft-over-insulation",
  "measurements": {
    "length": "5 m",
    "width": "2.4 m",
    "centres": "600 mm"
  },
  "system": "metric"
}
```

**`run_example_live` — The retiled bathroom example, but my room is 4.5 × 3 m: what changes?**

```
{
  "example": "bathroom-gutted-and-retiled",
  "figures": {
    "length": "4.5 m",
    "width": "3 m"
  }
}
```

**`stair_flight` — A straight timber stair for a 2.8 m floor-to-floor rise under the UK rules: risers, goings, the opening and the stringer.**

```
{
  "kind": "straight",
  "inputs": {
    "totalRise": "2.8 m",
    "buildingCode": "uk"
  },
  "system": "metric"
}
```

**`level_quotes` — Two bathroom quotes: what does each include, leave out or exclude?**

```
{
  "job": "bathroom-quote",
  "quotes": [
    {
      "name": "Quote A",
      "text": "Wall and floor tiles 12 m2\nTile adhesive 6 bags\nGrout 3 bags\nTanking membrane 8 m2"
    },
    {
      "name": "Quote B",
      "text": "Tiles 11 m2\nAdhesive 5 bags\nExclusions: grout, skip hire"
    }
  ]
}
```

**`write_variation` — The client wants the slab 7 m long instead of 6 m: write the variation at my own rate of 120 a cubic metre.**

```
{
  "name": "Garage slab",
  "system": "metric",
  "market": "UK",
  "before": {
    "calculators": [
      {
        "slug": "concrete-calculator",
        "inputs": {
          "slabLength": "6 m",
          "slabWidth": "4 m",
          "slabThickness": "100 mm"
        }
      }
    ]
  },
  "after": {
    "calculators": [
      {
        "slug": "concrete-calculator",
        "inputs": {
          "slabLength": "7 m",
          "slabWidth": "4 m",
          "slabThickness": "100 mm"
        }
      }
    ]
  },
  "rates": {
    "concrete-calculator": 120
  },
  "reason": "Slab extended by 1 m for a workbench bay."
}
```

**`write_proposal` — Turn the garage slab and its stud wall into a client proposal (I will add my prices).**

```
{
  "name": "Garage",
  "system": "metric",
  "takeoffs": [
    {
      "takeoff": "concrete-slab",
      "measurements": {
        "length": "6 m",
        "width": "4 m",
        "thickness": "100 mm"
      }
    },
    {
      "takeoff": "stud-wall",
      "measurements": {
        "length": "6 m",
        "height": "2.4 m"
      }
    }
  ],
  "companyName": "Example Builders",
  "reference": "Q-0001"
}
```

**`make_job_sheet` — A one-page job sheet for the 6 × 4 m garage slab.**

```
{
  "takeoff": "concrete-slab",
  "measurements": {
    "length": "6 m",
    "width": "4 m",
    "thickness": "100 mm"
  },
  "system": "metric"
}
```

**`make_canvas_link` — Open the 6 × 4 m slab as a drawing on the Construction Canvas.**

```
{
  "takeoff": "concrete-slab",
  "measurements": {
    "length": "6 m",
    "width": "4 m",
    "thickness": "100 mm"
  },
  "system": "metric"
}
```

**`get_illustration` — The illustration of the guide to anchoring into concrete.**

```
{
  "family": "guides",
  "slug": "how-to-anchor-into-concrete"
}
```

**`write_scope_of_work` — Write a scope of work for the garage slab and its stud wall, for my client and me to agree.**

```
{
  "name": "Garage",
  "system": "metric",
  "market": "UK",
  "takeoffs": [
    {
      "takeoff": "concrete-slab",
      "measurements": {
        "length": "6 m",
        "width": "4 m",
        "thickness": "100 mm"
      }
    },
    {
      "takeoff": "stud-wall",
      "measurements": {
        "length": "6 m",
        "height": "2.4 m"
      }
    }
  ]
}
```

**`trim_corner` — Skirting into a 92° inside corner on a double-bevel slider: what do I set the saw to, and do I cope it?**

```
{
  "trim": "skirting",
  "corner": {
    "kind": "inside",
    "angle": 92
  },
  "saw": "double-bevel",
  "system": "metric"
}
```

**`plan_room_trim` — Skirting round a 4 × 3 m room with a door: every piece, its ends and the lengths to buy.**

```
{
  "walls": [
    {
      "label": "North",
      "length": "4 m"
    },
    {
      "label": "East",
      "length": "3 m",
      "openings": [
        {
          "kind": "door",
          "start": "0.4 m",
          "width": "0.8 m"
        }
      ]
    },
    {
      "label": "South",
      "length": "4 m"
    },
    {
      "label": "West",
      "length": "3 m"
    }
  ],
  "corners": [
    {
      "kind": "inside",
      "angle": 90
    },
    {
      "kind": "inside",
      "angle": 91
    },
    {
      "kind": "inside",
      "angle": 89
    },
    {
      "kind": "inside",
      "angle": 90
    }
  ],
  "trim": "skirting",
  "system": "metric"
}
```

**`scribe_template` — These five gaps along a 1.2 m wall: the scribe line, and how it prints on A4.**

```
{
  "readings": [
    {
      "at": "0 mm",
      "gap": "4 mm"
    },
    {
      "at": "300 mm",
      "gap": "11 mm"
    },
    {
      "at": "600 mm",
      "gap": "15 mm"
    },
    {
      "at": "900 mm",
      "gap": "9 mm"
    },
    {
      "at": "1200 mm",
      "gap": "3 mm"
    }
  ],
  "allowance": "10 mm",
  "formats": [
    "svg"
  ],
  "system": "metric"
}
```

**`fit_panel` — A worktop between walls at 91° and 88.5°, 2.4 m apart, with a 6 mm bow: the true shape and the length to buy.**

```
{
  "kind": "worktop",
  "span": "2.4 m",
  "leftAngle": 91,
  "rightAngle": 88.5,
  "bow": "6 mm",
  "system": "metric"
}
```

**`fit_worktop_run` — An L-shaped worktop, 3 m and 2.2 m round a square corner: each piece and the lengths to buy.**

```
{
  "faces": [
    {
      "length": "3 m",
      "label": "Back"
    },
    {
      "length": "2.2 m",
      "label": "Side"
    }
  ],
  "corners": [
    {
      "kind": "inside",
      "angle": 90
    }
  ],
  "start": {
    "end": "wall",
    "angle": 90
  },
  "finish": {
    "end": "open"
  },
  "system": "metric"
}
```

**`miter_chart` — The mitre and the 45° gap for 88°, 90°, 92° and 135° corners.**

```
{
  "angles": [
    88,
    90,
    92,
    135
  ],
  "handing": false,
  "system": "metric"
}
```

**`print_template` — A full-size step gauge for the stringer the stair stringer calculator opens on.**

```
{
  "calculator": "stair-stringer-calculator",
  "kind": "gauge",
  "formats": [
    "svg"
  ],
  "system": "metric"
}
```

**`edit_drawing` — Take the single-room template, move its east wall 300 mm east and put a window in the north wall.**

```
{
  "drawing": {
    "template": "single-room"
  },
  "operations": [
    {
      "op": "move",
      "target": {
        "side": "east"
      },
      "direction": "east",
      "distance": "300 mm"
    },
    {
      "op": "add_opening",
      "target": {
        "side": "north"
      },
      "kind": "window"
    }
  ],
  "system": "metric"
}
```

**`plan_set_takeoff` — Two plan sheets at their own scales: 4 outlets and a 7 m wall run on the ground floor, 3 outlets and a 4 m run upstairs. The totals per layer and per sheet.**

```
{
  "name": "House A",
  "sheets": [
    {
      "name": "Ground floor",
      "scale": {
        "line": [
          [
            100,
            100
          ],
          [
            1100,
            100
          ]
        ],
        "length": "5 m"
      },
      "marks": [
        {
          "layer": "Outlets",
          "kind": "count",
          "countType": "outlet",
          "points": [
            [
              200,
              300
            ],
            [
              400,
              300
            ],
            [
              600,
              300
            ],
            [
              800,
              500
            ]
          ]
        },
        {
          "layer": "Partition walls",
          "kind": "length",
          "points": [
            [
              100,
              600
            ],
            [
              1100,
              600
            ],
            [
              1100,
              1000
            ]
          ]
        }
      ]
    },
    {
      "name": "First floor",
      "scale": {
        "pixelsPerMm": 0.1
      },
      "marks": [
        {
          "layer": "Outlets",
          "kind": "count",
          "countType": "outlet",
          "points": [
            [
              150,
              150
            ],
            [
              450,
              150
            ],
            [
              750,
              150
            ]
          ]
        },
        {
          "layer": "Partition walls",
          "kind": "length",
          "points": [
            [
              0,
              0
            ],
            [
              400,
              0
            ]
          ]
        }
      ]
    }
  ],
  "system": "metric"
}
```

**`roof_framing` — A 24 by 40 ft hip roof at 6 in 12 with a 12 in overhang, 2×8 commons and 2×10 hips at 16 in centres: every rafter's length and cuts, and the boards to buy in 8 to 20 ft lengths.**

```
{
  "kind": "hip",
  "span": "24 ft",
  "length": "40 ft",
  "pitch": 6,
  "overhang": "12 in",
  "rafterDepth": "7.25 in",
  "rafterThickness": "1.5 in",
  "hipDepth": "9.25 in",
  "hipThickness": "1.5 in",
  "ridgeThickness": "1.5 in",
  "plateWidth": "3.5 in",
  "spacing": "16 in",
  "stock": [
    "8 ft",
    "10 ft",
    "12 ft",
    "14 ft",
    "16 ft",
    "18 ft",
    "20 ft"
  ],
  "system": "imperial"
}
```

**`make_share_link` — Share the 6 × 4 m garage slab takeoff with my client as a link.**

```
{
  "name": "Garage",
  "system": "metric",
  "takeoffs": [
    {
      "takeoff": "concrete-slab",
      "measurements": {
        "length": "6 m",
        "width": "4 m",
        "thickness": "100 mm"
      }
    }
  ]
}
```

**`open_share_link` — What is in this sketch link somebody sent me?**

```
{
  "link": "https://craftquantities.com/plan/sketch/#s=AQDEEwYAAJBOAACgH58fAACgH-8uAAIKjgyEB4IQAAHsDrAJsAmEBwA"
}
```

**`sketch_room` — An L-shaped room, 5 by 4 m with a 2 by 2 m notch, 2.5 m high, one door and one window: its areas, walls and materials.**

```
{
  "corners": [
    {
      "x": 0,
      "y": 0
    },
    {
      "x": 5,
      "y": 0
    },
    {
      "x": 5,
      "y": 2
    },
    {
      "x": 3,
      "y": 2
    },
    {
      "x": 3,
      "y": 4
    },
    {
      "x": 0,
      "y": 4
    }
  ],
  "unit": "m",
  "height": 2.5,
  "openings": [
    {
      "kind": "door",
      "wall": 5
    },
    {
      "kind": "window",
      "wall": 0
    }
  ],
  "finish": {
    "walls": "paint",
    "ceiling": "paint",
    "floor": "click",
    "board": "none"
  },
  "system": "metric"
}
```

**`get_formula` — The volume of a 300 mm round column form 1.2 m tall, and the formula behind it.**

```
{
  "id": "cylinder-volume",
  "values": {
    "d": 0.3,
    "h": 1.2
  }
}
```

**`get_guide` — Is there a guide to pouring a concrete slab, and which calculators does it use?**

```
{
  "query": "pour a concrete slab",
  "limit": 3
}
```

## Units travel with numbers

A length, area or volume is written with its unit — "12 ft", "3.5 m" or {"value": 12, "unit": "ft"}, and a length in feet and inches with its foot and inch marks. A bare number on one is refused with the units it accepts, unless the request says inputUnits "base", the form the published test vectors use. An input left out takes the value its page opens on, and the answer lists it as a default.

## What every answer carries

The figure in both unit systems as the page prints it, every input with where it came from, the breakdown, the confidence and any allowance, the calculator's version and the date its sources were checked, the sources as the calculator cites them, a citation in plain, APA, Harvard and BibTeX form with today's date, the page and a link that reopens it with the same inputs, the licence and a notice.

## A report an assistant can quote

Over MCP, each tool's text is a short Markdown report: the figure in both unit systems, the inputs as read, the assumptions, what a professional must decide, the page link and one citation line built only from the calculation's own version, sources date and page. The full answer is the structured content. Over HTTP, add ?format=md or send Accept: text/markdown. search and fetch answer JSON, as OpenAI's search contract reads it. Every other tool also takes detail summary: the result lines, what a professional must decide, the citation and the page only.

## The same answer as the page

The engine has no formula of its own. It calls the calculator's own code with the four steps the page takes, and the test suite holds it to every published test vector and to every calculator's opening answer in both systems.

## Why an assistant might cite this, and why we cannot make it

No site can make an assistant cite it. What this offers is what makes citing easy: an exact figure with its unit, the version and sources of the calculation that produced it, a stable page, a ready citation and an open licence. Whether a given assistant uses it is that assistant's decision.

## Nothing is kept

The engine stores nothing and logs no request: no account, no key, no record of the inputs sent. A request is computed on Cloudflare's network and forgotten. The calculators on the site's own pages still run in the visitor's browser.

## A project in a token

Every My Project file the engine makes also comes with a state token: the project's inputs, deflated and base64url-encoded, with a format version (cqp1) and a CRC-32 check. Passed back with operations, it changes the project without the engine keeping anything; opened as craftquantities.com/project/#p=<token>, the site rebuilds the project in the browser and adds it beside yours when you say so. A token holds at most 16,384 characters. It is compact, not encrypted: anyone who has it can read the project.

## Permanent ids

Every calculator, takeoff, guide, worked example, glossary term and diagnosis has a permanent id (cq-c0187 is the concrete calculator), assigned once and kept when a page is renamed or moved. craftquantities.com/id/<id>/ redirects to the page, every engine route that takes a slug takes an id or an earlier slug, and the whole list is published at craftquantities.com/api/v1/ids.json.

## An open drawing format

A Construction Canvas drawing is published as a versioned JSON Schema at craftquantities.com/schemas/canvas-drawing-5.json: levels, build-up types and placed objects in whole millimetres, nothing derived. create_drawing and edit_drawing return drawings in it, and edit_drawing gives each drawing a revision: an edit sent with a revision the drawing has moved on from is refused, so two assistants, or an assistant and a person, never overwrite each other's change. The schema holds the shape; the canvas's own checks are the final word. A drawing for quantities: nothing in it is sized.

## An open request-for-quote format

The request for quote and the supplier's reply are published as a versioned JSON Schema at craftquantities.com/schemas/rfq-1.json, with how a request link carries them, so a merchant can read a request into their own system and write a reply the site opens. Nothing is sent by the site or the engine: the request and the reply travel as links or files people hand over.

## Typed calculators, one trade at a time

Each trade has an MCP endpoint of its own, api.craftquantities.com/mcp/<trade>, serving that trade's calculators as typed tools: every input named, with its units, opening values and range, each tool answering exactly as calculate does. The same calculators are typed OpenAPI operations at craftquantities.com/openapi/<trade>.json (operationId = the tool's name, fixed by the calculator's permanent id), and each calculator's request is a JSON Schema at craftquantities.com/schemas/calculators/<slug>.json, or <id>.json. The lists are at api.craftquantities.com/v1/trades and craftquantities.com/openapi/index.json. The main /mcp stays as it is: search, describe and calculate for every calculator, and the workflow tools.

## Show the working

calculate and every typed tool take explain: true. The answer then also carries the working: the inputs as the calculator received them, every intermediate figure its own code reports with its unit, which inputs moved each figure (measured by running it again), the allowance, the range check and the restatement in each unit system, ending on the same figures. No formula is written for a calculator that does not state one; the answer says what the working leaves out.

## The page's drawing, as SVG

calculate takes drawing: true on the nine calculators whose pages draw the job (engine 1.7.0): the tile set-out with every tile and cut (tile-layout-calculator), the deck plan with joists, butt joints and a fixing at every crossing (deck-board-calculator), the wall elevation course by course with the bond, cut units, openings where they were placed and the lintels (brick-calculator, cmu-block-grout-calculator), the drywall hanging layout with whole and cut boards (drywall-calculator), the stud and plate layout at the spacing (framing-stud-calculator), the siding face with its starter and J-channel runs (siding-calculator), the gutter runs with their joints and downspouts (gutter-calculator) and the fence elevation with its posts, rails, pickets, gates and post concrete (fence-calculator). The answer then also carries the drawing as a standalone SVG, a sentence describing it in the system asked for, what it lays and its units per metre for printing to a scale. A setting-out aid from the figures given: nothing is sized.

## Share links, sketches and the scope of work

make_share_link puts a whole project in one craftquantities.com/project/shared/#s=… link, as My Project's Share key does: no account, and the project rides in the link's fragment, which no browser sends to a server; no prices, client name or site address travel. open_share_link reads such a link back, or a planner's plan link, or a sketch link. sketch_room measures a room drawn as corners and returns the /plan/sketch/ link that draws it. write_scope_of_work writes the three-part scope of work My Project writes (General, Products, Execution) with North American or UK and Australian headings: a template for the parties, not legal advice. get_formula and get_guide open the formula library and the how-to guides.

## Labour hours, with their sources

estimate_hours and the takeoffs' labour bands carry each production rate's confidence grade (A: two independent published sources agree with the band; B: one does; C: a trade rule of thumb), what the grade means, the address of its source card on /methodology/labour-rates/ and the citations behind it (NAVFAC P-405, Brazil's SINAPI), so an assistant can say where an hour came from. Hours only: the hourly rate, and so any money, is the caller's own.

## Tools in the browser (WebMCP)

In a browser that offers a model context (document.modelContext, Chrome's WebMCP preview), every page of the site registers tools for the browser's assistant and withdraws its own when the page is left. Seven are on every page: search_site, open_page, get_page_summary, set_preferences, list_tools_here, add_to_my_project and get_my_project_summary. Each kind of page adds its own: the calculators, takeoffs, planners, room sketch, House Estimator, Construction Canvas, roof framing, My Project, the quote checks, My Company, the price journal, the field tools, the embeds builder and the reading pages. The full catalogue, with every tool's inputs, answer and an example, is at /developers/webmcp/. A tool that only reads is marked read-only; one that changes what is kept (a project, plan, drawing, price book or preference) is marked consequential and works through the page's own controls, as a step its Undo takes back where the page has one. None sizes a structure or quotes a price. A browser without a model context loads none of it.

## Fair use

There is no key and no charge. Requests may be limited per address to keep the service up for everyone; each address may run 60 calculations, takeoffs, plans, drawings or project updates (a batch of up to 25 calculations counts as one) and 300 look-ups a minute, and a request past that gets HTTP 429 and should wait a minute. Descriptions may be cached for a day and GET answers for an hour; each carries an ETag, so asking again with If-None-Match costs nothing.

## Discovery files

A client or a registry can learn what the server is before it connects. Each of these is a plain GET, with no key.

**Server card**

[api.craftquantities.com/mcp/server-card](https://api.craftquantities.com/mcp/server-card)

**API catalogue (RFC 9727)**

[api.craftquantities.com/.well-known/api-catalog](https://api.craftquantities.com/.well-known/api-catalog)

**OpenAPI description**

[api.craftquantities.com/openapi.json](https://api.craftquantities.com/openapi.json)

**On this site**

[/.well-known/mcp.json](https://craftquantities.com/.well-known/mcp.json)

_Ask the server what it offers_

```
curl -s https://api.craftquantities.com/mcp/server-card
```

Prefer to keep requests on your own machine? The [npm package](https://craftquantities.com/developers/npm/) runs the same tools locally over stdio.

On this page

At a glance

**Tools on the main endpoint**

67

**Trade endpoints**

42

**Sign-in or key**

None

**Engine version**

1.9.0

Addresses

- MCP`api.craftquantities.com/mcp`
- REST`api.craftquantities.com/v1`
- Files`craftquantities.com/api/v1`
- OpenAPI [api.craftquantities.com/openapi.json](https://api.craftquantities.com/openapi.json)

Check before you build

- [How the maths is checked](https://craftquantities.com/validation/)
- [The vectors as a benchmark](https://craftquantities.com/benchmark/)
- [Service status](https://craftquantities.com/status/)
- [Embed a calculator instead](https://craftquantities.com/embeds/)

[Home](https://craftquantities.com/)

Developers

Developers & integrations

- [Overview and live call](https://craftquantities.com/developers/)
- [API reference](https://craftquantities.com/developers/api-reference/)
- [Static JSON API](https://craftquantities.com/api/)
- [Remote MCP server](https://craftquantities.com/developers/mcp/)
- [npm package](https://craftquantities.com/developers/npm/)
- [Command line](https://craftquantities.com/developers/cli/)
- [WebMCP in the browser](https://craftquantities.com/developers/webmcp/)
- [Claude and ChatGPT](https://craftquantities.com/ai/)
- [Embeds and WordPress](https://craftquantities.com/embeds/)
- [Browser extension](https://craftquantities.com/tools/browser-extension/)
- [Changelog](https://craftquantities.com/developers/changelog/)
- [Service status](https://craftquantities.com/status/)

On this page

- Connect a client
- One endpoint per trade
- What an answer carries
- Interactive views
- The 67 tools
- Discovery files

---
Source: https://craftquantities.com/developers/mcp/
Craft Quantities: free to read, cite and link to; the pages are not licensed for republication. Quantities only: no prices, no design and no certification.
