---
name: tally-hardware
description: Check which screws (socket, button head, countersunk, self-tapping), nuts, washers, heat-set inserts, standoffs, T-nuts, bearings, rubber feet and magnets in a design's parts list can be bought in exact counts from Tally Hardware (US), and return one cart link that fills a ready-to-pay cart. Use when a design has a hardware or BOM list ("What you need") and the person wants to buy the hardware.
---

# Tally Hardware: buy a design's exact hardware

Tally Hardware is a US shop that sells metric hardware by the piece, in exact counts. This skill turns a parts list into one cart link. **You never place an order.** The person opens the link, which fills a ready-to-pay Tally cart with the stocked parts; they review the cart and pay on tallyhardware.com.

API: `https://api.tallyhardware.com/v1`. No key is needed.

## Steps

1. **Get the scope once:** `curl -s https://api.tallyhardware.com/v1/scope`. It lists the families, threads, lengths and materials we stock, what we don't carry, the fees, and whether orders are open.
2. **Normalize every hardware line yourself** into the fields `/v1/scope` lists under `line_fields`:
   - `family`: a code from scope, e.g. `SHCS` for socket head screws, `BHCS` for button head screws, `FHCS` for countersunk screws, `TAPS` for self-tapping screws for plastic, `HEXN` for hex nuts, `NYLN` for nylon-insert locknuts, `HSI` for heat-set inserts. A screw's head matters: never send a button head as `SHCS`.
   - `thread`: `M3`. Write decimals with `d`, e.g. `M2d5`.
   - `length_mm` for screws and standoffs.
   - `designation` for bearings, e.g. `608ZZ`.
   - `material` if the design states one.
   - `qty`, the total count for the whole build.
   - `label`: the design's own name for the part, e.g. "lid screws".

   **Never invent a length or a count.** If the design doesn't say, leave the field out. The API will return a question for you to ask the person.
3. **Say who designed it.** Always send `design`:
   - `name`: the design's name.
   - `url`: the design's repo or page, if it has one (http or https).
   - `designer`: the person's name, **only if they give it** (or the published design states it). Never guess a name.
   - `made_by`: `"self"` when the design was created in this session or the person says it is theirs (with or without AI); `"other"` when it is a published design by someone else; `"mix"` when it is both.
4. **Send the channel.** The channel is `src` + `ref`. Always send `"src":"skill"`.
   - From text-to-cad, always send `"ref":"text-to-cad"`.
   - From a different tool, send that tool's own partner code as `ref` if it has one. If it has none, leave `ref` out.
5. **Check the list:**
   ```
   curl -s -X POST https://api.tallyhardware.com/v1/check \
     -H 'content-type: application/json' \
     -d '{"src":"skill","ref":"text-to-cad",
          "design":{"name":"Desk lamp","url":"https://github.com/ana/desk-lamp","designer":"Ana Ruiz","made_by":"self"},
          "lines":[{"label":"lid screws","family":"SHCS","thread":"M3","length_mm":8,"qty":12}]}'
   ```
   Leave out a `design` field you don't know. If the response has `warnings`, a field was dropped: fix it and check again.
6. **Report back to the person, line by line:**
   - `stocked`: in the cart, with the price.
   - `close_match`: we have something near it. Show the alternative, and let the person decide whether it fits their design. Never swap it in yourself.
   - `not_carried`: they'll need another supplier.
   - `question`: ask the person, then check again with the answer.
7. **Give them `cart.url` and the `quote.total_cents` total.** The total includes the order fee, the per-part-type fee and shipping. Tell them plainly: opening the link fills a ready-to-pay cart; they review the cart and pay on tallyhardware.com.
   - If `orders_open` is false, say that orders open soon and that the link will still work.

## Rules

- Only claim what the API returned. Don't say a part "fits" or is "verified". We match part names, not designs.
- US shipping only. Metric only.
- Up to 100 lines and 9,999 pieces per part in one call.
- Design limits: `name` 120 characters, `url` 300, `designer` 80.
