Skip to main content
Glama

Agent Data Tools: Utilities

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.002/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 (readOnlyHint, destructiveHint=false, idempotentHint=false), but the description goes further by disclosing the billing model ($0.002/call via x402 or card key, first 25 free, failed calls free) and the cryptographic random source, and it justifies non-idempotency by noting repeats are charged. It restates 'changes nothing' from readOnlyHint, which slightly dilutes the added value.

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 ID kinds and the read-only guarantee are front-loaded in the first sentence, then usage, example, and pricing follow in a logical order with no filler. It is dense and long for a single paragraph, but each clause carries operational information.

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 no output schema, the description should ideally say what the response looks like when both generation and decode are requested; it never states the return shape (e.g. per-kind arrays plus a decoded timestamp field). Everything else an agent needs — limits, defaults via the example, cost, and mutation safety — is present.

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 baseline is 3, but the description adds real meaning: 'up to 20 of each' clarifies that count is per ID type rather than a total, and 'NanoID (21 URL-safe characters)' versus 'random base62 and hex strings' implies the length parameter only affects the random-string kinds, not NanoID.

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?

Names a concrete verb and enumerates the exact artifacts produced: UUID v4, UUID v7, ULID, NanoID, base62 and hex strings, plus a decode mode for embedded timestamps. An agent can tell immediately that this is a multi-format ID factory rather than something like the sibling `uuid` (single format) or `random_password`.

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?

Explicitly scopes use cases — database keys, request/trace IDs, file names, test data — and gives a worked example (count=3). It does not, however, route the agent away from the neighboring `uuid` or `random_password` tools, so the when-not-to-use condition is left implicit.

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.