Skip to main content
Glama

Agent Data Tools: Utilities

Random colour

random_color
Read-only

One or more random colours in hex, RGB and HSL, optionally limited to pastel or dark tones. Use for placeholders, avatars and design ideas. Example: count=3. 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

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "random_color"
  }
}

Input Schema

NameRequiredDescriptionDefault
toneNoany (default), pastel or dark
countNoHow many (1-50, default 1)

Schema Changelog

Changes observed during successful MCP inspections.

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

TDQS

A4.4/5.0
Behavior5/5

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

Beyond the annotations, it discloses the full cost model: $0.01 per call via x402 USDC or a card key, first 10 free, failed calls free, and that repeats are not free because each call is charged. That is exactly the kind of billing/auth context annotations cannot express. The one redundant clause ("reads or computes only and changes nothing") merely restates readOnlyHint/destructiveHint, which is harmless.

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?

Purpose and output formats are front-loaded in the first sentence, followed by usage, an example, and pricing. Every sentence carries information, though the long pricing sentence is dense and the "reads or computes only" clause is redundant against the annotations.

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

Completeness5/5

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

For a two-parameter generator with no output schema, the description supplies what an agent needs: what is returned (hex, RGB, HSL), how tone and count shape output, when it is appropriate, and the per-call charge so repeats are not assumed free.

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 coverage is 100% and both parameters already document their ranges and values, so the schema does the heavy lifting. The description adds only that tone is optional and an example usage (count=3), which is marginal added meaning over the structured fields.

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

Purpose5/5

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

The description names a specific verb and resource (generate random colours) and specifies the return formats (hex, RGB, HSL) plus the tone restriction, which cleanly separates it from sibling converters like color and color_contrast that operate on supplied colours rather than generating new ones.

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

Usage Guidelines4/5

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

"Use for placeholders, avatars and design ideas" gives concrete when-to-use context, and "optionally limited to pastel or dark tones" clarifies the selection condition for the tone parameter. It stops short of naming an alternative tool or stating when not to use it, so it does not reach the top band.

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