Handle book discovery requests
Guidance for direct book answers, recommendations, and delegated research.
Audience & Outcome: This guide is for AI engineers and catalog integrators working with Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs inside Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs. You will learn how Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs balances direct catalog lookups, concurrent sub-agent research, Plan Mode approvals, and strict catalog grounding.
BookWorm handles catalog search, title lookups, and tailored recommendations through Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs. Rather than running a heavy multi-step research pipeline on every turn, Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs answers simple lookups directly via read-only MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs tools, delegates complex multi-criteria requests to two concurrent specialist researchers, and enforces explicit catalog grounding so missing facts are never invented.
Context and motivation
Customer book discovery spans a wide complexity spectrum—from single-step factual questions (“Do you have books by Frank Herbert?”) to open-ended, multi-constraint recommendations (“Find two short science-fiction novels under $20 similar to Dune and verify which authors are in stock”).
Running multi-agent research on simple queries adds unnecessary latency and token cost, while answering complex queries with a single shallow lookup produces incomplete or hallucinated recommendations. BookWorm resolves this tension by combining direct MCP tool calls, optional Plan Mode approval, concurrent sub-agent delegation, and strict catalog-only grounding.
How it works
The visual below shows how Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs retrieves catalog facts through MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only Catalog lookup tools and reusable AI prompts. PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs, fans out complex queries to parallel researchers, and coordinates handoffs or rich UI rendering.
Loading graph...
Five core discovery mechanisms
- Read-only MCP catalog grounding: Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs and both researchers call only four read-only tools exposed by MCP ServerServicev1.0.0MCP ServerInternal stateless Streamable HTTP MCP service that exposes read-only
Catalog lookup tools and reusable AI prompts.
PublishesListBooksGrpc, GetBookDetailsGrpc +2Ownerai-capabilities-teamDiagramRepositoryOpen docs (
search_catalog,get_book,list_categories,list_authors), backed by Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs over gRPC. When a price, rating, or availability fact is absent from tool output, Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs states that the detail is unavailable instead of guessing. - Direct handling vs. concurrent researcher delegation: For single-step lookups or preference clarifications, Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs calls MCP tools directly. For complex requests combining factual verification and preference curation, it invokes Book Catalog ResearcherAgentv1.0.0Book Catalog ResearcherInternal delegated subagent that performs low-temperature factual catalog lookups for the Book Agent and never communica...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs (low temperature
0.2for factual precision) and Book Recommendation ResearcherAgentv1.0.0Book Recommendation ResearcherInternal delegated subagent that curates catalog-verified book shortlists matching customer preferences for the Book Age...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs (temperature0.4for curation) concurrently, then synthesizes and deduplicates their findings. - Plan Mode and Execute Mode harness: For multi-step research, Plan Mode decomposes the work into tracked todos, optionally persists the plan, and waits for customer approval before switching to Execute Mode. Single-step lookups bypass planning and approval.
- User-scoped memory and compaction: Episodic and semantic memory recalls user-scoped reading preferences (keyed by Microsoft Entra ID user claims) without inferring demographics or stereotypes. Context compaction preserves multi-step research findings across long conversations.
- Client-side UI tools and specialist handoffs: When Storefront supplies client-side UI tools, Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs invokes rich cards or basket actions (enforcing browser-side user confirmation); otherwise it falls back to Markdown. For review analysis, it resolves a single book ID before handing off to Rating AgentAgentv1.0.0Rating AgentRead-only review intelligence specialist that summarizes customer feedback over A2A gRPC and map-reduce workflows while ...PublishesAnalyzeText, AnonymizeTextOwnercatalog-experience-teamDiagramRepositoryOpen docs; for store policies, it hands off to QA AgentAgentv1.0.0QA AgentRead-only customer support and store-policy specialist that answers operational, shipping, returns, account, and billing...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs.
All Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs and researcher tool calls pass through Presidio APIServicev1.0.0Presidio APIExternal HTTP sidecar API for detecting PII in text and anonymizing detected entities in the Chat and Rating AI agent pi...SubscribesAnalyzeText, AnonymizeText +3APIsOpenAPIOwnerplatform-engineering-teamDiagramOpen docs PII middleware, guardrail middleware, decision-based tool selection, and default-deny governance policies.
| Decision | Benefits | Costs and limits |
|---|---|---|
| Conditional delegation to two specialized researchers | Keeps simple lookups fast while pairing factual verification with recommendation curation on complex queries | Adds synthesis and deduplication logic when one branch returns partial results |
| Plan Mode approval gate for multi-step research | Prevents wasted tool calls when criteria are ambiguous and keeps steps transparent | Adds an extra conversational turn if the customer has not approved the plan |
| Strict catalog-only grounding | Eliminates fabricated titles, authors, prices, or stock states | Produces narrower answers when catalog metadata or vector matches are incomplete |
| Client-side Storefront basket tools | Lets customers inspect or add books without giving Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs direct write authority over Basket APIServicev1.0.0Basket APIInternal HTTP and gRPC service for managing customer-scoped shopping baskets, Catalog price enrichment, and post-checkou...PublishesGetBookGrpc, GetBooksGrpc +2SubscribesCreateBasket, UpdateBasket +4APIsOpenAPI, AsyncAPIOwnercommerce-fulfillment-teamDiagramRepositoryOpen docs | Rich cards and basket actions depend on Storefront tool registration |
Rejected alternatives:
- Running parallel researchers on every query: Doubles latency and token usage on simple title or author lookups without improving accuracy.
- Exposing Catalog APIServicev1.0.0Catalog APIInternal HTTP and gRPC service for Catalog product management, hybrid discovery, and authoritative book metadata. PublishesBookUpdatedRatingFailedIntegrationEventSubscribesCreatePublisher, UpdatePublisher +24APIsOpenAPI, AsyncAPIOwnercatalog-experience-teamDiagramRepositoryOpen docs gRPC directly inside Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs: Bypassed central MCP governance, inspector debugging, and reuse across Chat SystemSystemv1.0.0Chat SystemInternal system that hosts BookWorm's conversational workflow and specialist AI agents for customer support and catalog-...Ownerai-capabilities-teamDiagramRepositoryOpen docs and Rating SystemSystemv1.0.0Rating SystemInternal Reviews system that owns customer feedback, publishes rating changes to Catalog, and provides read-time feedbac...Ownercatalog-experience-teamDiagramRepositoryOpen docs.
Related documentation
- Chat Agent OrchestrationFlowv1.0.0Chat Agent OrchestrationA customer submits a conversational request through Storefront; Chat API screens input, routes via a non-LLM classifier ...Ownerai-capabilities-teamView flowOpen docs — End-to-end orchestration flow for Chat APIServicev1.0.0Chat APIInternal HTTP host for BookWorm's interactive multi-agent chat workflow, agent discovery, and session persistence. Ownerai-capabilities-teamDiagramRepositoryOpen docs.
- ADR-005: Grant tools according to each agent's responsibilityDecision Recordv1.0.0ADR-005: Grant tools according to each agent's responsibilityChat agents receive only the MCP tools or delegated capabilities needed for their role, with governance policies limitin...Ownerai-capabilities-teamOpen docs — Per-agent tool governance and least-privilege rules.
- ADR-006: Add user-scoped episodic and semantic memory to BookAgentDecision Recordv1.0.0ADR-006: Add user-scoped episodic and semantic memory to BookAgentProposes private, cross-session memory so BookAgent can use past book discussions and stated reading preferences, while ...Ownerai-capabilities-teamOpen docs — User-scoped memory isolation for Book AgentAgentv1.0.0Book AgentPrimary conversational book discovery and recommendation specialist that grounds catalog answers in read-only MCP lookup...PublishesAnalyzeText, AnonymizeTextOwnerai-capabilities-teamDiagramRepositoryOpen docs.