Skip to main content
Glama

ID generator, UUID, ULID: UUID v4, UUID v7, ULID, NanoID

pack_id_toolbox
Read-only

Generate unique IDs of every common kind in one call: UUID v4 (random), UUID v7 and ULID (time-ordered, sort by creation), NanoID (21 URL-safe characters) and random base62 and hex strings, up to 20 of each, from the platform's cryptographic random source; and decode the creation time hidden in a ULID or UUID v7. Use for database keys, request and trace IDs, file names or test data. Example: count=3. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

Input Schema

NameRequiredDescriptionDefault
countNoHow many of each kind, 1-20 (default 3)
decodeNoOptional ULID or UUID to read the timestamp from
lengthNoLength of the random strings, 8-128 (default 24)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already cover safety and idempotency, and the description adds real value beyond them: entropy source is the platform's cryptographic RNG, there is a hard 'up to 20 of each' cap, calls are billable with the first 25 free and failures free, and repeats are not free because each call is charged. The clause 'reads or computes only and changes nothing' is redundant with readOnlyHint/destructiveHint but does not conflict with them.

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 capability list is front-loaded and the pricing/mutation disclaimer is deferred to the end, which is the right order. It is dense but nearly every clause carries information; the billing sentence is the longest and could be tightened.

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?

Covers formats, caps, entropy source, decode mode, cost, and side-effect profile for a zero-required-parameter tool. With no output schema, it would help to state the returned shape (e.g., all kinds returned together, or decode's result field), which is the one remaining gap.

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 already 100%, yet the description adds meaning beyond it: count is explicitly per-kind ('up to 20 of each'), NanoID is specified as 21 URL-safe characters, and decode is framed as reading a creation time from a ULID or UUID v7 rather than a generic timestamp field. The concrete 'Example: count=3' anchors the default.

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 ('Generate unique IDs') and enumerates every format produced (UUID v4/v7, ULID, NanoID, base62, hex) plus a secondary decode capability. That is enough for an agent to separate it from generic helpers like random_password, random_number, or the plain uuid sibling.

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?

Names concrete use cases (database keys, request/trace IDs, file names, test data), which gives an agent a clear selection context, and the decode clause implies when to use that mode. It never names an alternative tool or states when NOT to use it, so it stops short of full routing guidance.

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.