[{'Text': 'Skip to content                                                                         \n\n## Navigation Menu\n\n      Toggle navigation                                                                                                                Sign in                                         Appearance settings                                                                                                                         Search or jump to...                                                      \n\n# Search code, repositories, users, issues, pull requests...\n\n                                                           Search                                                                                                                                             Clear                                                                        \n\n                                                                                  Search syntax tips                                                              \n\n#         Provide feedback       \n\n                                                                   \n\nWe read every piece of feedback, and take your input very seriously.                              Include my email address so I can be contacted                          Cancel              Submit feedback                          \n\n#         Saved searches       \n\n        \n\n## Use saved searches to filter your results more quickly\n\n                                                                                                          Name                                                                                    Query                                \n\n            To see all available qualifiers, see our documentation.                                                                       Cancel              Create saved search                                                Sign in                                                         Sign up                                               Appearance settings                      Resetting focus                                                 You signed in with another tab or window. Reload to refresh your session.        You signed out in another tab or window. Reload to refresh your session.        You switched accounts on another tab or window. Reload to refresh your session.          Dismiss alert                                                                                                                                          modelcontextprotocol        /    **      python-sdk    **    Public                              \n               -                     Notifications    You must be signed in to change notification settings  \n  -                   Fork     3.4k  \n  -                                   Star          23k  \n\n                                                                                   \n\n# How do i list all the tools in my mcp server in a custom route\xa0#1157\n\nNew issueCopy linkNew issueCopy linkClosedClosedHow do i list all the tools in my mcp server in a custom route#1157Copy linkLabelsquestionFurther information is requestedFurther information is requested\n\n## Description\n\nKeshavarvindh09opened on Jul 16, 2025Issue body actions\n\n### Question\n\nExample:\n\n```\n@mcp.custom_route("/debug/tools", methods=["GET"])\nasync def list_tools_debug(request: Request):\n    tool_manager = ToolManager()  # <-- Wrap FastMCP tool instance\n    tools = tool_manager.list_tools() \n    print(tools)      # <-- Official public API\n    result = ListToolsResult(tools=tools)\n    return JSONResponse(\n        JSONRPCResponse(\n            jsonrpc="2.0",\n            id="tools/list",\n            result=result.model_dump()\n        ).model_dump()\n    )\n\n```\n\nthis returns\n\n```\n{\n    "jsonrpc": "2.0",\n    "id": "tools/list",\n    "result": {\n        "meta": null,\n        "nextCursor": null,\n        "tools": []\n    }\n}\n\n```\n\nhow do i list all the tools, its parameters and its descriptions if all of my tools have @mcp.tool()\n\n### Additional Context\n\n_No response_Reactions are currently unavailable\n\n## Metadata\n\n## Metadata\n\n### Assignees\n\nNo one assigned\n\n### Labels\n\nquestionFurther information is requestedFurther information is requested\n\n### Type\n\nNo type\n\n### Projects\n\nNo projects\n\n### Milestone\n\nNo milestone\n\n### Relationships\n\nNone yet\n\n### Development\n\nNo branches or pull requests\n\n## Issue actions\n\n                      \n\n## Footer\n\n                                           © 2026 GitHub,\xa0Inc.                                                     You can’t perform that action at this time.'}]