inventory_updateInventoryCountStatus

WRITE

Update inventory count status.

Parameters

idstringrequired
statusanyrequired
// When set, the transition only applies if the row is still in this status. // The `.eq("status", expectedStatus)` makes the read-then-write atomic, so a // concurrent transition can't be clobbered (0 rows matched → `.single()` // errors and the caller surfaces a failure). expectedStatusanyoptional

Call it

Invoke it through the call_tool meta-tool with its arguments:

call_tool
call_tool({
  "name": "inventory_updateInventoryCountStatus",
  "arguments": {
    "id": "string",
    "status": "string"
  }
})

Input schema

The raw JSON Schema the tool validates its arguments against.

schema
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {},
    "// When set, the transition only applies if the row is still in this status.\n    // The `.eq(\"status\", expectedStatus)` makes the read-then-write atomic, so a\n    // concurrent transition can't be clobbered (0 rows matched → `.single()`\n    // errors and the caller surfaces a failure).\n    expectedStatus": {}
  },
  "required": [
    "id",
    "status"
  ]
}