Save Spec Template
save_spec_templateCreate or edit one spec template: a named, reusable set of cost-driver attribute values (e.g. "Standard Paperback" = Perfect binding, 6×9 trim, Mono text) that apply_spec_fill(templateId=...) applies to many items at once. Omit templateId to create: name and spec are required. Pass templateId to edit, where every omitted value keeps its current value, a spec replaces the whole stored spec, and an empty description clears it. Names are unique per account, ignoring case. Spec values are keyed by item custom field fieldName and validated against those fields; the preview shows them as they will be stored. Editing a template does not change items already filled from it. Requires an operator (unpinned) credential and an Admin user.
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": "save_spec_template"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Template name (e.g. "Standard Paperback"); required to create. | |
| spec | No | Attribute values keyed by item custom field fieldName (e.g. {"binding": "Perfect", "trim_width": 6}); required to create, and replaces the entire spec on an edit. | |
| preview | No | Step 1 of the required two-step write: set true to validate and receive a structured preview plus a single-use previewReceipt. Nothing changes until the commit call. | |
| templateId | No | The template id (GUID) to edit; omit to create a template. | |
| description | No | Optional description of this production configuration; empty clears it. | |
| idempotencyKey | No | Caller-generated idempotency key; required with previewReceipt to commit. | |
| previewReceipt | No | Step 2 of the required two-step write: the receipt returned by the preview call. Supply together with a fresh idempotencyKey to commit; calls without it are refused. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| deleted | No | ||
| preview | No | ||
| template | No | ||
| expiresAt | No | ||
| actionItemId | No | ||
| confirmation | No | ||
| correlationId | No | ||
| approvalResult | No | ||
| idempotencyKey | No | ||
| previewReceipt | No | ||
| idempotentReplay | No |