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 10 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.

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

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. Changed4 schema fields changed
    • changedInput schema / properties / count / maximum
      Previous value: -9007199254740991New value: +20
    • changedInput schema / properties / count / minimum
      Previous value: --9007199254740991New value: +1
    • changedInput schema / properties / length / maximum
      Previous value: -9007199254740991New value: +128
    • changedInput schema / properties / length / minimum
      Previous value: --9007199254740991New value: +8
  2. Added

TDQS

A4.5/5.0
Behavior5/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, but the description adds behavior those annotations cannot express: pricing ($0.002/call via x402 USDC or card key, first 10 free, failed calls free), the crucial fact that repeats are not free despite non-idempotency, and that values come from a cryptographic random source. It also restates the side-effect-free nature, reinforcing rather than contradicting the annotations.

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?

Well front-loaded: generation capabilities come first, then the decode function, then usage, then pricing and safety. It is dense but every clause carries information; the pricing/charging sentence is long and slightly interrupts flow, but it is materially useful rather than filler.

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 three simple optional parameters, no output schema, and annotations covering safety, the description supplies what an agent still needs: output formats and lengths, the maximum batch size, example usage, decode behavior, cost model, and the fact that IDs are cryptographically random. Minor gap: it does not describe the decode return shape (e.g., what timestamp format), but the annotations and schema make this adequate.

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. The description earns a bump by clarifying the semantics behind the parameters: count applies 'of each kind' up to 20, NanoID is 21 URL-safe characters (relating to length), and decode specifically reads the timestamp hidden in a ULID or UUID v7 rather than any arbitrary UUID. That is meaningful added interpretation beyond the raw schema text.

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 ('Generate unique IDs') plus enumerated resources (UUID v4, UUID v7, ULID, NanoID, base62, hex) and a second capability (decode creation time). A parenthetical marks which types are time-ordered versus random, and 'every common kind in one call' distinguishes it from narrower siblings such as uuid or time without needing their schemas.

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 names concrete use cases: database keys, request and trace IDs, file names, test data. It also gives an example invocation (count=3). It does not, however, state when not to use it or name an alternative (e.g., the uuid or time sibling) for single-format needs, 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.

Resources