/** * get_vault_composition Tool * * Fetch a vault's DeFi protocol composition with diversification analysis. * Backed by the typed `Vault.composition: CompositionData` field — v0.6+ * replacement for the retired `vaultComposition(walletAddress)` JSONObject * query. * * Use cases: * - Understanding vault DeFi protocol exposure * - Analyzing diversification levels via HHI score * - Identifying concentration risks across protocols * - Portfolio composition visualization * * Migration notes (vs. the deprecated query): * - Now requires `chainId` (the deprecated query merged chains silently, * producing wrong totals for the same address on multiple chains). * - `repartition` is pre-computed by the backend — no client-side * percentage calculation. * - The "Wallet" / `idleAssetsPercent` field is GONE — the typed API doesn't * surface idle assets. See docs/agent-notes.md gotcha #8. * - `positionTypes` is GONE — per-chain protocol-position categorization * isn't exposed in the typed shape. * * Response formats (for token optimization): * - summary: Top protocols + analysis (~100 tokens) * - protocols: All non-zero protocols + analysis (~200-500 tokens) * - full: All data including tokenCompositions (~600-1000 tokens) * * Cache strategy: * - 15-minute TTL aligned with vault data freshness * - Cache key: composition:{address}:{chainId} */ import { CallToolResult } from '@modelcontextprotocol/sdk/types.js'; import { GetVaultCompositionInput } from '../utils/validators.js'; import { ServiceContainer } from '../core/container.js'; export declare function createExecuteGetVaultComposition(container: ServiceContainer): (input: GetVaultCompositionInput) => Promise; //# sourceMappingURL=vault-composition.d.ts.map