Adopt catalog sheet
adopt_catalog_sheetPropose or save catalog role mapping for an existing manual sheet (1-10). Call with dry_run true, or without confirm_token, to get confirmation_required, proposed roles, extras, warnings, the current mapping and diff, and a confirm_token. Show that proposal to the user and wait for an explicit yes before calling again with confirm_token. Never dry-run and confirm in the same turn. Optional role_overrides maps an unmapped role to an existing visible column by header or column id, for example {"notes": "Internal note"}. Matching is case-insensitive. barcode, totalQty, and defaultLocation cannot be overridden. The same overrides must be sent on confirm; confirm_token binds them. The column must be visible, not used by another role, and not a barcode alias. Empty override values are rejected. If Notes has no suitable column, add_column first, then map it. Does not rename columns or change rows. Confirm writes the mapping, turns Catalog on, and ensures the default stock location. dry_run false without confirm_token writes nothing. A confirm boolean is ignored. A Shopify store sheet (11+) is refused. Colour and Size map to group options 1 and 2. Category maps to Type. Roles: photo, name, sku, barcode, unitCost, sellingPrice, type, brand, totalQty, defaultLocation, variantOption1, variantOption2, description, notes. Two-step confirm_token: the first call without confirm_token only returns confirmation_required, a summary, and confirm_token. That call does not write, delete, cancel, or send. The second call must repeat the same arguments plus that confirm_token; that is the write. A confirm boolean is ignored. The token expires in 5 minutes and works once.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sheet_number": "<sheet_number>"
},
"name": "adopt_catalog_sheet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dry_run | No | ||
| sheet_number | Yes | ||
| confirm_token | No | ||
| role_overrides | No |