Cliff
v0.1.0Hardware parts with STEP files saved to disk for SolidWorks or any CAD tool, shop quotes and orders.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
search_parts
Find bought parts by free text: a name, part number, standard designation, size or what the part must do ('M3x12 socket head', '6811ZZ', 'feetech sts3215', 'waterproof 4 pin connector'). family narrows it (fastener, bearing, serial_bus_servo, bldc_actuator, compute, connector_cable, motion_transmission, structure, electronics); category narrows by a taxonomy path prefix ('fluid', 'fluid/fitting', 'sealing/o_ring', 'motion/bearing'). Both keep parts not yet classified. Each result's `cad` says whether get_cad returns a STEP file; cad_only=true keeps only those. Standard scre…
| Parameter | Type | Description |
|---|---|---|
query * | string | |
cad_only | boolean | |
category | ||
family | ||
limit | integer |
get_part
One part's full record: specs, tolerances (only where a standard or vendor states them), license and attribution.
| Parameter | Type | Description |
|---|---|---|
part_id * | string |
get_cad
A STEP download URL for the part (millimetres), to import into SolidWorks, Fusion, Onshape, FreeCAD or Cliff, with its attribution. Geometry is nominal; threads are not modeled. Saved to this computer, its `path` returned, unless save_to is ''.
| Parameter | Type | Description |
|---|---|---|
part_id * | string | |
save_to | string | A folder on this computer to save the file in (default: CLIFF_MCP_DOWNLOADS, else ~/Downloads/Cliff). Set save_to to an empty string to only get the link. |
get_offers
Where to buy the part for this quantity: each seller's price (live where the store can be read now, else the remembered price and when), pack size and what the quantity costs in whole packs, and how the order is handed over (one cart link for a store that takes one). Each offer's id is stable: hold it for make_cart, a BOM's choice or start_checkout.
| Parameter | Type | Description |
|---|---|---|
part_id * | string | |
quantity | integer |
upload_file
Upload a model (STEP, STL, OBJ, 3MF, or native CAD) or a PDF print from this computer, to quote it, split it into its parts or send it to a shop. path is the file's path ('~/Desktop/Bracket.step'); name, if given, is what to call it (default: the file's own name). From SolidWorks or any CAD tool: save or export STEP, then upload that path. Returns its file id. Needs an API key.
| Parameter | Type | Description |
|---|---|---|
path * | string | The file's path on this computer. |
name | string | What to call it (default: the file's own name). |
decompose_file
An assembly (a STEP export from SolidWorks, Fusion, Onshape, Inventor...) split into its parts: each distinct part once with how many the assembly uses, the stock part its name says it is (a Toolbox screw, a bearing by number or size) with the words it was read from, each other part as its own uploaded STEP file, and Cliff's check of it as milled, turned, sheet and printed (can it, what blocks it, Cliff's estimate). `bom_lines` go to price_bom once you add each made line's process and material (choose from its `processes`; ask the person when the material matters). Read onc…
| Parameter | Type | Description |
|---|---|---|
file_id * | string |
analyze_file
What Cliff reads from an uploaded file. A model: its measures and Cliff's machining plan for the process ('cnc' or 'turn') and material (setups, cutting minutes, stock, and manufacturability findings with where and how to fix each). A print (PDF, no process needed): its facts (material, finish, tolerances, threads, notes), each with the words it came from.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
material | ||
process |
convert_file
An uploaded model in another format ('step', 'stl', 'obj' or '3mf'), as Cliff CAD exports it, without planning it: STEP to a mesh, a mesh to STEP. Native CAD (SolidWorks, ...) is not read: export STEP from your CAD. Returns the new file (its links.content has the bytes). A mesh made into STEP stays faceted. Needs an API key. Saved to this computer, its `path` returned, unless save_to is ''.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | |
to * | string | |
save_to | string | A folder on this computer to save the file in (default: CLIFF_MCP_DOWNLOADS, else ~/Downloads/Cliff). Set save_to to an empty string to only get the link. |
list_shops
The machine shops on Cliff: where they are, their machines, materials, finishes and tolerances. process 'cnc' or 'turn'. A shop's rates are its own; its prices come in quotes.
| Parameter | Type | Description |
|---|---|---|
material | ||
process |
quote_made_part
Every shop's price to make a custom part, at the shop's own rates. process: 'cnc' (milled) or 'turn'. material as a shop lists it ('Aluminum 6061-T6'). part: {"name", "file": a model's file id from upload_file, and "print": a PDF print's file id} (best: priced from Cliff's own machining plan), or {"name", "measures": {"box_mm": [x, y, z], "volume_mm3", "surface_mm2", "holes", "tolerance_mm"}} (rougher). Each quote: status (firm: the shop's own rules accept it now; estimate: the shop confirms), prices at other quantities, lead times, and the shop's record of holding its esti…
| Parameter | Type | Description |
|---|---|---|
material * | string | |
part * | object | |
process * | string | |
quantity | integer | |
shops |
make_cart
Chosen offers grouped into one order a store: lines [{"offer": an offer id from get_offers, "quantity"}]. Each store's lines priced in whole packs at the price last seen, and handed over as one cart link where the store takes one, else its product pages.
| Parameter | Type | Description |
|---|---|---|
lines * | array |
quote_shop_order
Several made parts priced at one shop as one order: its setups and minimum counted once, so parts sent together can cost less than each alone. items: [{"ref", "process", "material", "quantity", "part": as quote_made_part takes it}]. Returns one quote id for the whole order (for start_checkout) and why the shop declines any part. Needs an API key.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
shop_id * | string |
price_bom
Price a whole design in one call and group it into the orders it would become. lines: [{"ref", "part": a part id} or {"ref", "text": "6811ZZ bearing"} (bought), or {"ref", "made": {"process", "material", "part": as quote_made_part takes it}} (made), each with "quantity" per build]. Each line's options: its offers or its shops' quotes; a text line says which part it matched and what else it might be. Nothing is chosen for you (update_bom). The chosen lines become carts (make_cart) and one quote a shop (quote_shop_order); `checkout` is start_checkout's arguments. Needs an API…
| Parameter | Type | Description |
|---|---|---|
lines * | array | |
builds | integer | |
name |
update_bom
Change a BOM: lines [{"ref", "choice": an option id (an offer id, a shop's quote id) or null, "quantity"}], or builds. Re-pricing keeps each choice where that seller or shop is still there. Needs an API key.
| Parameter | Type | Description |
|---|---|---|
bom_id * | string | |
builds | ||
lines |
get_bom
A BOM as last priced: its lines, options and choices, orders, what is not ready, and the total.
| Parameter | Type | Description |
|---|---|---|
bom_id * | string |
start_checkout
Hand priced orders to a person: quotes (quote ids from quote_made_part or quote_shop_order; each goes to its shop at the price quoted) and offers ([{"offer", "quantity"}]: stock parts, which Cliff buys from each store for them). Returns the url of one page where the person reviews everything, gives where to ship, and buys it all with one card: one hold, one charge for what goes ahead. Shops get their orders; Cliff buys the rest and has it shipped to them. Give the url to the person; nothing is bought until they approve. A BOM's `checkout` is these arguments. note: the hando…
| Parameter | Type | Description |
|---|---|---|
need_by | ||
not_ready | ||
note | ||
notes | ||
offers | ||
quotes | ||
title |
checkout_status
Where a checkout stands: approved or not, its one payment (held, charged), each order's status (waiting for the shop, accepted, a new price, declined, Cliff is buying it, bought, could not buy, shipped) and tracking.
| Parameter | Type | Description |
|---|---|---|
checkout_id * | string |
request_removal
For rights holders: ask for a hosted file (or every file of a vendor) to be removed.
| Parameter | Type | Description |
|---|---|---|
contact * | string | |
part_or_vendor * | string | |
reason | string |
download_file
Save one of your files (an upload, a decomposed assembly's part, a converted model) to this computer and return its path, to open in your CAD tool. Needs an API key.
| Parameter | Type | Description |
|---|---|---|
file_id * | string | The file's id (file_...). |
save_to | string | A folder on this computer to save the file in (default: CLIFF_MCP_DOWNLOADS, else ~/Downloads/Cliff). Set save_to to an empty string to only get the link. |