gograph_routes
List all HTTP routes in a Go codebase with methods, URL patterns, and handler names. Retrieve the complete API surface to prepare for route-specific analysis.
Instructions
List all HTTP routes registered in the codebase with their HTTP methods, URL patterns, and handler function names. The MCP server checks freshness before this call and refreshes in the current requested analysis mode; precise and precise_fallback graphs retry CHA/SSA after source changes. Read-only; no side effects. LIMITATION: Nested route-group prefixes (e.g. Gin/Echo/Chi Group()) are lost at the static AST level. Routes are recorded under their final path suffix (e.g., '/users' instead of '/api/v1/users'). WHEN TO USE: To get the complete API surface of a service before deep-diving into a specific route with gograph_endpoint. NOT TO USE: For full call chain analysis of a route (use gograph_endpoint instead). RETURNS: Structured table of method/path/handler triples; empty when no HTTP routes are registered in the graph.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||