TallyCart 0

FOR AGENTS AND DEVELOPERS

Tally agent API

Check a design's metric hardware list against what Tally stocks and get one cart link. Opening it fills a ready-to-pay cart; the person reviews the cart and pays. No API key is needed, and no route places an order.

Preview. Orders are not open yet. Every route works and cart links stay valid for 30 days, but checkout is closed until launch. Prices are estimates.

The three calls

  1. Scope, once: curl -s https://api.tallyhardware.com/v1/scope lists the families, threads, lengths and materials we stock, what we don't carry, the fees and whether orders are open.
  2. Check the list: normalize each line into the fields below, then POST /v1/check.
  3. Hand over the link: give the person cart.url and quote.total_cents.
curl -s -X POST https://api.tallyhardware.com/v1/check \
  -H 'content-type: application/json' \
  -d '{"src":"api","lines":[
    {"label":"lid screws","family":"SHCS","thread":"M3","length_mm":8,"qty":12},
    {"part_id":"T-HEXN-M3-A2","qty":8},
    {"family":"BRG","designation":"608ZZ","qty":2}]}'

Each line comes back with a status:

stockedIn the cart, with part, line_cents and any defaults_used (for example head when a screw's head wasn't stated).
close_matchWe have something near it, in alternatives. Show it; the person decides whether it suits the design. It is never put in the cart for them.
not_carriedWe don't sell it; reason says why. They need another supplier.
questionSomething that decides the fit, or the count, is missing. Ask the person (options_mm lists the lengths we stock), then check again.

Line fields

Send part_id, or family plus what the design states. Never invent a length or a count: leave the field out and the API returns a question.

part_idA Tally part number from /v1/parts (case ignored). Any other field sent with it (or the label) must agree with that part, or the line comes back as a question.
familyFamily code from scope.families, e.g. SHCS, BHCS, FHCS, TAPS, HEXN, NYLN, WASH, HSI, STDF, TNUT, BRG, FOOT, MAG.
threadMetric thread, e.g. M3. Write decimals with d (M2d5); M2.5 is accepted. Metric only.
length_mmLength in mm for screws, standoffs and inserts. Leave it out if the design does not say.
materialMaterial if the design states one: A2 / stainless, brass, zinc ... Leave it out otherwise.
designationBearings: the designation, e.g. 608ZZ. Rubber feet and magnets: diameter x height, e.g. 10x3, 6x3.
headScrews: head type if stated (socket cap, button / ISO 7380, countersunk / flat / ISO 10642, self-tapping, low profile, set, pan).
typeNuts: hex / nylock / square / flange / jam. Washers: flat / split / spring. Standoffs: M-F / F-F / M-M. Magnets: disc (axially magnetized).
profileT-nuts: the extrusion slot, e.g. 2020.
pitchThread pitch in mm, only if the design states one (e.g. 0.5). Fine pitches are not carried.
qtyTotal pieces for the whole build, 1 to 9,999. Never guess; leave it out if unknown.
labelOptional. The design's own name for the part; echoed back. A size, material or kind named in it must agree with the part, or the line is not stocked.

What we stock

SHCS Socket head cap screwM2, M2d5, M3, M4, M5
Lengths: M2: 4, 5, 6, 8, 10, 12 mm; M2d5: 3, 5, 6, 8, 12 mm; M3: 4, 5, 6, 8, 10, 12, 16, 20, 25, 30, 40 mm; M4: 8, 10, 12, 16, 20 mm; M5: 8, 10, 12, 16, 20 mm
BHCS Button head screwM3
Lengths: M3: 8, 10 mm
FHCS Flat / countersunk head screwM3
Lengths: M3: 8, 10 mm
HEXN Hex nutM2, M3, M4, M5, M6, M8
NYLN Nylon-insert locknutM3, M4, M5
WASH Flat washerM2, M3, M4, M5, M6, M8
HSI Heat-set insertM2, M2d5, M3, M4, M5
Lengths: M2: 3 mm; M2d5: 3 mm; M3: 4 mm; M4: 4 mm; M5: 5 mm
STDF StandoffM2, M3, M4, M5
Lengths: M2: 10 mm; M3: 10 mm; M4: 10 mm; M5: 10 mm
TNUT T-nut / drop-in nutM3, M4, M5
BRG Ball bearing608ZZ, 623ZZ, 624ZZ, 625ZZ, 688ZZ
MAG Magnet6x2, 6x3
FOOT Rubber foot / bumper10x3
TAPS Self-tapping / plastic screwM3
Lengths: M3: 10 mm

We don't carry: low-profile socket head screws, set / grub screws, square nuts, electronics, motors, belts, pulleys, springs, extrusions, rods and shafts, linear bearings, wood screws, pan head machine screws, lock / spring washers, fine-pitch threads, imperial sizes. Metric only, US shipping only. The full list with prices is in /catalog.json and /llms.txt.

Prices and fees

Total = parts + $4.00 order fee + $1.25 per different part number + $6.00 flat US shipping, before sales tax (added at checkout). Prices are always quoted by the server; a cart link carries part numbers and counts, never prices.

All routes

GET /v1/scopeFamilies, threads, lengths, materials, not carried, fees, limits, orders_open.
GET /v1/partsParts. Filters: family, thread, length_mm, material, q.
curl -s 'https://api.tallyhardware.com/v1/parts?family=SHCS&thread=M3'
GET /v1/parts/{id}One part; case is ignored. 404 unknown_part.
POST /v1/checkThe main route, above.
POST /v1/carts{"items":[{"id":"T-SHCS-M3x8-A2","qty":12}]} returns token, url, expires_at and quote.
GET /v1/carts/{token}The items in a link with a fresh quote. 410 cart_expired after 30 days, 400 bad_token.
GET /v1/listsThe live parts lists: code, title, url, creator, line_count, pieces.
GET /v1/lists/{code}One list's lines as Parts with counts, a quote and a signed cart link (src kit-link). Optional builds multiplies every line. 404 unknown_list.
curl -s https://api.tallyhardware.com/v1/lists/K-TALLY-M3-INSERTS
GET /v1/openapi.jsonOpenAPI for all of the above.

Errors are always {"error":"<code>","message":"<what went wrong and how to fix it>"}. Limits: 100 lines and 9,999 pieces per part per request; 60 requests a minute per IP (429 rate_limited). CORS is open to any origin.

Parts lists

A parts list is every part one design needs, in exact counts, on one page with an Add all to cart button. If a design you are helping with has a list, give the person the list's page or the cart link from GET /v1/lists/{code}.

K-TALLY-M3-INSERTSM3 heat-set insert starter parts list, 6 part types, $22.70 estimated total

MCP

MCP clients (Claude, Cursor, VS Code and others) can add Tally as a remote server with one URL, https://api.tallyhardware.com/mcp. No key. Its main tool, tally_check_parts_list, is /v1/check; the others look up parts, make and read cart links, and open parts lists. In Claude Code: claude mcp add --transport http tally https://api.tallyhardware.com/mcp.

The skill

Agents that load skills can use skill/tally-hardware/SKILL.md, which walks through the same three calls and the rules for reporting back: only claim what the API returned, and never swap a close match in for the person.