list_consumers
Retrieve consumers for a control plane in Kong Konnect, with pagination and size configuration to manage large datasets.
Instructions
List all consumers associated with a control plane.
INPUT:
controlPlaneId: String - ID of the control plane
size: Number - Number of consumers to return (1-1000, default: 100)
offset: String (optional) - Pagination offset token from previous response
OUTPUT:
metadata: Object - Contains controlPlaneId, size, offset, nextOffset, totalCount
consumers: Array - List of consumers with details for each including:
consumerId: String - Unique identifier for the consumer
username: String - Username for this consumer
customId: String - Custom identifier for this consumer
tags: Array - Tags associated with the consumer
enabled: Boolean - Whether the consumer is enabled
metadata: Object - Creation and update timestamps
relatedTools: Array - List of related tools for consumer analysis
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": {
"controlPlaneId": "<controlPlaneId>"
},
"name": "list_consumers"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Number of consumers to return | |
| offset | No | Offset token for pagination (from previous response) | |
| controlPlaneId | Yes | Control Plane ID (obtainable from list-control-planes tool) |