Home / Servers / Square API / retrieve_customer_segment
RetrieveCustomerSegment
An MCP tool from the Square API server, hosted on mcp.hjlabs.in.
RetrieveCustomerSegment Retrieves a specific customer segment as identified by the segment_id value. [GET /v2/customers/segments/{segment_id}]
Name on the gateway: square_api__retrieve_customer_segment · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
segment_id required | string | The Square-issued ID of the customer segment. |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "square_api__retrieve_customer_segment",
"arguments": {
"segment_id": "…"
}
}Or connect the Square API server directly, which lists 308 tools including this one:
claude mcp add --transport http hj-square-api https://mcp.hjlabs.in/mcp/square-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the retrievecustomersegment tool with segment_id set to ….