-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Open
Labels
questionFurther information is requestedFurther information is requested
Description
Question
Example:
@mcp.custom_route("/debug/tools", methods=["GET"])
async def list_tools_debug(request: Request):
tool_manager = ToolManager() # <-- Wrap FastMCP tool instance
tools = tool_manager.list_tools()
print(tools) # <-- Official public API
result = ListToolsResult(tools=tools)
return JSONResponse(
JSONRPCResponse(
jsonrpc="2.0",
id="tools/list",
result=result.model_dump()
).model_dump()
)
this returns
{
"jsonrpc": "2.0",
"id": "tools/list",
"result": {
"meta": null,
"nextCursor": null,
"tools": []
}
}
how do i list all the tools, its parameters and its descriptions if all of my tools have @mcp.tool()
Additional Context
No response
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested