Generator
Genera identificadores modernos: ULID, NanoID, Snowflake y CUID2. Compara formatos, decodifica marcas de tiempo ULID y elige el ID adecuado.
Llama a esta herramienta desde tu código en tres lenguajes.
curl -X POST 'https://api.elysiatools.com/es/api/tools/uid-generator' \
-H 'Content-Type: application/json' \
-d '{"type":"ulid","count":5,"length":0,"workerId":1,"datacenterId":1,"epoch":0,"compareUlid":"Paste a ULID to decode its timestamp instead of generating"}'Envía una petición POST con tus entradas en JSON. Los parámetros de tipo archivo requieren una subida previa.
POST https://api.elysiatools.com/es/api/tools/uid-generator| Nombre | Tipo | Obligatorio | Descripción |
|---|---|---|---|
| type | select | Sí | — |
| count | number | No | — |
| length | number | No | ID length for NanoID and CUID2. Ignored for ULID/Snowflake. |
| workerId | number | No | Machine/worker id within the datacenter (Snowflake only). |
| datacenterId | number | No | Datacenter id for distributed deployments (Snowflake only). |
Añade esta herramienta a tu servidor Model Context Protocol para que los agentes de IA puedan listarla y llamarla.
Añade este bloque a la configuración de tu cliente MCP:
{
"mcpServers": {
"elysiatools-uid-generator": {
"name": "uid-generator",
"description": "Genera identificadores modernos: ULID, NanoID, Snowflake y CUID2. Compara formatos, decodifica marcas de tiempo ULID y elige el ID adecuado.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=uid-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Tras conectar al endpoint SSE, lista las herramientas expuestas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoca la herramienta por su id; los argumentos se construyen a partir de sus parámetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "uid-generator",
"arguments": {
"type": "ulid",
"count": 5,
"length": 0,
"workerId": 1,
"datacenterId": 1,
"epoch": 0,
"compareUlid": "Paste a ULID to decode its timestamp instead of generating"
}
}
}¿Dudas o problemas? Contacta con [email protected]
| epoch | number | No | Base epoch in ms. Defaults to Twitter epoch (1288834974657). Snowflake only. |
| compareUlid | text | No | When filled, the tool decodes this ULID and ignores other options. |
Resultado de texto
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}