Log an in-person sale
log_saleRecords an in-person sale of a card in the user's collection: a Deal Desk purchase (dealId), a cardId or a claimId, with the total sale price, quantity and any fees (venue show by default). Ask the user "Record sold for $?" and pass confirm true after they say yes. A card that sold online and isn't confirmed yet is refused. The card leaves the collection (its oldest cost lots are used) and the sale counts in today's Deal Desk numbers. If the result has alerts, show them to the user before anything else.
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": {
"salePrice": "<salePrice>",
"confirm": "<confirm>"
},
"name": "log_sale"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fees | No | Any fees paid on this sale in USD (default 0). | |
| venue | No | Where it sold (default show). | |
| cardId | No | Or the card's SlabLineage id in the user's collection. | |
| dealId | No | A Deal Desk purchase (from record_purchase). | |
| claimId | No | Or the collection claim id. | |
| confirm | Yes | True once the user said yes to recording this sale; never set it before that. | |
| quantity | No | How many were sold (default 1). | |
| salePrice | Yes | The total sale price in USD. | |
| idempotencyKey | No | A unique key for this record (any short text you make up once); a retry with the same key never records twice. |