Skip to main content
Glama

util_id_collision

Read-only

ID collision probability calculator — Birthday-bound collision odds for random IDs: UUID v4/v7, ULID, KSUID, nanoid, cuid2, or any alphabet and length. Returns entropy bits, collision probability and expected collisions for ids= generated, ids needed for 1e-9/1e-6/1%/50% risk, time to reach them at rate=, the shortest safe length per alphabet, and a SAFE/OK/RISKY/UNSAFE verdict. Params: format (uuid4|uuid7|ulid|ksuid|nanoid|cuid2|hex|base32|base36|base58|base62|base64|numeric|alphanumeric|lower) or alphabet= (size or the characters) with length=, or bits=; ids (e.g. 1e9, 10M); rate (e.g. 1000/s, 5M/day; per-ms for uuid7/ulid); target probability (default 1e-9). Offline. Price: $0.002 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "format": "<format>",
      "ids": "<ids>"
    },
    "name": "util_id_collision"
  }
}

Input Schema

NameRequiredDescriptionDefault
idsYes1000000000
formatYesuuid4

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 declare readOnly/no-destructive; the description adds non-obvious traits: fully offline computation and a concrete paywall price ($0.002 USDC on Base via x402), which matters for agent planning. It also discloses the verdict scale (SAFE/OK/RISKY/UNSAFE) that will come back. It does not discuss input-validation failures or error behavior.

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 purpose and output list, then parameters, then cost — a sensible order with no filler sentences. It is a single dense wall of text, though, and the parameter-mention syntax is compact enough to be skimmed past.

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 usefully enumerates return values (entropy bits, probability, expected collisions, thresholds, shortest safe length, verdict) and states cost and offline status. The gap is the mismatch between described parameters and the two-parameter schema, plus no guidance versus the adjacent util_id_check tool.

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 strings are only placeholder examples ('uuid4', '1000000000'), so the description carries real semantics: the format enum values, alphabet-vs-length-vs-bits alternatives, exponent/suffix notation for ids, rate units, and the target probability default of 1e-9. Slight deduction because it documents five parameters (alphabet, length, bits, rate, target) that do not appear in the supplied input schema, which could mislead at call time.

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 the specific computation (birthday-bound collision probability) and the exact resource domain (random ID formats: UUID v4/v7, ULID, KSUID, nanoid, cuid2, arbitrary alphabet/length). It also enumerates the concrete outputs, so an agent can tell it apart from a plain ID-validating sibling without opening a schema.

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?

Context is clear: use it to size ID schemes and quantify risk, with inline notation guidance (ids like 1e9/10M, rate like 1000/s or 5M/day, per-ms for uuid7/ulid). It never names an alternative tool or an explicit when-not-to-use case, 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