get_revenue
Fetch revenue grouped by currency for a revenue event like Purchase on your site. Use preset periods or custom date ranges with timezone support.
Instructions
Revenue grouped by currency for a given revenue event on a site.
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": {
"domain": "<domain>",
"event": "<event>"
},
"name": "get_revenue"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | End date YYYY-MM-DD (use with `from`). | |
| tz | No | IANA timezone for bucketing, e.g. Europe/Paris. | |
| from | No | Start date YYYY-MM-DD (use with `to` for a custom range). | |
| event | Yes | Revenue event name, e.g. Purchase. | |
| domain | Yes | Site domain. | |
| period | No | Preset period (default 7d). Ignored when both `from` and `to` are set. |