Skip to content

Commit 85958ad

Browse files
Update README.md
1 parent 6972a7a commit 85958ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ def get_weather_prompt(city: str) -> GetPromptResult:
9090
)
9191

9292
@mcp.tool()
93-
def get_weather(city: str) -> CallToolResult:
94-
return CallToolResult(content=[TextContent(text="sunny")], is_error=False)
93+
def get_weather(city: str) -> str:
94+
return "sunny"
9595
```
9696

9797
### Flask with Redis Example

0 commit comments

Comments
 (0)