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

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.

Inputs of Shelf Sag & Deflection Calculator
FieldTypeDefaultDescription
spannumber762Span between supports
depthnumber277Shelf depth (front to back)
thicknessnumber18Shelf thickness
materialselect (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
customEnumber—Custom modulus of elasticity (optional). Replaces the material value, for example from the board maker’s data sheet.
supportselect (simple, fixed)"simple"Supports
uniformLoadnumber33Uniform load along the shelf. A full row of books is about 30–40 kg per metre on a 300 mm deep shelf.
pointLoadnumber0Point load at mid-span
selfWeightbooleantrueInclude the shelf’s own weight
longTermbooleantrueLong-term load (include creep)
limitselect (L/240, L/300, L/360, L/600)"L/300"Sag limit
stripHeightnumber—Front strip height (optional). A solid edge strip or face-frame rail glued to the front edge, top flush with the shelf. Empty = none.
stripThicknessnumber19Front strip thickness
stripMaterialselect (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)

{
  "mcpServers": {
    "kerfwise-shelf-sag": { "type": "http", "url": "https://kerfwiseshelfsag.usefulweb.site/mcp" }
  }
}