Skip to main content
Glama
Iqram09

kong-ai-gateway-mcp

by Iqram09

List the routes attached to a service

list_routes_for_service
Read-onlyIdempotent

Lists 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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
limitNoMaximum routes to return (default 25).
serviceYesService name, id, or `service:<name>` reference.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.3/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false, so the safety profile is covered. The description adds genuine behavioral value beyond that: the zero-route-unreachable insight and the explicit limitation that route plugins are not returned. No auth or rate-limit context, so not a 5.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded opening sentence followed by clearly labeled USE WHEN / RETURNS / LIMITATIONS sections. Every line carries information, and the RETURNS section is warranted because no output schema exists.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no output schema, the description supplies the return shape (ref, paths, methods, routeCount) and an important limitation. Combined with full schema coverage of both parameters, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100% with only two parameters, and the description adds no additional meaning about the 'service' reference format or the 'limit' cap. Baseline 3 applies when the schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Lists every route attached to one Kong service') with clear scope, distinguishing it from single-route siblings like get_route and find_route_by_path. An agent can tell what it retrieves without opening the schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The 'USE WHEN' block gives explicit triggering conditions, including a non-obvious one (a service with zero routes is unreachable). It does not name the alternative siblings (get_route, find_route_by_path, diagnose_route) to route between them, so it falls short of a 5.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.