Overview
- Category
- Lifestyle
- API mode
execute- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/random-team-generator
Execute availability
This tool has an execute route defined by its descriptor. Server-side execution is currently unavailable, so requests return api_not_launched.
POST /api/v1/tools/random-team-generator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
names· string · required- Paste one roster entry per line or separate entries with commas. Blank entries are ignored.
team_count· number · required- Enter how many teams the shuffled roster should be split into.
unique· boolean · required- Keep only the first exact occurrence before shuffling.
{
"type": "object",
"properties": {
"names": {
"type": "string",
"description": "Paste one roster entry per line or separate entries with commas. Blank entries are ignored."
},
"team_count": {
"type": "number",
"description": "Enter how many teams the shuffled roster should be split into."
},
"unique": {
"type": "boolean",
"description": "Keep only the first exact occurrence before shuffling."
}
},
"required": [
"names",
"team_count",
"unique"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
teams· array- Assigned team rosters.
result· string- Browser-calculated result.
{
"type": "object",
"properties": {
"teams": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"members": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"members"
],
"additionalProperties": false
},
"description": "Assigned team rosters."
},
"result": {
"type": "string",
"description": "Browser-calculated result."
}
},
"additionalProperties": false
}
Split eight people into three teams
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/random-team-generator/execute" \
-H "Content-Type: application/json" \
-d '{
"names": "Ada\nGrace\nAlan\nLinus\nKatherine\nEdsger\nMargaret\nDonald",
"team_count": 3,
"unique": true
}'
{
"ok": true,
"data": {
"slug": "random-team-generator",
"result": {
"values": {
"teams": [
{
"name": "Team 1",
"members": [
"Ada",
"Linus",
"Margaret"
]
},
{
"name": "Team 2",
"members": [
"Grace",
"Katherine",
"Donald"
]
},
{
"name": "Team 3",
"members": [
"Alan",
"Edsger"
]
}
],
"result": "Team 1: Ada, Linus, Margaret\nTeam 2: Grace, Katherine, Donald\nTeam 3: Alan, Edsger"
},
"display": {
"display": "[{\"name\":\"Team 1\",\"members\":[\"Ada\",\"Linus\",\"Margaret\"]},{\"name\":\"Team 2\",\"members\":[\"Grace\",\"Katherine\",\"Donald\"]},{\"name\":\"Team 3\",\"members\":[\"Alan\",\"Edsger\"]}]"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.