We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b0f904 commit 1a83c14Copy full SHA for 1a83c14
1 file changed
README.md
@@ -246,12 +246,15 @@ async def fetch_weather(city: str) -> str:
246
response = await client.get(f"https://api.weather.com/{city}")
247
return response.text
248
249
+
250
# Get a reference to the tool
251
tool = mcp._tool_manager.get_tool("fetch_weather")
252
253
254
# Disable the tool temporarily
255
await tool.disable(mcp.get_context())
256
257
258
# Later, re-enable the tool
259
await tool.enable(mcp.get_context())
260
```
0 commit comments