Network
Проверяет шаблоны regex BGP community (RFC 8294), сопоставляет AS-path и генерирует конфиг Cisco/Juniper/FRR.
Вызовите этот инструмент из своего кода на трёх языках.
curl -X POST 'https://api.elysiatools.com/ru/api/tools/bgp-community-string-regex-tester-and-looking-glass' \
-H 'Content-Type: application/json' \
-d '{"communityRegex":"^65000:","communitySet":"65000:100\n65000:101\n65000:200\n65001:500\nno-export","asPathRegex":"_65000_ (matches paths transiting AS65000)","asPath":"65001 65000 65002\n65000 65003 65004","vendorOutput":"cisco","caseSensitive":false}'Отправьте POST-запрос с входными данными в JSON. Параметры типа «файл» требуют предварительной загрузки.
POST https://api.elysiatools.com/ru/api/tools/bgp-community-string-regex-tester-and-looking-glass| Имя | Тип | Обязательный | Описание |
|---|---|---|---|
| communityRegex | text | Нет | — |
| communitySet | textarea | Нет | — |
| asPathRegex | text | Нет | — |
| asPath | textarea | Нет | — |
| vendorOutput | select | Да | — |
Добавьте этот инструмент на свой сервер Model Context Protocol, чтобы ИИ-агенты могли перечислять и вызывать его.
Добавьте этот блок в конфигурацию вашего MCP-клиента:
{
"mcpServers": {
"elysiatools-bgp-community-string-regex-tester-and-looking-glass": {
"name": "bgp-community-string-regex-tester-and-looking-glass",
"description": "Проверяет шаблоны regex BGP community (RFC 8294), сопоставляет AS-path и генерирует конфиг Cisco/Juniper/FRR.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bgp-community-string-regex-tester-and-looking-glass",
"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": "bgp-community-string-regex-tester-and-looking-glass",
"arguments": {
"communityRegex": "^65000:",
"communitySet": "65000:100\n65000:101\n65000:200\n65001:500\nno-export",
"asPathRegex": "_65000_ (matches paths transiting AS65000)",
"asPath": "65001 65000 65002\n65000 65003 65004",
"vendorOutput": "cisco",
"caseSensitive": false
}
}
}| caseSensitive |
| checkbox |
| Нет |
| — |
Текстовый результат
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}Вопросы или проблемы? Свяжитесь с [email protected]