Generator
Генерирует случайные строки с настраиваемыми наборами символов, длиной и шаблонами
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/random-string-generator' \
-H 'Content-Type: application/json' \
-d '{"length":12,"quantity":1,"separator":"Separator between strings","includeUppercase":true,"includeLowercase":true,"includeNumbers":true,"includeSymbols":false,"customCharset":"Enter custom characters","excludeSimilar":false,"excludeAmbiguous":false}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/random-string-generator| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| length | number | Да | — |
| quantity | number | Нет | — |
| separator | text | Нет | — |
| includeUppercase | checkbox | Нет | — |
| includeLowercase | checkbox | Нет | — |
| includeNumbers |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-random-string-generator": {
"name": "random-string-generator",
"description": "Генерирует случайные строки с настраиваемыми наборами символов, длиной и шаблонами",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=random-string-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}После подключения к SSE-endpoint выведите список доступных инструментов:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Вызовите инструмент по его id; аргументы формируются из его параметров:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "random-string-generator",
"arguments": {
"length": 12,
"quantity": 1,
"separator": "Separator between strings",
"includeUppercase": true,
"includeLowercase": true,
"includeNumbers": true,
"includeSymbols": false,
"customCharset": "Enter custom characters",
"excludeSimilar": false,
"excludeAmbiguous": false
}
}
}| checkbox |
| Нет |
| — |
| includeSymbols | checkbox | Нет | — |
| customCharset | text | Нет | — |
| excludeSimilar | checkbox | Нет | — |
| excludeAmbiguous | checkbox | Нет | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]