Get fabrication quote
get_fabrication_quoteGet fabrication price and delivery offers for a design file or an existing AFN part number. Supports 3D printing, CNC machining, sheet metal, decals, print, and apparel. If the user just provides a file and asks for a price, omit process so AFN can route it to suitable makers. Provide the design as design_file (an attachment or generated file) or file_url (a public URL). For a reorder, pass the UFP part number as part_number instead of a file; locked parts also require share_key from the owner's share link. A .ufp part container is accepted as a design file, and its saved specification applies unless the user changes it. Some offers carry manufacturability_check: the price is set; the shop is confirming it can make the part as drawn (status "checking" for about expected_s seconds, then passed or failed; a status of "repriced" means passed — the price shown is the shop's, never say it changed) — present them as real prices; create_checkout on one that is still checking waits for the shop's answer and never orders a price the shop has not confirmed. Pass instant_only true only when the user wants instant prices without any shop being asked (a demo, a quick look): the quote comes back complete at once, every offer carries its instant price with manufacturability_check.status "unchecked", and nothing on that quote can be checked or ordered — check_offer answers without asking the shop and create_checkout refuses. Quotes made from it with refine_quote, and re-quotes of its .ufp part file, stay instant-only; to order, quote the same part again without instant_only. Pass lazy true when the user wants to look at prices now and have a shop asked only for the offer they pick: no shop is asked to make the quote, it comes back complete at once, and every offer carries our instant price with manufacturability_check.status "unchecked". Unlike instant_only, such a quote CAN be ordered: create_checkout asks the picked offer's shop to confirm it when the user is ready to order. Use check_offer only if the user wants that confirmation before checkout. A shop we have no instant price for has no offer on a lazy quote — say so if the user asks where a shop is, and quote the part again without lazy to ask every shop. Quotes made from it with refine_quote stay lazy. HOW OLD AN ANSWER IS: a shop's answer is shown for 24 hours, to everyone with the same request (the same design bytes with the same everything asked), so a quote of a part someone priced in the last 24 hours comes back complete at once with those answers and no shop is asked again. An offer says when its shop answered (answered_at). Past 15 minutes it reads stale: true — it is shown at that price and the shop confirms it again before anyone pays (check_offer, or checking out, asks that one shop). A shipping option of such an offer carries eta_approximate: true: say "about N days" from eta_days and never state its eta_date as a date, because no shop stands behind a date until it confirms again. If a quote carries answers_pending, someone else is asking the shops about this same request right now and these are our instant prices: call reopen_quote with that quote_id after retry_after_s seconds. TO PLACE EXACTLY ONE ORDER WITH NO MISTAKES: (1) on get_fabrication_quote list only that shop in vendors and state the pick in selection — the shop, plus the material, finish and shipping speed wanted; (2) read selection_match on the quote: status "one" means exactly one option answers the pick, "many" means say more in the pick (color, thickness, quantity), "none" means nothing on the quote answers it; (3) call create_checkout with quote_id and selection true — it orders that one option at the picked shipping speed, or refuses and creates nothing (selection_not_unique: the pick is not exactly one option; selection_speed_unavailable: the option does not show the picked speed now — an order never takes another speed in its place). It returns the selected checkout result: a hosted payment link by default, or the saved-card outcome when pay is saved on a keyed connection. An offer whose manufacturability_check reads status "unchecked" with reason "network_restarted" was being confirmed by its shop when the network restarted, so the answer never came: tell the user, in these words, "A new version of AFN has been released, please refresh the page". Nothing is lost — the price stands and the offer can simply be checked again with check_offer. Say it once, when a tool's own text tells you to; the same reason still on an offer on a later read is history, not news.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_fabrication_quote"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cut | No | Decal cut style — pass the user's words verbatim ("triangle", "die cut", "circle"). Known: contour|square|oval|kiss_cut; anything else gets closest-match offers with a substitution note. Omit to compare the main options | |
| lazy | No | true = our instant prices first, and a shop asked only when the user picks an offer: no shop is asked to make the quote, which is complete at once with every offer "unchecked" (routing.lazy is true on the response). Run check_offer on the offer the user picks — that asks its one shop — and create_checkout once the check passes. A shop we have no instant price for has no offer on such a quote. Omit for a regular quote, which asks the shops now | |
| size | No | Print size — pass the user's words verbatim ("letter", "24x36", "half letter"). Cards are 3.5x2; flyers 8.5x5.5|8.5x11|11x17; posters 12x18 through 36x48. Unknown sizes get closest-match offers | |
| bends | No | Sheet-metal bend lines, each as TWO POINTS in the part's own mm frame (flat DXF parts use z=0: a bend from (0,12.7) to (76.2,12.7) is p1 [0,12.7,0], p2 [76.2,12.7,0]). angle_deg is the target bend angle (90 = a right-angle flange), direction "up"/"down" is the fold direction relative to the flat pattern, radius_mm the requested inside radius (omit it — the shop resolves to its tooling and reports what it used). Pass these when the user articulates WHERE the bends go; a bare "it has 2 bends" is bend_count, not this. | |
| color | No | ONLY a color the user actually asked for — NEVER pick one for them. fdm_print: Filament color for fdm_print (e.g. black, red); resin_print: Resin color for resin_print (e.g. gray, white, black); powder_print: Powder part color: raw gray/white, or a dye ("black", "dark blue") — vendor-resolved; elastomer_print: Elastomer part color — VCJ parts ship raw; asks resolve with an honest substitution note; cnc: Colour for cnc: with finish anodized it is the anodize colour, otherwise the stock's own colour (black Delrin, clear acrylic). Colour WORDS only; each maker resolves the shade and says what it landed on; laser_cut: Colour of the flat stock for laser_cut (black, clear, natural…). Colour WORDS only; each maker quotes the materials it stocks in that colour and drops the ones that cannot be it; print: Print color ask ("full color", "black and white"). Vendors that only price full color note the substitution; apparel: Garment color for apparel ("black", "heather gray") — vendor-resolved | |
| paper | No | Paper stock — free-form ("matte", "glossy", "recycled", "14pt"). Resolved to the closest stock the vendor runs | |
| sides | No | single|double sided printing (defaults: cards double, flyers/posters single) | |
| units | No | sheetmetal: DXF drawing units: "mm" (default) or "in". STEP files carry their own units; laser_cut: DXF drawing units: "mm" (default) or "in" | |
| finish | No | cnc: CNC surface finish: standard|anodized|polished|bead_blasted (default standard); sheetmetal: as_cut (default) | deburred | anodized | powder_coat — anodized is aluminum-only; powder coat protects mild steel for outdoor use | |
| inserts | No | PEM-style hardware inserts pressed into holes of a sheet-metal part — one record per hole. `insert` is the species (nut | flush_nut | standoff | blind_standoff | stud) and `thread` its size ("M4", "1/4-20"); both are required. When known, add length_mm (standoff/stud post length), the hole's center (located_at_mm, part's own mm frame), its axis, the drilled diameter, and `points` — the signed unit vector the insert's functional side faces (flip = negate). Pass these when the user asks for press-in nuts/standoffs/studs; sheet-metal shops with a hardware service price them, and every other shop — on every process, 3D printing and laser cutting included — is left out with the reason rather than pricing the part without its hardware. | |
| process | No | What to fabricate. If the user just drops a file and asks for a price, OMIT this — UFP detects the file type (artwork, mesh — STL/OBJ/PLY/3MF/AMF, BREP — STEP/IGES, DXF) and routes it to every process that can make it; the response's routing.also_possible lists processes UFP can't quote yet | |
| product | No | print: Print product kind: business_cards|flyers|posters. Omit to quote every kind the artwork fits; apparel: apparel: t_shirt|hoodie|long_sleeve|tank_top (free-form — "tee", "crewneck" resolve to the closest product) | |
| shore_a | No | Numeric Shore A durometer ask (10-95, e.g. 40). Resolved to the NEAREST stocked durometer with a substitution note — never a silent swap | |
| tapping | No | Tapped (threaded) holes for a sheet-metal or CNC-machined part — one record per hole the user wants threads cut into. `thread` is the callout in the user's words ("M6", "M4 x 0.7", "1/4-20") and is all that's required; when known, add the hole's center in the part's own mm frame (located_at_mm), its unit axis, the pre-tap drilled diameter, and depth_mm so the shop taps the right hole. Pass these when the user asks for threaded/tapped holes; shops whose connector can price and order threads on that process price them, and every other shop — on every process, 3D printing and laser cutting included — is left out with the reason rather than pricing the part without its threads. Take the threads off to see prices without them. | |
| vendors | No | Only these specific vendors/makers ("just quote Slant 3D") — an INCLUDE list of vendor names as they appear on offers. Friendly names accepted ("A3D", "slant 3d"); unmatched names are reported, never an error. Usually OMIT: pass it only when the user explicitly names the vendors they want | |
| callouts | No | Dimensions you read off the user's drawing that matter ("hole_diameter 6.5mm ±0.1"). The tightest tolerance prunes vendors that cannot hold it. | |
| deadline | No | Latest acceptable delivery date, ISO YYYY-MM-DD | |
| file_url | No | Public URL of the design file — only when the design lives at a URL | |
| material | No | ONLY a material the user actually asked for — NEVER guess or default one (a silent "pla" on a bare file drop prunes every maker that does not stock it; OMIT instead and each process quotes across its stocked materials so every maker can bid). fdm_print: pla|petg|asa (free-form — "abs", "polycarbonate" asks resolve to the closest stocked filament with a substitution note); resin_print: standard|tough|high_temp|high_detail resin (free-form asks resolve to the closest supported resin); powder_print: Powder-bed nylon: nylon_12|nylon_12_smooth|nylon_11|nylon_12_gf|nylon_12_esd|nylon_12_white|nylon_pa2200|nylon_12_sls|tpu (free-form — "PA12", "glass filled" resolve to the closest stocked powder); elastomer_print: Jetted elastomer: tepu_30a|tepu_50a (free-form — "TPU", "soft rubber" resolve to the closest stocked durometer); cnc: aluminum_6061|aluminum_7075|stainless_304|titanium|brass|acetal|delrin|abs|nylon_pa6|peek|acrylic (free-form asks resolve to the closest supported stock); sheetmetal: mild_steel|aluminum_5052|stainless_304 (free-form — "steel", "5052", "stainless" resolve; unknown asks get closest-match offers). Omit to compare the defaults; laser_cut: acrylic|plywood|mdf|delrin|uhmw|hdpe|g10|carbon_fiber|mild_steel|aluminum_5052|stainless_304 (free-form — "plexiglass", "birch" resolve; unknown asks get closest-match offers); decal: vinyl|holographic|transparent|glitter (free-form — "chrome" etc. gets closest matches) | |
| width_in | No | Decal width in inches (default 3) | |
| food_safe | No | Must be vendor-certified food safe | |
| height_in | No | Decal height in inches (default 3) | |
| high_temp | No | Must tolerate sustained heat (vendor heat-resistance claim) | |
| materials | No | The materials the user will accept, when they name SEVERAL or a family rather than one ("plastic or metal", "delrin or PLA", "any aluminum") — each word a family ("plastic", "metal", "wood") or a specific material ("pla", "delrin", "aluminum_6061"). Only options in a listed material are shown; which shops are asked does not change. For ONE specific material use material instead: a stated material rules and this list is set aside (the quote says so). Usually OMIT: pass it only when the user names the materials they accept | |
| placement | No | Print placement for apparel: front (default) | back | front_back | |
| processes | No | Only quote these fabrication processes — a constraint that narrows the auto-routing fan. Friendly terms accepted ("sheet metal", "3d printing", "cnc", "laser"); unmappable terms are reported, never an error. Usually OMIT: auto-routing quotes every process that can make the file. Pass it only when the user explicitly limits the process. One exception, for a flat part: a sheet-metal shop that laser-cuts flat stock is still returned under ["laser"] — its offer keeps process "sheetmetal" and carries also_processes ["laser_cut"] (one offer, listed under both; never two) | |
| selection | No | The pick: the ONE option to order, named by what it is rather than by an offer id (ids change when a quote is priced again). vendor = the shop as it appears on offers (friendly names accepted); spec = the resolved options the option must carry, each optional — material, color, finish, thickness_in (leave one out, or null, and it does not narrow the pick); process and quantity likewise optional; shipping_speed = the word the shipping option itself goes by ("standard", "express", "ground"), omitted = the cheapest speed; confirmed = true once the user has settled on this option (added it to a cart, or is paying) — a pick without it is only the option being looked at, and a cart shared by a link carries a part's pick only when it is confirmed. Storing a pick changes no price and never asks every shop. CHOOSING STARTS THAT ONE SHOP'S CHECK: on a quote you already have, a pick that comes to exactly one option whose shop answered more than 15 minutes ago (or was never asked) has that one shop asked to confirm it, and the answer already says so. Every quote read then carries selection and selection_match { status "one" | "none" | "many", matched, offer_id, shipping_option_id, speed_fallback, confirmed_until, check { state "running" | "fresh" | "not_started", code, retry_after_s }, price_changed }: check "fresh" = the shop's answer is under 15 minutes old; "running" = that shop is being asked now; "not_started" = nobody is being asked and code says why ("ask_limited" = the pick is kept and the shop is asked when the user pays; "quote_expired" = these answers are over 24 hours old: call reopen_quote, the pick is kept). Usually OMIT: pass it when the user has settled on one option, or to order by create_checkout with selection true | |
| share_key | No | Share key for a LOCKED part — the k=… value from the owner's share link (…/part/UFP-…?k=KEY). Required with part_number when the part is locked; omit otherwise | |
| bend_count | No | Number of bends in the design (bend lines must be in the file). Prices CNC bending; omit for flat parts | |
| quantities | No | Quantities the user actually wants — pass [1] or [2] if that's the ask. Vendors with a higher minimum quote AT their minimum and the offer notes it (requested_quantity). Default: 25 for decals, 1 for prints; a part_number reorder defaults to the quantity last purchased | |
| ships_from | No | Only vendors that ship from these countries/regions ("only US vendors", "keep it domestic") — an INCLUDE list. Friendly terms accepted ("US", "Europe", "Germany", "China", "UK"); unmappable terms are reported, never an error. Vendors whose origin is unknown or whose network is worldwide (origin not guaranteed) are excluded, each with a note saying why. Usually OMIT: pass it only when the user explicitly limits where vendors ship from | |
| design_file | No | The design file itself (user-attached or generated image/STL). ChatGPT supplies {file_id, download_url} automatically when the user attached a file — just bind the attachment here. | |
| metal_alloy | No | Metal AM alloy: stainless_316l|stainless_17_4ph|titanium_ti64|aluminum_alsi10mg|inconel_718|cobalt_chrome|tool_steel_h13|copper (free-form asks like "Ti-6Al-4V" resolve to the closest stocked powder) | |
| part_number | No | UFP part number from a previous paid order (UFP-… or part_…). Reorders: replaces design_file/file_url entirely; any other fields provided override the stored spec | |
| ship_to_zip | No | Destination US ZIP code, exactly as the user stated it. OMIT if the user has not given one — NEVER guess or invent a ZIP. Without it, prices come back all-in with shipping to an assumed central-US destination, flagged on routing.ship_to | |
| submersible | No | Must survive submersion in water | |
| within_days | No | Arrival within this many calendar days from today ("within 10 days", "in two weeks" → 14). Counted from the day the quote is READ, so it keeps meaning "within N days of now" — the day is the UTC date, the one arrival dates on offers (eta_date) are written in, so compare against those dates rather than a local calendar; an option keeps only the shipping speeds that arrive in time. With deadline as well, the earlier date rules. Use deadline instead when the user names a date | |
| instant_only | No | true = instant prices only: no shop is asked about the part, now or later on this quote. The quote is complete at once; its offers read "unchecked" and cannot be checked or ordered (routing.instant_only is true on the response). Omit for a regular quote — the only kind that can be ordered | |
| metal_finish | No | Metal AM post-processing: as_printed|bead_blast|machined_critical|polished|heat_treated (as_printed keeps support witness marks) | |
| requirements | No | Verbatim context terms from the user — materials, finishes, certifications, tolerances ("UV resistant", "anodized: red", "iso 13485", "tolerance: 0.1mm"). UFP applies what it can and reports what it could not; unresolvable terms are logged for vendor sourcing. Do not interrogate the user to fill this — pass what they said. | |
| thickness_in | No | sheetmetal: Sheet thickness in inches (e.g. 0.063 = 14 ga aluminum). Quoted at the nearest stocked thickness; omit for ~16 ga default; laser_cut: Nominal thickness in inches; quoted at the vendor's nearest stocked thickness. Omit for the material's common stock | |
| outdoor_rated | No | Must survive outdoor exposure | |
| powder_finish | No | Powder post-processing: as_printed (raw powder surface) | vapor_polished | polished | |
| vendors_exact | No | How the names in vendors and vendors_exclude are read. Usually OMIT: a name then reaches every connector of the shop it names ("SendCutSend" covers its sheet, laser and CNC connectors), which is what a person means by a shop. Pass true only when the lists hold offer `vendor` slugs copied from this network's own answers and each must mean that one connector: a term that is exactly a connector slug is then that connector alone (["sendcutsend", "sendcutsend-laser"] leaves "sendcutsend-cnc" out), while any other word still resolves as a name. The answer's constraints_asked.vendors / vendors_exclude are the connectors the lists came to, and listed_vendors names each of them | |
| max_budget_usd | No | Hard budget cap in USD, all-in | |
| attachment_urls | No | Additional files for the SAME part — the PDF drawing next to the STEP, spec sheets, BOMs. Pass everything the user gave you; UFP works out which file is the part and which are supporting documents. | |
| design_data_url | No | Inline design bytes as a data: URL (base64), for MCP clients that cannot pass a file reference | |
| vendors_exclude | No | Shops to leave out ("anyone but Slant 3D", "not A3D or Fictiv") — shop names as they appear on offers; friendly names accepted ("A3D", "slant 3d"), and a name that matches no shop is reported, never an error. A shop on this list is never asked and never shown. Works beside vendors: the shops shown are the vendors list (or everyone) minus this list, so a shop named on both is left out. Usually OMIT: pass it only when the user names shops they do not want | |
| elastomer_finish | No | Elastomer post-processing: as_printed (VCJ parts ship raw — the whole lane today) | |
| metal_technology | No | Metal AM process: laser_powder_bed (SLM/DMLS/LPBF)|binder_jet|ebm. Omit to let the vendor pick its default for the alloy | |
| min_vendor_stars | No | Only vendors whose displayed review rating is at least this many stars (1-5). Vendors with no reviews yet are excluded — the filter demands demonstrated quality | |
| powder_technology | No | Powder process: mjf (HP Multi Jet Fusion) | sls (laser sintering). Omit to let the vendor pick its default lane for the material | |
| min_vendor_reviews | No | Only vendors with at least this many verified-purchase reviews | |
| proven_spec_orders | No | Only vendors with at least N completed orders for this exact process+material — "a vendor that prints PC reliably" | |
| elastomer_technology | No | Elastomer process: vapor_cure_jetting (VCJ). Omit to let the vendor pick its default lane for the material |