Save a segment
save_segmentSave a named set of filters as a segment, so the team can apply it in the dashboard's Segments menu. A segment with the same name (case-insensitive) is replaced. Needs member or owner access. Use the same filters shape as the other tools.
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": {
"name": "<name>",
"filters": "<filters>"
},
"name": "save_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short name, e.g. "Returning visitors from Europe". | |
| site | No | Site domain (example.com), id or public id (tb_…). Optional with a site key, or when the account has one site. | |
| filters | Yes | At least one filter, e.g. {"channel": ["Paid Search", "Paid Social"], "country": {"is_not": "US"}}. |