Skip to main content
Glama

UK Data for Agents

generate_random_color

Read-onlyIdempotent

Generates a random color in hexadecimal format (e.g., #A3F2B1) using a cryptographically secure random source. (cost: 1 credit)

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": "generate_random_color"
  }
}

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior2/5

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

The description adds real value beyond the annotations by disclosing the cryptographically secure source and the 1-credit cost. However, describing output as "random" on every call is directly at odds with the supplied idempotentHint: true annotation, so an agent cannot tell whether repeated calls return the same color or a new one.

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

Conciseness5/5

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

A single front-loaded sentence that names the action, output format, entropy source, and cost, with nothing redundant and the example placed immediately after the format claim.

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

Completeness4/5

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

For a no-parameter generator with no output schema, the description supplies the essentials: result format, an example, the randomness source, and the credit cost. The one unresolved point is determinism, which the idempotentHint annotation leaves ambiguous against the "random" wording.

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?

There are zero input parameters, so the schema carries no semantics to explain, and the baseline of 4 applies. The description does contribute the only meaningful semantic detail — that the returned value is a hex color string — even though that is output rather than input semantics.

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?

States a specific verb and resource ("Generates a random color") plus the exact output format with a concrete example ("#A3F2B1"), which cleanly separates it from the other random-generation siblings (generate_random_string, generate_random_number, generate_password).

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?

Usage is implied by the tool's nature — an agent would call it when it needs an arbitrary color value — but there is no explicit when-to-use, no mention of the bordering siblings, and no guidance on whether a color can be requested in another format or with constraints.

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