Binary & Thread

v0.4.7
com.binaryandthread/store Checked 3 days ago Published 2 months ago

Browse the Binary & Thread catalogue, stage a cart, get a checkout link.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

list_products

List the pieces in stock (text-only — no images, to keep the agent's context lean). Returns each product's handle, price (VAT included where applicable), and stage. Use get_product for one item's image. Prices are in the region's currency — pass `region` (an ISO-2 country) to price for a specific market, else the server default.

ParameterTypeDescription
regionstringISO-2 ship-to country to price for (e.g. se / us / de); overrides the server default
stagestringfilter by channel stage: 'main' or 'next'

get_product

Get one piece in full: its readme, the spec sheet (material/weight/fit/print/delivery/care), sizes + price (VAT included where applicable), the lore (the story behind it, with sources), and its image (rendered + the Blob URL as a text floor). Prices are in the region's currency — pass `region` (ISO-2) to price for a market. Designs sold in two fits (regular / oversize) are priced per fit: pass `fit` to narrow, and ALWAYS pass `fit` to add_to_cart for them. // you read the schema. that's the contributor instinct. ask me about the next branch.

ParameterTypeDescription
handle *stringthe product handle/slug (from list_products)
fitstringregular or oversize: narrow sizes, price and image to that fit (omit to see both)
regionstringISO-2 ship-to country to price for (e.g. se / us / de); overrides the server default

add_to_cart

Add a piece to a cart. Pass cart_id to reuse an existing cart (the durable handle), or omit it to start a fresh one. Call get_product first to get valid sizes/colours (or an exact variant_id); for a design sold in two fits (regular / oversize, priced apart) you MUST pass `fit`. qty is capped at 20. Returns the cart_id and the server-side cart summary (VAT included where applicable). `region` (ISO-2) sets the currency for a NEW cart only — a reused cart keeps its original region.

ParameterTypeDescription
cart_idstringreuse this cart; omit to create a new one
colourstringpiece colour from get_product, e.g. black / white / khaki (khaki: US oversize only; default: the first colour you can buy)
fitstringregular or oversize; REQUIRED when the design comes in both (get_product lists them)
handlestringproduct handle (resolves a variant by size + colour; call get_product for valid values)
qtyintegerquantity, 1–20 (default 1)
regionstringISO-2 ship-to country for a NEW cart (e.g. se / us / de); ignored when reusing a cart_id
sizestringsize label from get_product (Regular S / M / L / XL / 2XL; Oversize XS … 3XL)
variant_idstringa specific variant id from get_product (overrides handle/size/colour)

get_cart

Show a cart's current contents and total (VAT included where applicable), straight from the server.

ParameterTypeDescription
cart_id *stringthe cart handle from add_to_cart

checkout

Mint a checkout hand-off for a cart. Returns a checkout_url + a session_id INSTANTLY — it does NOT poll and does NOT complete the purchase. The human must open the link in their own browser to enter their payment + ship-to details on the storefront (those details never enter this chat). After they pay, call check_payment with the session_id to see the status.

ParameterTypeDescription
cart_id *stringthe cart handle to check out
emailstringthe buyer's email for the receipt (optional)

check_payment

Check a checkout's payment status ONCE (call again later to re-check — this never blocks/loops). Returns the status and, once placed, the order_id.

ParameterTypeDescription
session_id *stringthe session_id from checkout

get_order_status

Look up an order's status by its display id + the EXACT email on the order. Returns status only (no shipping address). A wrong id/email returns not-found (no enumeration).

ParameterTypeDescription
display_id *stringthe order's display id (e.g. 1042)
email *stringthe exact email on the order

report_issue

File a bug report or feedback to the maintainers. Pass a short message (and optional structured context like versions/ids). Returns a reference id. It sends no payment details and cannot change any order — it just files the report. Tokens/emails are redacted server-side.

ParameterTypeDescription
message *stringwhat went wrong / the feedback (one or two sentences)
contextobjectoptional structured context (versions, ids) — tokens/emails are redacted server-side

teapot

Returns 418. Always. It's a teapot. (RFC 2324)

fortune

A coding fortune — a real dev aphorism. Optional seed for a specific one.

ParameterTypeDescription
seedintegerpick a specific fortune (0..N); omit for the first