SDK Language
Python
Problem Statement
search_docs hydrates up to 5 top results with sequential blocking HTTP fetches inside the tool call (SNIPPET_HYDRATE_MAX). First-search latency is up to 5x a single page fetch, and with the 30s default timeout a couple of slow or broken pages can make one tool call take minutes.
Proposed Solution
Fetch the hydration set concurrently (ThreadPoolExecutor is enough), or prefetch pages in a background thread at startup so searches never block on network. If the content-indexing fix (#3321) is implemented via startup prefetch, this may come for free.
Use Case
First search in a session returns in roughly one page-fetch time instead of five, keeping the MCP tool call responsive.
Alternatives Solutions
No response
Additional Context
Part of the strands-mcp improvements tracking issue #3317.
SDK Language
Python
Problem Statement
search_docshydrates up to 5 top results with sequential blocking HTTP fetches inside the tool call (SNIPPET_HYDRATE_MAX). First-search latency is up to 5x a single page fetch, and with the 30s default timeout a couple of slow or broken pages can make one tool call take minutes.Proposed Solution
Fetch the hydration set concurrently (
ThreadPoolExecutoris enough), or prefetch pages in a background thread at startup so searches never block on network. If the content-indexing fix (#3321) is implemented via startup prefetch, this may come for free.Use Case
First search in a session returns in roughly one page-fetch time instead of five, keeping the MCP tool call responsive.
Alternatives Solutions
No response
Additional Context
Part of the strands-mcp improvements tracking issue #3317.