Get statistics
get_statsGet compact flat usage stats for a grinder, machine, or bean.
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": {
"scope": "<scope>",
"id": "<id>"
},
"name": "get_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The entity ID | |
| scope | Yes | The stats scope |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brews | Yes | ||
| last_bean | No | ||
| last_used | No | ||
| grams_ground | No | ||
| effective_age | No | ||
| beans_consumed | No | ||
| grams_consumed | No | ||
| grams_remaining | No | ||
| last_grind_setting | No |