Repository avatar
Other Tools
v1.0.0
active

fitbeforebuy

io.github.shelchanel/fitbeforebuy

Screen packaged furniture for doorway and elevator clearance before purchase or delivery.

Documentation

FitBeforeBuy — Furniture delivery and doorway clearance API

Screen a measured furniture or appliance package against doorways and elevator cabins before checkout or dispatch. Get a machine-readable compatibility report with candidate orientations, clearance, and review flags.

When to use it

Use when a shopper asks “Will this sofa fit through my door?”, an appliance buyer needs an elevator clearance check, or delivery operations wants a preliminary review flag before dispatch. Request the packaged length, width and height from the seller and measured clear widths and heights along the route. Include the elevator door and cabin as separate openings. Use one unit throughout, inches or centimeters. Send only measurements and generic labels such as “Front door.”

Connect via Apify MCP

Use Streamable HTTP at https://mcp.apify.com/?tools=allureixu/fitbeforebuy. Set the client’s Authorization header to Bearer <buyer Apify token> using the client's secret picker or secret store. Initialize the connection and use tools/list to discover the tool name and invocation schema. For a buyer without an Apify account, Apify AGI documents prepaid tokens bought via x402, MPP or Skyfire. The current minimum purchase is $1. Prepaid credit expires after 14 days, and unused credit is nonrefundable.

Run via REST

Use POST https://api.apify.com/v2/acts/allureixu~fitbeforebuy/run-sync-get-dataset-items with JSON and an Apify bearer token. This is a billable operation. The request below uses a $0.06 pay-per-event spending ceiling as an example. Authorize a ceiling appropriate for your application and check current pricing. Store the buyer token securely. Keep the response and avoid automatically repeating a request after an ambiguous timeout, since the original run may already have been charged.

curl --fail-with-body --silent --show-error \
  -X POST 'https://api.apify.com/v2/acts/allureixu~fitbeforebuy/run-sync-get-dataset-items?maxTotalChargeUsd=0.06' \
  -H "Authorization: Bearer ${APIFY_TOKEN}" \
  -H 'Content-Type: application/json' \
  --data-binary @fitbeforebuy-example.json

Save this sample as fitbeforebuy-example.json:

{
  "unit": "in",
  "packageDimensions": {"length": 80, "width": 34, "height": 28},
  "openings": [
    {"name": "Front door", "width": 32, "height": 80},
    {"name": "Elevator door", "width": 36, "height": 82},
    {"name": "Elevator cabin", "width": 54, "height": 84, "depth": 78}
  ],
  "clearance": 1,
  "keepUpright": false
}

clearance is the total spare space required per dimension. keepUpright restricts the original height to the vertical axis. Use depth for a finite interior space such as an elevator cabin.

Interpret the report

ResultHandling
all_openings_screened_passEach opening independently has a candidate orientation with the required clearance. Present it as a preliminary result and ask the delivery provider to confirm the route.
manual_review_neededRoute the case for review before recommending checkout or dispatch.
straight_fit_candidateThe opening has an axis-aligned orientation meeting the clearance requirement.
insufficient_clearanceA candidate fits dimensionally, with less spare space than requested.
no_axis_aligned_fitNo allowed axis-aligned orientation fits this opening.

The Actor evaluates up to six axis-aligned orientations per opening. Its screen excludes turns, continuous rotation, stairs, approach space, weight, handling and disassembly. Treat missing dimensions, errors and empty results as unresolved. Use an independent delivery assessment for the final decision.

No installation packages available.