Skip to main content
Glama
icck

Toy MCP Server

by icck

generate_uuid7s

Generate UUIDv7 identifiers for applications requiring time-ordered unique IDs. Specify quantity as needed.

Instructions

Generates a specified number of UUIDv7 (default is 1).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
countNoThe number of UUIDs to generate

Implementation Reference

  • server.py:23-26 (registration)
    Registers the 'generate_uuid7s' tool using FastMCP @mcp.tool decorator.
    @mcp.tool( name="generate_uuid7s", description="Generates a specified number of UUIDv7 (default is 1).", )
  • server.py:27-30 (handler)
    The handler function for the 'generate_uuid7s' tool, which validates input via Annotated Field and delegates to the implementation.
    def generate_uuid7s( count: Annotated[int, Field(description="The number of UUIDs to generate", default=1, ge=1)], ) -> list[str]: return generate_uuid7s_impl(count)
  • Core implementation that generates the specified number of UUIDv7 using the uuid6 library.
    def generate_uuid7s_impl( count: Annotated[int, Field(description="The number of UUIDs to generate", default=1, ge=1)], ) -> list[str]: """ Generates a specified number of UUIDv7. Args: count: The number of UUIDs to generate. Defaults to 1. Must be 1 or greater. Returns: A list of UUIDv7 strings. """ return [str(uuid6.uuid7()) for _ in range(count)]

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/icck/toy'

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