MCPToolsCDP tools
Get Segment
Read one segment's stored match condition
cdp_get_segment
Returns one saved segment owned by your brand — its metadata and stored match condition. Pass the segmentId from cdp_list_segments.
Read-only and scoped to your brand.
Parameters
| Name | Type | Required | Description | Default |
|---|---|---|---|---|
segmentId | string | Yes | The segment id from cdp_list_segments. | — |
Returns
id,name,description?— the segment metadata.scope— your brand's shop domain.condition— the stored match condition, returned exactly as persisted (including the server scope wrapper).
Example prompts
Show me the condition for my "VIP" segmentWhat rule defines segment seg_123?Notes
- An id that isn't one of your brand's segments returns not-found — you can never read another brand's segment, and can't even tell that it exists.
- The condition round-trips exactly, so the definition you read matches what was stored.