Get Segment Demographics
get_segment_demographicsProfile one saved segment on its own, without any audience set logic or exclusions. Returns a BigQuery-computed demographic breakdown (age buckets, geography, and a behavioral/financial extra when available) evaluated directly over the segment's own definition — the segment-level path, with no audience composition (set_logic/exclusions) applied. Works for any subtype (filter, matched, custom) — non-filter subtypes resolve via the same underlying ID-set composition audiences use. Results may populate a 20-minute server-side cache and record query telemetry; the segment definition is unchanged. Requires 'discovery' scope.
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": "get_segment_demographics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segment_id | Yes | The segment ID to retrieve demographics for |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| guidance | No | Interpretation or recovery guidance for this result | |
| count_unit | No | ||
| page_count | No | Number of objects on this page, not the organization total | |
| segment_id | Yes | ||
| count_state | No | Unknown means no count; available does not guarantee freshness. Recount for a current value. | |
| extra_field | No | ||
| total_count | Yes | ||
| generated_at | Yes | ISO timestamp of the demographic snapshot | |
| next_actions | No | Suggested next calls using returned IDs and available scopes. Not executed and not user consent. | |
| segment_name | Yes | ||
| age_breakdown | Yes | ||
| geo_breakdown | Yes | ||
| breakdown_extra | No | ||
| population_input | No | Population input used for the preview; IDs refer to their current saved definitions |