Get Goals
get_goalsThe site's saved goals (Website Settings > Goals) with how many human and bot visitors completed each one in the window: type page (a path, * = any part), click (an outbound destination), event (a custom event name) or scroll (a scroll depth percent). Each row carries the goal id for the goal filter.
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": "get_goals"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | ||
| days | No | ||
| from | No | YYYY-MM-DD | |
| site | Yes | ||
| filters | No | Narrow the report to the visits that match ALL of these (the dashboard's click-to-filter), inside the same window as the report. Omit for everything. |