List segments
list_segmentsSaved segments: id, name, filters and revision. To report on a segment, pass its filters as the filters input of any report tool. Segments are private team settings, so this needs the visitors scope.
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": "list_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fields | No | Optional: only these parts of the answer, as comma-separated dot paths (e.g. overview.current,series.date,series.visitors). Through a list a path applies to every item; period is always kept. An unknown top-level name fails with the list of valid ones. Leave out for the full answer. | |
| website_id | No | Website ID from list_websites (the data-site-id value in the tracking script). |