/** * @fileoverview Search tool implementation for the Glean MCP server. * * This module provides a search interface to Glean's content index through the MCP protocol. * It defines the schema for search parameters and implements the search functionality using * the Glean client SDK. * * @module tools/search */ import { z } from 'zod'; /** * Simplified schema for Glean search requests designed for LLM interaction */ export declare const ToolSearchSchema: z.ZodObject<{ query: z.ZodString; datasources: z.ZodOptional>; }, "strip", z.ZodTypeAny, { query: string; datasources?: string[] | undefined; }, { query: string; datasources?: string[] | undefined; }>; export type ToolSearchRequest = z.infer; /** * Executes a search query against Glean's content index. * * @param params The search parameters using the simplified schema * @returns The search results * @throws If the search request fails */ export declare function search(params: ToolSearchRequest): Promise; /** * Formats search results into a human-readable text format. * * @param searchResults The raw search results from Glean API * @returns Formatted search results as text */ export declare function formatResponse(searchResults: any): string; //# sourceMappingURL=search.d.ts.map