List the routes attached to a service
list_routes_for_serviceLists all routes attached to a Kong service to show how traffic reaches it, or reveal a service with zero routes that is unreachable through the gateway.
Instructions
Lists every route attached to one Kong service.
USE WHEN: you need to know how traffic reaches a service, or to check whether a service has any route at all. A service with zero routes is unreachable through the gateway, which is a real and easily missed misconfiguration.
RETURNS: routes, each with ref, paths and methods, plus routeCount.
LIMITATIONS: does not return plugins for those routes.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"service": "<service>"
},
"name": "list_routes_for_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum routes to return (default 25). | |
| service | Yes | Service name, id, or `service:<name>` reference. |