Skip to main content
Glama

ids generate

ids_generate
Read-only

Generate unique ids (UUID v4, time-ordered UUID v7, ULID, nanoid, hex, short ids, prefixed API keys) up to 1,000 at once from a cryptographic RNG, or decode the timestamp inside a ULID, UUID v7 or snowflake id. Costs $0.002 USDC per call (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": "ids_generate"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNo
countNo
decodeNo
lengthNo
prefixNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=true, so safety is covered. The description adds genuine behavioral context beyond them: the cryptographic RNG source, a batch ceiling of 1,000 ids, and a concrete cost of $0.002 USDC per call via x402 — the pricing detail is especially valuable for an agent deciding whether to call.

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-loads the primary generate action, then the secondary decode mode, then the cost. Dense but appropriate for a multi-mode tool; no filler sentences. The heavy parenthetical enumeration is justified by the need to convey format values absent from the schema.

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

Completeness3/5

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

Given 5 fully undocumented parameters and no output schema, the description should do more. It covers formats, batch limit, RNG, and pricing, but never states the return shape (id array vs single string) or the decode return format (human-readable timestamp?), which an agent needs. Adequate but with clear gaps.

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 0%, so the description must carry full parameter burden. It partially does: 'type' is well served by the format list, 'count' by the 1,000 limit, 'decode' by the decode clause, and 'prefix' by 'prefixed API keys'. However 'length' is never mapped, and no parameter is named explicitly, leaving one of five params undocumented.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific verb (generate/decode) and resource (unique ids), and enumerates the exact output formats (UUID v4, UUID v7, ULID, nanoid, hex, short ids, prefixed API keys). It does not reference sibling tools like random or random_password, so the agent must infer differentiation itself, but the purpose is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'or decode the timestamp inside...' clause hints at a second mode, implying two usage contexts, but there is no explicit when-to-use guidance, no conditions, and no routing away from near-neighbors such as random_password or timestamp. Usage is only implied.

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