search_rag_context
Retrieve Google search results as clean, chunked, metadata-rich text for RAG, semantic search, and vector databases.
Instructions
Returns Google search results as clean, chunked, metadata-rich text optimized for embedding pipelines and vector databases. No LLM required. Each chunk includes: text, source URL, domain, title, date, word count, and chunk index. Perfect for RAG pipelines, semantic search, and AI grounding.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"query": "<query>"
},
"name": "search_rag_context"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Search query to retrieve and chunk. | |
| country | No | Country code. Default: "US". | |
| freshness | No | Time filter: pd=past day pw=week pm=month py=year any=none (historical). Pass pd/pw/pm/py whenever the user asks for latest/current/recent results ("today", "this week", "latest", current year); omit or "any" for timeless or historical questions. The response footer echoes the filter that was applied. | |
| include_paa | No | Include "People Also Ask" Q&A pairs as extra chunks. Default: true. | |
| num_results | No | Number of web results to fetch (1–20, default 10). | |
| output_format | No | "json" (structured, for vector DBs) or "text" (plain blocks, for direct prompt use). Default: "json". | json |
| link_resolution | No | Google result links beyond the top 3 may come back as google.com/goto redirects. "auto" (default): top 3 resolved, any leftover goto links get a search_id for resolve_links. "all": also resolve every link now (free, but adds ~30 s when goto links are present). "none": fastest, links exactly as Google returns them. | |
| max_chunk_words | No | Maximum words per chunk (default 200). Lower = more chunks, finer granularity. |