legal_consent_log_stats
Aggregates consent decision counts by action and banner version over a chosen day range, so you can review opt-in and opt-out trends from the consent log.
Instructions
Aggregate consent decision counts by action and banner_version over a day range [from, to) (both optional, default the last 30 days including today; at most 366 days). Returns { from, to, rows: [{ action, banner_version, count }] }. Requires manage_options. Logging itself stays off until legal_put_consent's log_enabled is set, which should only happen after the Datenschutz document has an 'einwilligungsnachweis' section describing it. Requires cvrt-legal 0.5.0+.
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": {
"site": "<site>"
},
"name": "legal_consent_log_stats"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | First day NOT counted (exclusive, the range is [from, to)). Defaults to tomorrow, so today is included. | |
| from | No | First day counted (inclusive). Defaults to 30 days before to; must be before to. | |
| site | Yes | Site id (see list_sites) |