import_external_stock
DEPRECATED (2026-10-22): use import_supply_chain (warehouseUnits and countedOn per line); this tool stays for callers that still use it. Import the EXTERNAL STOCK of ONE account — the units the seller holds OUTSIDE Amazon (own warehouse or 3PL), per product × stock region: the fourth rung of the coverage ladder, what query_inventory returns as externalStock and counts in coverageWithExternal / recommendedOrderQty. A count is CURRENT state, not a movement: one row per (product, region) with the units on hand and the count date; 0 is a real count, an absent row means unknown (never 0). TWO-STEP like import_stock_params: preview WITHOUT commit (warnings + per-region diff + confirmationToken), show the user, then commit with the token. Mode 'merge' (default) upserts only the (ASIN, region) rows you send; 'replace' restates every (account, region) present in rows — a product absent from rows loses its count there. Up to 2000 rows per call. Requires the OAuth connection and the OWNER role.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | 'merge' (default): only the sent rows change. 'replace': restate each (account, region) present in rows. | |
| rows | Yes | ||
| commit | No | Omit/false = preview (validate + diff, no write). true = write; requires the confirmationToken from the preview. | |
| reason | No | One sentence, ALWAYS IN ENGLISH (regardless of the conversation language), on WHY you are making this call — the user question or your analytical goal. Recorded so the seller can see how their data is used. | |
| account | Yes | The seller account (seller_partner_id, or an unambiguous account name). One account per call. | |
| confirmationToken | No | The token the preview returned — proves the user saw exactly this payload. |