Skip to content

Commit f1abb94

Browse files
vladm-serpapiVlad M
andauthored
Fix MCP tool docstring (#18)
Co-authored-by: Vlad M <vlad@serpapi.com>
1 parent 25069b4 commit f1abb94

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/server.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ async def search(params: dict[str, Any] = {}, mode: str = "complete") -> str:
7979
A JSON string containing search results or an error message.
8080
8181
Examples:
82-
Weather: {"q": "weather in London", "engine": "google"}
83-
Stock: {"q": "AAPL stock", "engine": "google"}
84-
General: {"q": "coffee shops", "engine": "google_light", "location": "Austin, TX"}
85-
Compact: {"q": "news", "mode": "compact"}
82+
Weather: {"params": {"q": "weather in London", "engine": "google"}, "mode": "complete"}
83+
Stock: {"params": {"q": "AAPL stock", "engine": "google"}, "mode": "complete"}
84+
General: {"params": {"q": "coffee shops", "engine": "google_light", "location": "Austin, TX"}, "mode": "complete"}
85+
Compact: {"params": {"q": "news"}, "mode": "compact"}
8686
"""
8787

8888
# Validate mode parameter

0 commit comments

Comments
 (0)