Skip to main content
Glama

Agent Data Tools: Utilities

Random colour

random_color

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, tone=pastel. Price $0.003/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only; not marked read-only because each call is charged.

Input Schema

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations by explaining the pricing model ($0.003/call, first 25 free, failed calls free) and explicitly reconciling the surprising readOnlyHint=false: 'not marked read-only because each call is charged.' That reconciliation is exactly the context an agent needs to interpret the structured flags correctly.

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?

Three compact sentences: capability, use case plus example, then billing/annotation notes. The pricing sentence is long but earns its place because it justifies the non-read-only flag. Front-loaded with the core capability.

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?

With no output schema, the description still tells the agent what comes back (hex, RGB and HSL values) and the count ceiling (1-50 in schema, referenced by the example). Billing and annotation rationale are covered, so nothing needed to call it correctly is missing.

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

Parameters4/5

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

Schema coverage is 100%, so both parameters are already documented, and the description adds an applied example (count=3, tone=pastel) plus the tone options ('pastel or dark'). It adds usage context but no new semantics beyond the schema, keeping it near baseline with a small bump for the example.

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?

States a specific operation (generate one or more random colours) with the output formats (hex, RGB, HSL) and the tone constraint, which cleanly separates it from the static 'color' and 'color_contrast' siblings. It never names a sibling to route against, so no explicit differentiation credit.

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?

Gives concrete use cases ('placeholders, avatars and design ideas') and a worked example (count=3, tone=pastel). It does not state when NOT to use it or point to an alternative tool such as 'color' for converting an existing colour.

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.