Get segment
get_segmentRetrieve a specific segment or cohort definition by providing its ID and website UUID.
Instructions
Fetch a single segment/cohort definition by ID.
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": {
"websiteId": "<websiteId>",
"segmentId": "<segmentId>"
},
"name": "get_segment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| segmentId | Yes | Segment/cohort ID. | |
| websiteId | Yes | Umami website UUID (obtain from list_websites). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No |