Apply Spec Fill
apply_spec_fillBulk-set cost-driver custom field values on items — the operation that makes them quotable via generate_price_book_profiles. Best practice: call preview_spec_fill first to see what would change, then call this with the same parameters to commit. Every fill records provenance (source, sourceRef, timestamp) and captures per-item before-values for reversal via reverse_spec_fill.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "apply_spec_fill"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| spec | No | Attribute values to set, keyed by custom field fieldName (e.g. {"binding": "Perfect", "trim_width": 6}). | |
| bookId | No | Optional price book id (GUID) — context for what motivated this fill. | |
| source | No | How the values were sourced: OperatorAsserted (default), CsvImported, or VendorConfirmed. | |
| itemIds | No | List of item ids (GUIDs) to fill. Max 500. | |
| itemSkus | No | List of item SKUs to fill. Max 500. | |
| sourceRef | No | Free-text provenance reference (e.g. "Sheridan spec sheet 2024-03"). | |
| templateId | No | Template id (GUID) — uses the template's saved spec values. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| source | No | ||
| batchId | No | ||
| sourceRef | No | ||
| affectedCount | No | ||
| approvalResult | No | ||
| previewReceipt | No |