/** * @fileoverview Tool for searching the Project Gutenberg catalog by title, author, * topic, language, author lifespan, or a specific list of IDs. * @module mcp-server/tools/definitions/gutenberg-search-books */ import { z } from '@cyanheads/mcp-ts-core'; import { JsonRpcErrorCode } from '@cyanheads/mcp-ts-core/errors'; export declare const gutenbergSearchBooks: import("@cyanheads/mcp-ts-core").ToolDefinition; topic: z.ZodOptional; languages: z.ZodOptional>; author_year_start: z.ZodOptional; author_year_end: z.ZodOptional; sort: z.ZodDefault>; ids: z.ZodOptional>; page: z.ZodDefault; }, z.core.$strip>, z.ZodObject<{ books: z.ZodArray; death_year: z.ZodNullable; }, z.core.$strip>>; languages: z.ZodArray; subjects: z.ZodArray; download_count: z.ZodNumber; has_plain_text: z.ZodBoolean; }, z.core.$strip>>; totalCount: z.ZodNumber; page: z.ZodNumber; hasMore: z.ZodBoolean; }, z.core.$strip>, readonly [{ readonly reason: "no_results"; readonly code: JsonRpcErrorCode.NotFound; readonly when: "The query matched no books in the catalog."; readonly recovery: "Broaden the search — try fewer or different query words, remove language filters, or check the topic spelling."; }, { readonly reason: "page_out_of_range"; readonly code: JsonRpcErrorCode.ValidationError; readonly when: "The requested page number is past the last page of results for this query."; readonly recovery: "Request a page within the available range, or restart at page 1. The first page reports totalCount — divide it by the page size (32) to find the last page."; }, { readonly reason: "catalog_unavailable"; readonly code: JsonRpcErrorCode.ServiceUnavailable; readonly when: "The Project Gutenberg catalog did not answer within the time this server allows for one search."; readonly recovery: "The catalog is unreachable or too slow right now. Retry in a few seconds; if it keeps failing, the catalog service itself is degraded and a different query will not help."; readonly retryable: true; readonly thrownBy: "service"; }], undefined>; //# sourceMappingURL=gutenberg-search-books.tool.d.ts.map