generate_uuid
Generate standards-compliant UUIDs (v1, v4, v7) for database keys, idempotency tokens, session identifiers, or correlation IDs.
Instructions
Generate a universally unique identifier (UUID).
Produces standards-compliant UUIDs suitable for use as database primary
keys, idempotency tokens, session identifiers, or correlation IDs.
Args:
version: UUID version to generate:
1: Time-based UUID (includes MAC address and timestamp).
Ordered by creation time, useful for time-sortable IDs.
4 (default): Random UUID (122 bits of entropy).
Most widely used; suitable for general-purpose IDs.
7: Unix-time-based UUID (RFC 9562). Monotonically increasing,
better database index locality than v4, newer standard.
Returns:
uuid: The generated UUID string (standard hyphenated format).
version: UUID version that was generated.
format: Always 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'.
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": "generate_uuid"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| version | No |