list_registered_routes
Discover all registered HTTP routes in a FastAPI app, router, or live URL, including methods, operation IDs, summaries, and tags.
Instructions
List all registered HTTP routes, methods, operation IDs, summaries, and tags from a FastAPI app, APIRouter, or live URL.
Args: app_path: Import string pointing to the target (e.g. 'main:app', 'routers.items:router', 'http://localhost:8000/docs'). project_dir: Optional path to the project root directory. Defaults to current working directory.
Returns: A list of registered routes or an error dictionary.
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": {
"app_path": "<app_path>"
},
"name": "list_registered_routes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| app_path | Yes | ||
| project_dir | No |