/** * search_vaults Tool * * Vault discovery and filtering with advanced search capabilities. * Supports 20+ filter options with pagination and 10-minute caching. * * Use cases: * - Discover vaults by asset, chain, TVL, curator * - Filter vaults with complex criteria combinations * - Paginate through large result sets * - Sort by TVL, address, chainId, or id * - Performance: ~300-500 tokens per page of results * * Cache strategy: * - 10-minute TTL for balance between freshness and performance * - Cache key: search:{MD5 hash of filters}:{pagination}:{sort} * - Repeated searches with same filters hit cache * - Cache hit rate target: 70-80% * - Cache tags: [CacheTag.VAULT] for invalidation */ import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; import { SearchVaultsInput } from '../utils/validators.js'; import { ServiceContainer } from '../core/container.js'; /** * Create the executeSearchVaults function with DI container * * This factory function demonstrates the moderate complexity pattern with optimizations: * 1. Custom cache key generation with MD5 hashing * 2. Complex variable mapping with filter transformation * 3. Custom validation for empty results * 4. Cache tag registration for invalidation * 5. NEW: Dynamic fragment selection based on responseFormat * 6. NEW: Fragment-level caching for individual vaults (enables data reuse) * 7. NEW: maxResults override for pagination.first * * @param container - Service container with dependencies * @returns Configured tool executor function */ export declare function createExecuteSearchVaults(container: ServiceContainer): (input: SearchVaultsInput) => Promise; //# sourceMappingURL=search-vaults.d.ts.map