Preview item creation
preview_item_createPreview an item creation without writing anything (read-only). It takes create_item's arguments, all optional: partial values are valid. Returns the resolved proposal, the applicable field definitions and the required fields still missing (missingRequired); without a categoryId it adds missingCategory and the category list. In hosts that render widgets (e.g. ChatGPT) the result is an editable confirm card: missing values are filled and a category is picked on the card, and its 'Create item' button calls create_item itself. Hosts without widgets receive the same proposal as data.
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": "preview_item_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Proposed item name; the card asks for it when absent | |
| minStock | No | Optional restock threshold for quantity-tracked stock | |
| quantity | No | Initial stock amount — required with trackingMode "quantity" | |
| categoryId | No | Category id (from get_item_requirements); without it the card shows a category picker | |
| description | No | ||
| customFields | No | Proposed field values keyed by fieldDefId (from get_item_requirements) — same shape as create_item's customFields | |
| trackingMode | No | "quantity" for quantity-tracked stock (consumables) instead of a serialized single item | |
| homeLocationId | No | Home location resource id (from search_resources); absent = the category or organization default | |
| responsiblePersonId | No | Responsible person resource id (optional) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| v | Yes | ||
| mode | Yes | ||
| debug | No | ||
| fields | Yes | ||
| proposal | Yes | ||
| categories | No | ||
| autoConfirm | No | ||
| missingCategory | No | ||
| missingRequired | Yes |