Skip to main content
Glama

Simpler.Asia

stock_item_delete

DestructiveIdempotent

Soft-delete a stock item by id: sets is_active to 0 while its movements-ledger history stays intact. stock_item_adjust then refuses the id as NOT_FOUND and stops resolving it by name, so a later delivery under the same name creates a fresh item instead of reviving this one. stock_item_list and stock_item_read still return it with is_active: 0 — only the dashboard's stats header excludes it. Restore by running a normal update that sets is_active back to 1; there is no separate restore door.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
idYesThe stock item id to soft-delete (stock_item_list shows them).
nameNo
unitNo
notesNo
categoryNo
quantityNo
is_activeNo
expiry_dateNo
sell_price_centsNo
cost_per_unit_centsNo
low_stock_thresholdNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources