Skip to main content
Glama

Agent Data Tools: Utilities

Split people into teams

random_teams
Read-only

Split a list of names into a given number of random, evenly sized teams. Use for games, workshops and classrooms. Example: items=Ada,Alan,Grace,Linus,Margaret,Tim. Price $0.01/call via x402 USDC or a card key (/credits), first 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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": {
      "items": "<items>"
    },
    "name": "random_teams"
  }
}

Input Schema

NameRequiredDescriptionDefault
itemsYesComma-separated names
teamsNoNumber of teams (default 2)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / teams / maximum
      Previous value: -9007199254740991New value: +20000
    • changedInput schema / properties / teams / minimum
      Previous value: --9007199254740991New value: +1
  2. First observed

TDQS

A3.6/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, destructiveHint=false, openWorldHint=false and idempotentHint=false, so the safety profile is covered. The description adds genuinely new behavioral context beyond the annotations: per-call pricing via x402 USDC or a card key, the first 10 calls free, failed calls free, and the warning that repeats are charged. The restatement that it "changes nothing" is redundant with readOnlyHint but not harmful.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is front-loaded in the first sentence, followed by use cases, an example, and then billing terms. Every sentence carries information, though the pricing block is dense and slightly crowds the core behavioral description. Nothing is wasted outright.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a two-parameter utility with no output schema, the description covers purpose, format, and cost but leaves the actual result shape unstated: it never says what is returned (team groupings, ordering, or labels). It also omits how remainders are distributed when the names do not divide evenly, which is central to the promised "evenly sized teams."

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so both parameters are already documented, including the default of 2 teams. The worked example "items=Ada,Alan,Grace,Linus,Margaret,Tim" reinforces the comma-separated string format but adds little beyond what the schema already says. Baseline 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description states a specific verb and resource: split a name list into a given number of random, evenly sized teams. That is clearly distinct from sibling utilities like random_shuffle or random_pick because it names the team-splitting outcome. It stops short of a 5 because it never explicitly contrasts itself with those siblings.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

"Use for games, workshops and classrooms" gives positive context, which is more than nothing. However, there is no when-not guidance, no mention of when to prefer random_shuffle or random_pick, and no statement of constraints such as what happens if the requested team count exceeds the number of names.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources