record_revenue
Record model revenue events—sales, royalties, tips, or refunds—by marketplace to track earnings and maintain accurate transaction history.
Instructions
Record a revenue event (sale, royalty, tip, or refund).
Args:
model_id: File hash or listing ID of the model.
marketplace: Marketplace name (e.g. ``"thingiverse"``).
amount_usd: Amount in USD.
transaction_type: Type — ``"sale"``, ``"royalty"``,
``"tip"``, or ``"refund"``.
currency: Currency code (default ``"USD"``).
description: Optional description of the transaction.
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": {
"model_id": "<model_id>",
"marketplace": "<marketplace>",
"amount_usd": "<amount_usd>"
},
"name": "record_revenue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| currency | No | Currency code (default ``"USD"``). Default: "USD". | |
| model_id | Yes | File hash or listing ID of the model. | |
| amount_usd | Yes | Amount in USD. | |
| description | No | Optional description of the transaction. Default: "". | |
| marketplace | Yes | Marketplace name (e.g. ``"thingiverse"``). | |
| transaction_type | No | Type — ``"sale"``, ``"royalty"``, ``"tip"``, or ``"refund"``. Default: "sale". |