Skip to main content
Glama

util_ulid

Read-only

ULID generator and decoder — Generate or decode ULIDs (Universally Unique Lexicographically Sortable Identifiers: 48-bit millisecond timestamp + 80-bit randomness in Crockford base32). Generate mode (default): count=1-100, optional time= ISO date-time or unix seconds/ms to embed a specific timestamp, monotonic=false to disable monotonic increments within a batch. Decode mode: ulid= one or a comma list of up to 100 ULIDs returns validity, canonical form (Crockford I/L/O normalization), embedded timestamp and ISO time, with a reason for each invalid one. Offline, uses a cryptographic RNG. Price: $0.001 USDC (Base, via x402).

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already cover read-only, non-destructive and open-world, so the bar is lower, and the description still adds real context: offline operation, cryptographic RNG source, monotonic-increment behavior, and per-invalid-item reasons in the decode response. The x402 payment disclosure ($0.001 USDC on Base) is a genuinely useful operational constraint an agent would otherwise not know.

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?

Front-loaded with the identity and the ULID anatomy, then split into 'Generate mode' and 'Decode mode' clauses with the payment note last, so each part is findable. It is a single dense run-on paragraph, and the mode labels could be more visually separable for fast scanning.

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 zero-parameter utility with no output schema, the description covers input semantics, decode return fields, RNG source, offline status and cost — more than enough to call it correctly. The only gap is that generate-mode return shape (single string vs. array when count>1) is left implicit.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema declares zero properties, so the description carries the full parameter burden — and it does: count range 1-100, time as ISO date-time or unix seconds/ms, monotonic=false to disable within-batch increments, and ulid as one value or a comma list up to 100. That is meaning well beyond the empty schema.

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 pair of verbs and the resource: 'ULID generator and decoder', then expands ULID inline (48-bit ms timestamp + 80-bit randomness in Crockford base32). An agent immediately knows exactly what comes out and what goes in, with no ambiguity against the util_* siblings.

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 the two modes and marks one as default ('Generate mode (default)', 'Decode mode: ulid='), which is exactly the branch decision an agent needs. It stops short of saying when a caller should prefer decoding a ULID versus generating one, and names no alternative tool for related needs.

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