Generator
Générateur moderne d'identifiants uniques
Génère des identifiants modernes : ULID, NanoID, Snowflake et CUID2. Comparez les formats, décodez l'horodatage ULID.
text· Résultat texteOuvrir l'outil
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
cURL
curl -X POST 'https://api.elysiatools.com/fr/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"}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
HTTP
POST https://api.elysiatools.com/fr/api/tools/uid-generatorParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| type | select | Oui | — |
| count | number | Non | — |
| length | number | Non | ID length for NanoID and CUID2. Ignored for ULID/Snowflake. |
| workerId | number | Non | Machine/worker id within the datacenter (Snowflake only). |
| datacenterId | number | Non | Datacenter id for distributed deployments (Snowflake only). |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
mcp.json
{
"mcpServers": {
"elysiatools-uid-generator": {
"name": "uid-generator",
"description": "Génère des identifiants modernes : ULID, NanoID, Snowflake et CUID2. Comparez les formats, décodez l'horodatage ULID.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=uid-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
tools/list
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
tools/call
{
"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"
}
}
}Chaînez plusieurs outils dans une session avec une liste toolId séparée par des virgules, ex. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (20 max).
Des questions ou un problème ? Contactez [email protected]