The agent asks.
A consultation begins with the simplest gesture in MCP: your agent calls
a tool. It can start broad with list_shelves, find a title
with list_books, or go straight to search_passages.
Three parameters do most of the work: query is the vocabulary to search, shelf narrows the corpus, and limit keeps agent loops disciplined. Book and section IDs are available when the agent already knows where it is reading.
Shelf
A public category, e.g. philosophy or economics-and-finance.
Query
Keyword search with quoted phrases, OR, required terms, and exclusions.
Book or section
Optional IDs let an agent search inside one book or open a section directly.
Notes
include_notes controls indexes, footnotes, and apparatus.