accessory_operations
Check out accessories to users, assets, or locations; check them back in and list current checkouts. Manage accessory inventory assignments and quantity tracking directly.
Instructions
Perform checkout/checkin operations on accessories.
Accessories can be checked out to a user, asset, or location. Each checkout decrements the available quantity, and checkin increments it back.
Operations:
checkout: Checkout an accessory to a user/asset/location (requires checkout_data with checkout_to_type and assigned_to_id)
checkin: Checkin an accessory (requires checkout_id from the checkout record)
list_checkouts: List all users who have this accessory checked out
Returns: dict: Result of the operation including success status and data
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"accessory_id": "<accessory_id>"
},
"name": "accessory_operations"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The operation to perform on the accessory | |
| checkout_id | No | Checkout ID (required for checkin action) | |
| accessory_id | Yes | Accessory ID | |
| checkout_data | No | Checkout data (required for checkout action) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||