API & MCP
Everything a person can do on Signalhouse Route Lookup & Packet Path Simulator (longest prefix match), a program or AI agent can do with the same inputs and get the identical result.
HTTP API
POST https://signalhouseroutelookup.usefulweb.site/api/v1/calculate– run Signalhouse Route Lookup & Packet Path Simulator (longest prefix match)GET https://signalhouseroutelookup.usefulweb.site/api/v1/tool– inputs, output schema, examples- OpenAPI 3.1: /openapi.json · /openapi.yaml
- Errors:
application/problem+json;422includes per-fielderrors.
Signalhouse Route Lookup & Packet Path Simulator (longest prefix match)
Paste a routing table (connected, static, null, OSPF, BGP … routes with next hops, administrative distances and metrics) and destination addresses: the simulator builds the forwarding table like a router — best distance, then metric, equal-cost paths, recursive next hops, interfaces that are down — and explains for every destination which route wins by longest prefix match and why the others lose. With a Signalhouse Network lab topology it walks a packet hop by hop and finds blackholes, forwarding loops, MTU drops and asymmetric return paths.
| Field | Type | Default | Description |
|---|---|---|---|
routes | table | [{"prefix":"0.0.0.0/0","nextHop":"203.0.113.1","protocol":"static","name":"Defau | Routing table. One route per row. Protocol: connected, local, static, blackhole (null route), ospf, rip, eigrp, isis, ebgp or ibgp. Leave distance empty for the default (connected 0, static 1, eBGP 20, OSPF 110, RIP 120, iBGP 200). |
destinations | textarea | "10.1.2.3\n10.200.0.1\n198.51.100.7" | Destinations (one per line) |
interfacesDown | text | — | Interfaces that are down (optional). Comma-separated, e.g. eth1. Their connected routes disappear and routes through them stop working. |
topology | textarea | — | Network lab topology JSON (optional). Instead of a table: a topology exported from the Signalhouse Network lab ({ nodes, links }). Then name the start device and the destination below. |
from | text | — | Packet from (device id or name) |
to | text | — | Packet to (address or device) |
size | integer | 1500 | Packet size |
df | boolean | true | “Don’t Fragment” set (IPv4) |
Example request
Longest prefix match, ECMP, a floating backup and recursive next hops
curl -X POST https://signalhouseroutelookup.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"routes":[{"prefix":"0.0.0.0/0","nextHop":"203.0.113.1","protocol":"static","name":"Default route"},{"prefix":"203.0.113.0/24","interface":"eth0","protocol":"connected"},{"prefix":"192.0.2.0/24","interface":"eth1","protocol":"connected"},{"prefix":"10.0.0.0/8","nextHop":"192.0.2.1","protocol":"ospf","metric":20},{"prefix":"10.0.0.0/8","nextHop":"192.0.2.5","protocol":"ospf","metric":20},{"prefix":"10.1.0.0/16","nextHop":"192.0.2.9","protocol":"static"},{"prefix":"10.1.0.0/16","nextHop":"192.0.2.1","protocol":"ospf","metric":5},{"prefix":"10.1.2.0/24","nextHop":"10.1.255.1","protocol":"static","name":"Recursive next hop"}],"destinations":"10.1.2.3\n10.200.0.1\n198.51.100.7"}'
Every result contains
inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.
MCP (Model Context Protocol)
- Streamable HTTP endpoint:
https://signalhouseroutelookup.usefulweb.site/mcp– protocol revisions 2026-07-28 (stateless) and 2025-11-25 / 2025-06-18 / 2025-03-26 (initialize handshake). - Tools:
signalhouse_route_lookup - Local stdio connector:
node src/mcp-stdio.ts --tool=signalhouse-route-lookup
{
"mcpServers": {
"signalhouse-route-lookup": { "type": "http", "url": "https://signalhouseroutelookup.usefulweb.site/mcp" }
}
}