Elysia Tools Docs
EN
Language
ZHESPTRUFRDEEN
Back to site
Browse tools

Networking

BGP AS Path Loop Policy Sandbox

Simulate AS_PATH loop detection, policy filtering, attribute changes, and deterministic best-path selection.

html· HTML resultOpen tool

Quick start

Call this tool from your code in three languages.

cURL
curl -X POST 'https://api.elysiatools.com/en/api/tools/bgp-as-path-loop-policy-sandbox' \
  -H 'Content-Type: application/json' \
  -d '{"localAs":64500,"routeEntries":"[{\"prefix\":\"203.0.113.0/24\",\"asPath\":\"64501 64496\",\"localPref\":100,\"med\":50,\"origin\":\"igp\"},{\"prefix\":\"203.0.113.0/24\",\"asPath\":\"64502 64496\",\"localPref\":200,\"med\":100,\"origin\":\"igp\"},{\"prefix\":\"198.51.100.0/24\",\"asPath\":\"64500 64496\",\"localPref\":150,\"med\":10,\"origin\":\"igp\"},{\"prefix\":\"192.0.2.0/24\",\"asPath\":\"64503\",\"localPref\":120,\"med\":20,\"origin\":\"egp\"}]","policyRules":"[{\"name\":\"raise preferred prefix\",\"action\":\"permit\",\"prefix\":\"203.0.113.0/24\",\"setLocalPref\":180},{\"name\":\"deny documentation loop\",\"action\":\"deny\",\"prefix\":\"198.51.100.0/24\"}]","defaultAction":"deny","selectBestPath":true}'

© 2026 Elysia Tools. Developer documentation.

Back to siteBrowse tools

API reference

Send a POST request with your inputs as JSON. File parameters require a separate upload first.

Endpoint

HTTP
POST https://api.elysiatools.com/en/api/tools/bgp-as-path-loop-policy-sandbox

Parameters

NameTypeRequiredDescription
localAsnumberYes—
routeEntriestextareaYes—
policyRulestextareaYes—
defaultActionselectYes—
selectBestPathcheckboxNo—

Response format

HTML result

JSON
{
  "result": "<div>Processed HTML content</div>",
  "error": "Error message (optional)",
  "message": "Notification message (optional)",
  "metadata": {
    "key": "value"
  }
}

MCP integration

Add this tool to your Model Context Protocol server so AI agents can list and call it.

Server configuration

Add this block to your MCP client configuration:

mcp.json
{
  "mcpServers": {
    "elysiatools-bgp-as-path-loop-policy-sandbox": {
      "name": "bgp-as-path-loop-policy-sandbox",
      "description": "Simulate AS_PATH loop detection, policy filtering, attribute changes, and deterministic best-path selection.",
      "baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=bgp-as-path-loop-policy-sandbox",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

List available tools

After connecting to the SSE endpoint, list the exposed tools:

tools/list
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/list"
}

Call this tool

Invoke the tool by its id, passing arguments built from its parameters:

tools/call
{
  "jsonrpc": "2.0",
  "id": 2,
  "method": "tools/call",
  "params": {
    "name": "bgp-as-path-loop-policy-sandbox",
    "arguments": {
  "localAs": 64500,
  "routeEntries": "[{\"prefix\":\"203.0.113.0/24\",\"asPath\":\"64501 64496\",\"localPref\":100,\"med\":50,\"origin\":\"igp\"},{\"prefix\":\"203.0.113.0/24\",\"asPath\":\"64502 64496\",\"localPref\":200,\"med\":100,\"origin\":\"igp\"},{\"prefix\":\"198.51.100.0/24\",\"asPath\":\"64500 64496\",\"localPref\":150,\"med\":10,\"origin\":\"igp\"},{\"prefix\":\"192.0.2.0/24\",\"asPath\":\"64503\",\"localPref\":120,\"med\":20,\"origin\":\"egp\"}]",
  "policyRules": "[{\"name\":\"raise preferred prefix\",\"action\":\"permit\",\"prefix\":\"203.0.113.0/24\",\"setLocalPref\":180},{\"name\":\"deny documentation loop\",\"action\":\"deny\",\"prefix\":\"198.51.100.0/24\"}]",
  "defaultAction": "deny",
  "selectBestPath": true
}
  }
}
Chain multiple tools in one session with a comma-separated toolId list, e.g. /mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp (max 20).

Questions or issues? Contact [email protected]

Browse tools
Open tool