MCP

Agent access over MCP.

POST https://middleware.treadready.com/mcp is a stateless Streamable-HTTP MCP endpoint. Same bearer API keys, same org scoping, same scopes — enforced per tool. REST routes and MCP tools are thin wrappers over the same resource layer, so behavior is identical.

Connecting

Client config
{
  "url": "https://middleware.treadready.com/mcp",
  "headers": { "Authorization": "Bearer trk_live_XXXX" }
}
POST only
GET and DELETE answer 405. There is no SSE stream and no session — each call is stateless.
Org scoping
All data is scoped to the org that owns the key. A key only ever sees its own org's data — there is no org parameter anywhere in the API.

Products & inventory

ToolInputsNotes
list_productsActive products with stock levels.
get_productskuCase-insensitive.
upsert_productsku, name?, description?, status?, stock_qty?, bin_location?Create requires sku + name.
push_inventoryrows: [{ sku, qty }]Bulk stock set; queues to hub if unreachable.

Orders

ToolInputsNotes
list_ordersstatus?
get_orderid_or_po_number
create_orderpo_number?, buyer_org_id?, ship_to?, notes?, lines: [{ sku, quantity, unit_price? }]
acknowledge_orderid_or_po_number
update_order_statusid_or_po_number, status

Warranty

ToolInputsNotes
list_warranty_claimsstatus?
get_warranty_claimid_or_claim_number
create_warranty_claimdescription, sku?, dot_number?, quantity?, customer_ref?
update_warranty_claimid_or_claim_number, status?, resolution?

Telematics

ToolInputsNotes
telematics_list_connectionsMasked credential hints only, never secrets.
telematics_connection_healthconnection_id
telematics_run_connectionconnection_id
telematics_replay_rangeconnection_id, from, toWindow ≤ 31 days.

Storefront

Passthroughs to the hub's consumer storefront API for agents building dealer sites. The publishable storefront key is stored server-side on the org's hub connection — agents never see or send it. dealer_slug defaults to the org's portal slug. Scopes: storefront:read / storefront:write.

ToolInputsNotes
storefront_get_sitedealer_slug?
storefront_list_inventorydealer_slug?, query? (size, category, page…)
storefront_list_slotsdealer_slug?, query? (date range, service…)
storefront_create_bookingdealer_slug?, payload
storefront_create_orderdealer_slug?, payload
storefront_create_quotedealer_slug?, payload
Direct storefront access
Consumer dealer-site embeds can also call the hub's storefront API directly with a publishable key at {hub_url}/api/storefront/v1 (OpenAPI at …/openapi.yaml). The MCP storefront tools exist so agents can do it without handling keys.