API & MCP

Everything a person can do on Will It Fit?, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Will It Fit?

Enter the item’s length, width and height and the measurements along the delivery path. Will It Fit? tries every orientation, in-plane diagonal tilts and the classic moving-sofa corner calculation, then reports pass/fail per checkpoint with spare centimetres and how to carry the item.

Inputs of Will It Fit?
FieldTypeDefaultDescription
itemLength (required)number—Item length
itemWidth (required)number—Item width/depth
itemHeight (required)number—Item height
clearancenumber2Safety clearance. Subtracted from every opening dimension (hands, padding, wobble).
doorWidth (required)number—Door clear width. Measure between door stops with the door fully open.
doorHeight (required)number—Door clear height
hallwayWidthBeforenumber—Hallway width before corner. Leave empty to skip the corner check.
hallwayWidthAfternumber—Hallway width after corner. Defaults to the width before the corner.
ceilingHeightnumber250Hallway ceiling height. Used to tilt the item upward in the corner.
stairsWidthnumber—Stair width. Leave empty to skip stairs.
stairsHeadroomnumber—Stair headroom (perpendicular to pitch)
elevatorDoorWidthnumber—Elevator door width. Leave elevator fields empty to skip.
elevatorDoorHeightnumber—Elevator door height
elevatorCabinWidthnumber—Elevator cabin width
elevatorCabinDepthnumber—Elevator cabin depth
elevatorCabinHeightnumber—Elevator cabin height
roomWidthnumber—Room width. Leave empty to skip the room check.
roomDepthnumber—Room depth
roomHeightnumber—Room height

Example request

3-seat sofa through a flat door and corridor

curl -X POST https://willitfit.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"itemLength":210,"itemWidth":90,"itemHeight":85,"clearance":2,"doorWidth":80,"doorHeight":200,"hallwayWidthBefore":100,"hallwayWidthAfter":100,"ceilingHeight":250,"roomWidth":400,"roomDepth":350,"roomHeight":250}'

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": {
    "will-it-fit": { "type": "http", "url": "https://willitfit.usefulweb.site/mcp" }
  }
}