Log Pack Observation
log_pack_observationLogs a real, observed consolidation pack -- "these articles, at these quantities, actually packed onto N pallets at these dims/weight" -- against an existing consolidation group in your team's Library. This is ground truth: it becomes a new data point resolve_quantities and the app's own resolve flow learn from (PRINCIPLES.md P-13).
Two-step by design: call once WITHOUT confirm to preview exactly what would be logged; call again with confirm=true and the preview_id to actually log it. A confirmed log can be undone within 15 minutes via undo_change -- after that it's permanent (append-only ground truth, by design -- see PRINCIPLES.md P-17/P-18 for why).
On the confirm call, only api_key, confirm, and preview_id are actually read -- every other field is required by the schema for shape-consistency but ignored if resupplied, since the values captured during the preview call are what gets logged; to change any of them, call again without confirm for a fresh preview.
Do not use this for a single article's own packing history outside a consolidation group -- that data comes from the app's own data entry, not this tool. Do not use this to correct a mistaken past observation after the 15-minute undo window -- log a new, correct observation instead; past ones are never edited. Requires an EXISTING consolidation_groups id -- this tool cannot create a new consolidation group.
Requires an existing consolidation_groups id (from the app's Consolidation Groups screen) and each member article's number (resolved to its profile automatically).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| api_key | Yes | Your team's kubik.tools MCP API key (kubik_mcp_...). Required. | |
| confirm | No | Set true, with preview_id, to actually log the observation after reviewing the preview. Omit or false for a dry-run preview only. | |
| width_cm | Yes | ||
| height_cm | Yes | ||
| length_cm | Yes | ||
| weight_kg | Yes | Total gross weight, in kg. | |
| preview_id | No | The preview_id returned by the first (unconfirmed) call. Required when confirm=true. | |
| pallet_count | Yes | Number of pallets this pack used. | |
| member_quantities | Yes | The articles and quantities actually packed together, e.g. [{article_number: 'MLB1001', qty: 3}]. | |
| consolidation_group_id | Yes | The id of an existing consolidation group in your team's Library. Required. |