Get tags and segments
sm_get_member_segmentsGet tags and segments with their engagement and status breakdowns. Use to turn an event or interest tag into a working audience. Every tag and segment is returned in one unpaginated call, but untagged members are excluded from the tag list and surface only as a separate untaggedCount, and tag engagement rates exclude insiders while tag member counts do not.
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": {
"projectId": "<projectId>"
},
"name": "sm_get_member_segments"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | Required. The opaque alphanumeric project identifier of 8 or more characters to scope this request to. Call GET /_api/public/v1/enterprise/projects to list the project IDs available to your API key. Omitting it returns 400 VALIDATION_ERROR. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | A machine-readable identifier for the error type. For the full code taxonomy, see the sm_get_schema tool or the Enterprise API OpenAPI ErrorResponse component. | |
| tags | No | Tag rows with member counts. | |
| error | No | A human-readable error message detailing what went wrong. | |
| segments | No | Segment rows with member counts. | |
| projectId | No | An opaque alphanumeric project identifier of 8 or more characters identifying a Space Monkey Project. Treat this value as entirely opaque; do not parse, sequentialize, or auto-generate it. | |
| totalCount | No | Total members in the audience. | |
| tagEngagement | No | Per-tag engagement rollup rows. | |
| untaggedCount | No | Members with no tags. | |
| subscribedCount | No | Subscribed members in the audience. | |
| tagStatusBreakdown | No | Tag-by-status member count rows. | |
| overallAvgEngagement | No | Audience-wide mean engagement score. |