Optimize cash denominations
agent-networks_cash-denomination-optimizationPlan note and coin acquisitions so agents can fulfil caller-supplied cash-in and cash-out amounts. denominations define the only currency systems used; none are assumed. Cash-out and change use largest-first greedy composition against on-hand quantities, preferring notes above minimum_reserves before dipping into reserves. Cash-in adds a greedy composition of tender (defaulting to amount) then dispenses change of tender minus amount. Recommended acquisitions cover shortage compositions and reserve top-ups, capped by replenishment.max_quantity. minimum_cash_required is starting inventory value plus recommended acquisitions. No replenishment is initiated. Price $0.04 USDC. POST /api/v1/agent-networks/cash-denomination-optimization. Unpaid calls return 402 and do not run.
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": {
"denominations": "<denominations>",
"agents": "<agents>",
"transactions": "<transactions>"
},
"name": "agent-networks_cash-denomination-optimization"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agents | Yes | ||
| transactions | Yes | ||
| denominations | Yes | ||
| replenishment | No |