# ma_audiences_create_segment: Save a segment

Create a segment from rules over traits, events, scores and consent, and count it.

- **Changes data:** yes
- **Scope needed:** `marketing:write`

## Example call

```json
{
  "name": "ma_audiences_create_segment",
  "arguments": {
    "body": {
      "name": "Recent buyers",
      "workspace_id": "ws_01J9ZZZZZZZZZZZZZZZZZZZZZZ",
      "definition": {
        "match": "all",
        "rules": [
          {
            "field": "event.order.placed",
            "op": "did",
            "within_days": 90
          }
        ]
      }
    }
  }
}
```

All tools: [MCP tools](https://www.scheeleworks.com/docs/mcp/tools). Connecting: [quickstarts](https://www.scheeleworks.com/docs/quickstart).
