Date & Time
Добавляет или вычитает время из даты
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/time-adder-subtractor' \
-H 'Content-Type: application/json' \
-d '{"startDate":"2026-06-24","operation":"add","years":"0","months":"0","weeks":"0","days":"0","hours":"0","minutes":"0","seconds":"0"}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/time-adder-subtractor| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| startDate | text | Да | — |
| operation | select | Да | — |
| years | text | Нет | — |
| months | text | Нет | — |
| weeks | text | Нет | — |
| days |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-time-adder-subtractor": {
"name": "time-adder-subtractor",
"description": "Добавляет или вычитает время из даты",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=time-adder-subtractor",
"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": "time-adder-subtractor",
"arguments": {
"startDate": "2026-06-24",
"operation": "add",
"years": "0",
"months": "0",
"weeks": "0",
"days": "0",
"hours": "0",
"minutes": "0",
"seconds": "0"
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| text |
| Нет |
| — |
| hours | text | Нет | — |
| minutes | text | Нет | — |
| seconds | text | Нет | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}