generate_uuid
Generate cryptographically secure UUID v4 identifiers for applications, with options to create multiple UUIDs at once.
Instructions
Generate a cryptographically secure UUID v4.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | Number of UUIDs to generate (1-100, default: 1) |
Implementation Reference
- src/tools/generators.ts:7-26 (registration)The tool 'generate_uuid' is defined and implemented directly within the registration call to server.tool inside registerGeneratorTools.
// UUID v4 generator server.tool( "generate_uuid", "Generate a cryptographically secure UUID v4.", { count: z .number() .int() .min(1) .max(100) .default(1) .describe("Number of UUIDs to generate (1-100, default: 1)"), }, async ({ count }) => { const uuids = Array.from({ length: count }, () => randomUUID()); return { content: [{ type: "text" as const, text: uuids.join("\n") }], }; } );