API & MCP
Everything a person can do on Shelf Sag & Deflection Calculator, a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://kerfwiseshelfsag.usefulweb.site/api/v1/calculate– run Shelf Sag & Deflection CalculatorGET https://kerfwiseshelfsag.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Shelf Sag & Deflection Calculator
Calculate the mid-span sag of a shelf from its span, depth, thickness and material under a uniform and a point load, simply supported or fixed. Includes self-weight, long-term creep and a glued front strip or face-frame rail, and suggests a thickness, strip height or support.
| Field | Type | Default | Description |
|---|---|---|---|
span | number | 762 | Span between supports |
depth | number | 277 | Shelf depth (front to back) |
thickness | number | 18 | Shelf thickness |
material | select (pb-p2, pb-p4, pb-p6, mdf, osb3, ply-birch, ply-birch-cross, oak-red, oak-white, maple-sugar, maple-red, beech, birch-yellow, cherry, walnut, ash-white, poplar, douglas-fir, pine-white) | "mdf" | Shelf material |
customE | number | — | Custom modulus of elasticity (optional). Replaces the material value, for example from the board maker’s data sheet. |
support | select (simple, fixed) | "simple" | Supports |
uniformLoad | number | 33 | Uniform load along the shelf. A full row of books is about 30–40 kg per metre on a 300 mm deep shelf. |
pointLoad | number | 0 | Point load at mid-span |
selfWeight | boolean | true | Include the shelf’s own weight |
longTerm | boolean | true | Long-term load (include creep) |
limit | select (L/240, L/300, L/360, L/600) | "L/300" | Sag limit |
stripHeight | number | — | Front strip height (optional). A solid edge strip or face-frame rail glued to the front edge, top flush with the shelf. Empty = none. |
stripThickness | number | 19 | Front strip thickness |
stripMaterial | select (pb-p2, pb-p4, pb-p6, mdf, osb3, ply-birch, ply-birch-cross, oak-red, oak-white, maple-sugar, maple-red, beech, birch-yellow, cherry, walnut, ash-white, poplar, douglas-fir, pine-white) | "oak-red" | Front strip material |
Example request
MDF bookshelf, 762 mm span, a full row of books
curl -X POST https://kerfwiseshelfsag.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"span":762,"depth":277,"thickness":18,"material":"mdf","uniformLoad":33,"limit":"L/300"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://kerfwiseshelfsag.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
kerfwise_shelf_sag - Local stdio connector:
node src/mcp-stdio.ts --tool=kerfwise-shelf-sag
{
"mcpServers": {
"kerfwise-shelf-sag": { "type": "http", "url": "https://kerfwiseshelfsag.usefulweb.site/mcp" }
}
}