Find the route serving a URL path
find_route_by_pathResolves a requested URL path to the Kong route or routes that serve it, so you can diagnose path-specific faults like auth failures or 429s.
Instructions
Resolves a URL path to the Kong route (or routes) that serve it.
USE WHEN: the user describes a problem in terms of a path -- "auth is failing on /payments", "/orders returns 429". This is almost always the correct FIRST tool for such a question, because everything else needs a route identifier.
RETURNS: matches, each a route summary with a ref to pass to get_route,
list_plugins_for_route or diagnose_route. When nothing matches, returns matches: [] plus
suggestions listing configured paths that closely resemble the one requested -- a near-miss
there usually means a typo in the route definition.
LIMITATIONS: matches whole path values only, not Kong prefix-matching semantics, so a request to /payments/v2 handled by a /payments route will not match here. More than one match means the path is genuinely ambiguous in Kong and is worth investigating in itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The URL path a client requests, exactly as the user described it. Example: "/payments". A leading slash is added if you omit it. |