record_transaction
Record a buy or sell transaction (price, quantity, date) and automatically adjust inventory: BUY adds, SELL subtracts. Always keeps stock accurate after every trade.
Instructions
Record a buy or sell transaction. By default this also adjusts inventory (BUY adds, SELL subtracts). This is a real write. Requires IWMM_API_KEY.
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": {
"cardId": "<cardId>",
"type": "<type>",
"quantity": "<quantity>",
"pricePerUnit": "<pricePerUnit>",
"isFoil": "<isFoil>",
"date": "<date>"
},
"name": "record_transaction"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ISO 8601 date (YYYY-MM-DD). | |
| fees | No | ||
| type | Yes | ||
| notes | No | ||
| cardId | Yes | Internal IWMM card UUID. | |
| isFoil | Yes | ||
| source | No | Where the transaction happened (e.g. 'TCGPlayer', 'LGS'). | |
| quantity | Yes | ||
| pricePerUnit | Yes | Per-unit price in USD. | |
| skipInventorySync | No | If true, record the transaction without adjusting inventory. Default false - transactions normally update inventory. |