Skip to content

Commit 3c36029

Browse files
vladm-serpapiVlad M
andauthored
Fix mcp tool docstring (#19)
* Fix MCP tool docstring * Add supported google engines --------- Co-authored-by: Vlad M <vlad@serpapi.com>
1 parent f1abb94 commit 3c36029

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/server.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,23 @@ async def search(params: dict[str, Any] = {}, mode: str = "complete") -> str:
8383
Stock: {"params": {"q": "AAPL stock", "engine": "google"}, "mode": "complete"}
8484
General: {"params": {"q": "coffee shops", "engine": "google_light", "location": "Austin, TX"}, "mode": "complete"}
8585
Compact: {"params": {"q": "news"}, "mode": "compact"}
86+
87+
Supported engines:
88+
- google
89+
- google_light
90+
- google_flights
91+
- google_hotels
92+
- google_images
93+
- google_news
94+
- google_local
95+
- google_shopping
96+
- google_jobs
97+
- bing
98+
- yahoo
99+
- duckduckgo
100+
- youtube_search
101+
- baidu
102+
- ebay
86103
"""
87104

88105
# Validate mode parameter

0 commit comments

Comments
 (0)