generateUUID
Create a random UUID (Universally Unique Identifier) for secure and unique identification purposes using crypto.randomUUID().
Instructions
Generate a random UUID using crypto.randomUUID()
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/generator.ts:19-26 (handler)The handler function that generates a random UUID using crypto.randomUUID() and returns it as MCP content.handler: async () => { return { content: [{ type: 'text', text: randomUUID() }] }; }
- src/tools/generator.ts:15-18 (schema)Input schema for the generateUUID tool, requiring no parameters.inputSchema: { type: 'object', properties: {} },
- src/index.ts:28-35 (registration)allTools object registers generatorTools (containing generateUUID) by spreading it into the combined tool registry used for MCP tool listing and execution.const allTools: ToolKit = { ...systemTools, ...networkTools, ...geoTools, ...generatorTools, ...dateTimeTools, ...securityTools };