Preview cost
preview_costWhat-if on a paid result: what one part or component of it costs at another lot size, as its itemised cost sheet at lot_size, from the paid result; nothing new is calculated. Answers: status paid, view cost_sheet, with the item, environment and lot_size it states. Read-only and free.
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": {
"purchase_id": "<purchase_id>",
"result_token": "<result_token>"
},
"name": "preview_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | No | One item, from 1. | |
| lot_size | No | The lot of `view=cost_sheet`. | |
| component | No | One component, by its key in `components`. | |
| environment | No | One environment, by id. | |
| purchase_id | Yes | The purchase's id (a UUID). | |
| result_token | Yes | The result_token the paid answer carried (30 days). |