inventory_costing__fifo_cogs
Calculate cost of goods sold and ending inventory value using FIFO method from purchase history and units sold.
Instructions
[inventory-costing] purchases: list of (units, unit_cost) in order. Returns COGS and ending value.
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": {
"purchases": "<purchases>",
"units_sold": "<units_sold>"
},
"name": "inventory_costing__fifo_cogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchases | Yes | ||
| units_sold | Yes |