Binary & Thread
v0.4.7Browse 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.
| Parameter | Type | Description |
|---|---|---|
region | string | ISO-2 ship-to country to price for (e.g. se / us / de); overrides the server default |
stage | string | filter 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.
| Parameter | Type | Description |
|---|---|---|
handle * | string | the product handle/slug (from list_products) |
fit | string | regular or oversize: narrow sizes, price and image to that fit (omit to see both) |
region | string | ISO-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.
| Parameter | Type | Description |
|---|---|---|
cart_id | string | reuse this cart; omit to create a new one |
colour | string | piece colour from get_product, e.g. black / white / khaki (khaki: US oversize only; default: the first colour you can buy) |
fit | string | regular or oversize; REQUIRED when the design comes in both (get_product lists them) |
handle | string | product handle (resolves a variant by size + colour; call get_product for valid values) |
qty | integer | quantity, 1–20 (default 1) |
region | string | ISO-2 ship-to country for a NEW cart (e.g. se / us / de); ignored when reusing a cart_id |
size | string | size label from get_product (Regular S / M / L / XL / 2XL; Oversize XS … 3XL) |
variant_id | string | a 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.
| Parameter | Type | Description |
|---|---|---|
cart_id * | string | the 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.
| Parameter | Type | Description |
|---|---|---|
cart_id * | string | the cart handle to check out |
email | string | the 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.
| Parameter | Type | Description |
|---|---|---|
session_id * | string | the 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).
| Parameter | Type | Description |
|---|---|---|
display_id * | string | the order's display id (e.g. 1042) |
email * | string | the 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.
| Parameter | Type | Description |
|---|---|---|
message * | string | what went wrong / the feedback (one or two sentences) |
context | object | optional 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.
| Parameter | Type | Description |
|---|---|---|
seed | integer | pick a specific fortune (0..N); omit for the first |