Cost per cup
cost_per_cupComputes the cost per cup, per month and per year with the prices the USER gives: capsules (pack price and capsules per pack) and/or beans or ground coffee (pack price, pack grams and grams per cup), plus optional milk cost per cup. It only uses the prices passed in the arguments; with no prices it returns an error listing what is missing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cost_per_cup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| language | No | Language of the answer (default: es). Content is in Spanish; translate it if needed. | |
| cups_per_day | No | Cups per day (default 1). | |
| grams_per_cup | No | Grams of coffee per cup (default 8; espresso 7-9 g, double 14-18 g). | |
| beans_pack_grams | No | Grams in that pack (e.g. 1000). | |
| beans_pack_price | No | Price of the bean or ground coffee pack in euros, as given by the user. | |
| capsules_per_pack | No | Capsules in that pack. | |
| milk_cost_per_cup | No | Optional cost of the milk per cup in euros. | |
| capsule_pack_price | No | Price of the capsule pack in euros, as given by the user. |