nevent_update_segment
Modify an existing segment's name and/or filter definition. Call this after nevent_get_segment to inspect the current definition before changing it. At least one of name or definition must be provided. After update, call nevent_segment_preview to confirm the new audience count before scheduling a campaign.
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": {
"segment_id": "<segment_id>"
},
"name": "nevent_update_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | New human-readable name for the segment. Omit to leave unchanged. | |
| definition | No | Replacement segment DSL. The full definition is replaced when provided. Criteria in the same stanza are OR-combined: a fan matches the stanza if ANY criterion matches. Stanzas are AND-combined: a fan must match EVERY stanza. Omit to leave the existing definition unchanged. | |
| segment_id | Yes | Identifier of the segment to update. Use nevent_list_segments to get valid segment IDs. |