topology_routes
Identify candidate route handlers by matching entry-point-shaped names/signatures across frameworks. Confidence scores guide verification; use it to find potential handlers, not confirmed routes.
Instructions
Pattern-matches entry-point-shaped symbol NAMES and signatures: Go handler funcs (http.HandleFunc, r.GET/POST, mux.Handle), Cobra cmd.Run/RunE, Python decorators (@app.route, @router.get, FastAPI path decorators), and Swift/Vapor idioms (RouteCollection.boot, configure(_:Application), ParsableCommand.run). It does NOT parse route registrations or call sites, so it cannot recover a path-to-handler binding (e.g. "/api/x" -> handlerFn) — it only finds functions whose name or signature looks like a known entry-point idiom. Results are candidates, not confirmed routes: each carries a confidence annotation reflecting the pattern's typical accuracy, not a resolved binding. Returns a clear message when no candidates match or topology is disabled.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of route entries to return. Default 20. | |
| framework | No | Optional framework hint: 'gin', 'chi', 'mux', 'echo', 'cobra', 'fastapi', 'flask', 'vapor', 'argument-parser'. Omit to scan all known patterns. | |
| path_prefix | No | Optional substring filter applied to the candidate symbol's name/signature (e.g. 'api') — NOT a URL path filter; it is not matched against any route path, since none is parsed. |