Generator
Randomly group input data into specified number of groups with flexible options
Call this tool from your code in three languages.
curl -X POST 'https://api.elysiatools.com/en/api/tools/random-group-generator' \
-H 'Content-Type: application/json' \
-d '{"data":"Enter items to group, separated by newlines or custom separator","groupCount":2,"groupBy":"count","separator":"\\n","allowEmptyGroups":false,"maintainOrder":false,"showGroupNumbers":true,"prefix":"Group"}'Send a POST request with your inputs as JSON. File parameters require a separate upload first.
POST https://api.elysiatools.com/en/api/tools/random-group-generator| Name | Type | Required | Description |
|---|---|---|---|
| data | textarea | Yes | — |
| groupCount | number | Yes | — |
| groupBy | radio | No | — |
| separator | text | No | Use \n for newlines, or specify custom separator |
| allowEmptyGroups | checkbox | No | Allow groups to be empty when items are fewer than groups |
Add this tool to your Model Context Protocol server so AI agents can list and call it.
Add this block to your MCP client configuration:
{
"mcpServers": {
"elysiatools-random-group-generator": {
"name": "random-group-generator",
"description": "Randomly group input data into specified number of groups with flexible options",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=random-group-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}After connecting to the SSE endpoint, list the exposed tools:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoke the tool by its id, passing arguments built from its parameters:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "random-group-generator",
"arguments": {
"data": "Enter items to group, separated by newlines or custom separator",
"groupCount": 2,
"groupBy": "count",
"separator": "\\n",
"allowEmptyGroups": false,
"maintainOrder": false,
"showGroupNumbers": true,
"prefix": "Group"
}
}
}Questions or issues? Contact [email protected]
| maintainOrder | checkbox | No | Keep original item order within each group |
| showGroupNumbers | checkbox | No | Display group numbers in output |
| prefix | text | No | Used when showGroupNumbers is enabled |
Text result
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}