Ammo cost per round
cost_per_roundCalculates the price per round for ammunition from a listing's total price and package round count, and extracts the round count from the title when missing.
Instructions
Compute the cost per round of an ammo listing from its price and round count. If the round count is not given, it is read from the title ('50/Box', '1,000 Rounds', 'Box of 20', '20/25').
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": {
"price": "<price>"
},
"name": "cost_per_round"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| price | Yes | Price in USD | |
| title | No | Ammo title, used to read the round count and caliber | |
| rounds | No | Rounds in the package |