Skip to main content
Glama

AI SENSE Free Public Tools

Generate a random value

generate_random
Read-only

Generate a random number in a range (kind number, from and to, default 1 to 6), a color as #rrggbb (color), a GUID (guid), a ULID that sorts by its millisecond time (ulid), a password of 6 to 128 characters (password, length, default 12) or a passphrase of 2 to 12 word groups (passphrase, groups, default 4), which comes with its entropy in bits. UUIDs come from generate_uuid. No API key, no account and no sign up.

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": {
      "kind": "<kind>"
    },
    "name": "generate_random"
  }
}

Input Schema

NameRequiredDescriptionDefault
toNonumber only.
fromNonumber only.
kindYesnumber for an integer between from and to, color for #rrggbb, guid, ulid, password for a password of length characters, or passphrase for groups word groups.
groupsNopassphrase only.
lengthNopassword only.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • changedInput schema / properties / kind / description
      Previous value: -"number for an integer between from and to, color for #rrggbb, guid, password for a password of length characters, or passphrase for groups word groups."New value: +"number for an integer between from and to, color for #rrggbb, guid, ulid, password for a password of length characters, or passphrase for groups word groups."
    • changedInput schema / properties / kind / enum
      Previous value: -[
      -  "number",
      -  "color",
      -  "guid",
      -  "password",
      -  "passphrase"
      -]New value: +[
      +  "number",
      +  "color",
      +  "guid",
      +  "ulid",
      +  "password",
      +  "passphrase"
      +]
  2. Changed1 schema field changed
    • addedInput schema / properties / kind / description
      Added value: +"number for an integer between from and to, color for #rrggbb, guid, password for a password of length characters, or passphrase for groups word groups."
  3. Added

TDQS

A4.1/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false and idempotentHint=false, so safety profile is covered. The description adds context the annotations cannot: no API key, account or sign-up is required, and passphrase output includes entropy in bits. It does not disclose the randomness source or whether output is cryptographically secure, which matters for password generation.

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?

It is a single dense sentence that front-loads the primary case (number in a range) and then walks each variant. Nothing is redundant, though the run-on structure makes the trailing clauses about defaults and entropy slightly harder to scan than a short list would be.

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?

With five parameters, one required and no output schema, the definition covers every kind, its governing parameter, defaults and the sibling exclusion. The remaining gap is return shape: apart from noting that passphrases carry entropy in bits, it does not say what the response field contains for the other kinds.

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%, so baseline is 3. The description does add real value the schema lacks, namely the default values (1 to 6 for number, 12 for password length, 4 for passphrase groups) and the output format per kind, but it restates the kind enum semantics that the schema already documents.

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 states a specific verb ("Generate") and enumerates every resource variant it produces: number, color, guid, ulid, password, passphrase, each with its output format (#rrggbb, ULID sorting by millisecond time). It also explicitly disclaims the sibling domain by saying "UUIDs come from generate_uuid", so an agent can route without opening the schema.

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?

It gives concrete selection context, pairing each kind value with the parameter that governs it and the default (number defaults 1 to 6, password length defaults 12, passphrase groups defaults 4). It also names the alternative generator for UUIDs. There are no explicit when-not-to-use cases beyond that, which keeps it below a 5.

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.