Utilities
Преобразует между различными форматами координат широты и долготы
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/coordinate-format-converter' \
-H 'Content-Type: application/json' \
-d '{"coordinates":"Enter coordinates in the selected input format...","inputFormat":"decimal","outputFormat":"decimal","precision":6,"separator":", ","includeLabels":false,"cardinalDirections":true}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/coordinate-format-converter| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| coordinates | text | Да | — |
| inputFormat | select | Да | — |
| outputFormat | select | Да | — |
| precision | number | Нет | — |
| separator | select | Да | — |
| includeLabels |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-coordinate-format-converter": {
"name": "coordinate-format-converter",
"description": "Преобразует между различными форматами координат широты и долготы",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=coordinate-format-converter",
"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": "coordinate-format-converter",
"arguments": {
"coordinates": "Enter coordinates in the selected input format...",
"inputFormat": "decimal",
"outputFormat": "decimal",
"precision": 6,
"separator": ", ",
"includeLabels": false,
"cardinalDirections": true
}
}
}Вопросы или проблемы? Свяжитесь с [email protected]
| checkbox |
| Нет |
| — |
| cardinalDirections | checkbox | Нет | — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}