Skip to main content
Glama

Decodificar ULID

ulid-decode
Read-onlyIdempotent

Valida un ULID y extrae su marca de tiempo y la parte aleatoria. Cuándo: hay que generar un identificador en este formato o leer los campos que lleva dentro. No para: validar un UUID e informar versión, variante y la marca de tiempo en v1, v6 y v7 (uuid-inspect). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.

EN: Validates a ULID and extracts its timestamp (ms and ISO 8601) and the hex of its 80-bit random part. When: an identifier has to be generated in this format or its embedded fields decoded. Not for: validating a UUID string and reporting version, variant, and the embedded timestamp for v1, v6 and v7 (uuid-inspect). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.

Input Schema

NameRequiredDescriptionDefault
ulidYesULID (string; required; up to 40 chars).

Output Schema

NameRequiredDescriptionDefault
validNo
timestampNo
random_hexNo
timestamp_msNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / properties / ulid / examples
      Added value: +[
      +  "01ARZ3NDEKTSV4RRFFQ69G5FAV"
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior5/5

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

Goes well beyond the annotations (readOnly, idempotent, closed-world) by adding no-network, no-stored-state, determinism, and concrete operational limits: 64 KB input, 1 s per call, 1 MB result. That is exactly the extra context an agent needs before calling.

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?

Labeled sections (when / not-for / side effects / determinism / limits) are strongly front-loaded and easy to scan. The full Spanish + English duplication doubles the length, which is a real cost, though it is presumably deliberate for a bilingual toolset.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a single-parameter read-only decoder with an output schema present, nothing needed to invoke it correctly is missing: scope, exclusions, side effects, determinism and resource limits are all stated.

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% with a single required 'ulid' string, so the schema already documents the parameter fully. The description adds output meaning (what gets extracted) rather than parameter meaning, so the baseline 3 applies.

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+resource (validate a ULID, extract its timestamp and random part) and even names the exact decoded outputs (ms, ISO 8601, hex of the 80-bit random part). It is clearly separable from uuid-inspect, which it names, and from the identifier-family 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?

Provides explicit 'Cuándo' / 'No para' sections and names uuid-inspect as the contrasting alternative with the exact conditions that select it. The one flaw is the 'when' clause mentioning that an identifier 'has to be generated in this format', which points at ulid-generate, not this decode tool, and no alternative is named for that case.

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