Skip to main content
Glama

generateUuid

Generate timestamp-based UUID v7 identifiers for chronological sorting and guaranteed uniqueness without requiring input parameters.

Instructions

Generate a UUID v7 that's timestamp-based and guaranteed to be unique

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Executes the generateUuid tool by generating a UUID v7 using the uuidv7 function and returning it as text content in the response.
    if (request.params.name === "generateUuid") { // UUID v7 is timestamp-based with additional random data for uniqueness const uuid = uuidv7(); return { content: [ { type: "text", text: uuid } ] }; }
  • src/index.ts:18-34 (registration)
    Registers the tools/list request handler, which advertises the generateUuid tool including its name, description, and input schema.
    server.setRequestHandler( ListToolsRequestSchema, async () => { return { tools: [ { name: "generateUuid", description: "Generate a UUID v7 that's timestamp-based and guaranteed to be unique", inputSchema: { type: "object", properties: {} } } ] }; } );
  • Defines the input schema for the generateUuid tool as an empty object (no input parameters required).
    inputSchema: { type: "object", properties: {} }
  • Imports the UUID v7 generator function (uuidv7) used in the tool handler.
    import { v7 as uuidv7 } from 'uuid';

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/tanker327/uuid-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server