@lagoon-protocol/lagoon-mcp 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +618 -0
- package/dist/cache/index.d.ts +97 -0
- package/dist/cache/index.d.ts.map +1 -0
- package/dist/cache/index.js +106 -0
- package/dist/cache/index.js.map +1 -0
- package/dist/config.d.ts +34 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +40 -0
- package/dist/config.js.map +1 -0
- package/dist/core/cache-adapter.d.ts +73 -0
- package/dist/core/cache-adapter.d.ts.map +1 -0
- package/dist/core/cache-adapter.js +47 -0
- package/dist/core/cache-adapter.js.map +1 -0
- package/dist/core/cache-invalidation.d.ts +72 -0
- package/dist/core/cache-invalidation.d.ts.map +1 -0
- package/dist/core/cache-invalidation.js +114 -0
- package/dist/core/cache-invalidation.js.map +1 -0
- package/dist/core/container.d.ts +34 -0
- package/dist/core/container.d.ts.map +1 -0
- package/dist/core/container.js +75 -0
- package/dist/core/container.js.map +1 -0
- package/dist/graphql/client.d.ts +32 -0
- package/dist/graphql/client.d.ts.map +1 -0
- package/dist/graphql/client.js +49 -0
- package/dist/graphql/client.js.map +1 -0
- package/dist/graphql/fragments/apr-breakdown.fragment.d.ts +64 -0
- package/dist/graphql/fragments/apr-breakdown.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/apr-breakdown.fragment.js +62 -0
- package/dist/graphql/fragments/apr-breakdown.fragment.js.map +1 -0
- package/dist/graphql/fragments/asset-info.fragment.d.ts +18 -0
- package/dist/graphql/fragments/asset-info.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/asset-info.fragment.js +36 -0
- package/dist/graphql/fragments/asset-info.fragment.js.map +1 -0
- package/dist/graphql/fragments/chain-info.fragment.d.ts +18 -0
- package/dist/graphql/fragments/chain-info.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/chain-info.fragment.js +32 -0
- package/dist/graphql/fragments/chain-info.fragment.js.map +1 -0
- package/dist/graphql/fragments/index.d.ts +15 -0
- package/dist/graphql/fragments/index.d.ts.map +1 -0
- package/dist/graphql/fragments/index.js +21 -0
- package/dist/graphql/fragments/index.js.map +1 -0
- package/dist/graphql/fragments/pageinfo.fragment.d.ts +33 -0
- package/dist/graphql/fragments/pageinfo.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/pageinfo.fragment.js +47 -0
- package/dist/graphql/fragments/pageinfo.fragment.js.map +1 -0
- package/dist/graphql/fragments/transaction-base.fragment.d.ts +19 -0
- package/dist/graphql/fragments/transaction-base.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/transaction-base.fragment.js +32 -0
- package/dist/graphql/fragments/transaction-base.fragment.js.map +1 -0
- package/dist/graphql/fragments/vault-list.fragment.d.ts +53 -0
- package/dist/graphql/fragments/vault-list.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/vault-list.fragment.js +51 -0
- package/dist/graphql/fragments/vault-list.fragment.js.map +1 -0
- package/dist/graphql/fragments/vault-summary.fragment.d.ts +68 -0
- package/dist/graphql/fragments/vault-summary.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/vault-summary.fragment.js +66 -0
- package/dist/graphql/fragments/vault-summary.fragment.js.map +1 -0
- package/dist/graphql/fragments/vault.fragment.d.ts +133 -0
- package/dist/graphql/fragments/vault.fragment.d.ts.map +1 -0
- package/dist/graphql/fragments/vault.fragment.js +119 -0
- package/dist/graphql/fragments/vault.fragment.js.map +1 -0
- package/dist/graphql/fragments.d.ts +183 -0
- package/dist/graphql/fragments.d.ts.map +1 -0
- package/dist/graphql/fragments.js +297 -0
- package/dist/graphql/fragments.js.map +1 -0
- package/dist/graphql/queries/export.queries.d.ts +72 -0
- package/dist/graphql/queries/export.queries.d.ts.map +1 -0
- package/dist/graphql/queries/export.queries.js +202 -0
- package/dist/graphql/queries/export.queries.js.map +1 -0
- package/dist/graphql/queries/index.d.ts +15 -0
- package/dist/graphql/queries/index.d.ts.map +1 -0
- package/dist/graphql/queries/index.js +23 -0
- package/dist/graphql/queries/index.js.map +1 -0
- package/dist/graphql/queries/performance.queries.d.ts +63 -0
- package/dist/graphql/queries/performance.queries.d.ts.map +1 -0
- package/dist/graphql/queries/performance.queries.js +133 -0
- package/dist/graphql/queries/performance.queries.js.map +1 -0
- package/dist/graphql/queries/period-summaries.d.ts +15 -0
- package/dist/graphql/queries/period-summaries.d.ts.map +1 -0
- package/dist/graphql/queries/period-summaries.js +24 -0
- package/dist/graphql/queries/period-summaries.js.map +1 -0
- package/dist/graphql/queries/portfolio.queries.d.ts +78 -0
- package/dist/graphql/queries/portfolio.queries.d.ts.map +1 -0
- package/dist/graphql/queries/portfolio.queries.js +198 -0
- package/dist/graphql/queries/portfolio.queries.js.map +1 -0
- package/dist/graphql/queries/prediction.queries.d.ts +38 -0
- package/dist/graphql/queries/prediction.queries.d.ts.map +1 -0
- package/dist/graphql/queries/prediction.queries.js +100 -0
- package/dist/graphql/queries/prediction.queries.js.map +1 -0
- package/dist/graphql/queries/risk.queries.d.ts +37 -0
- package/dist/graphql/queries/risk.queries.d.ts.map +1 -0
- package/dist/graphql/queries/risk.queries.js +90 -0
- package/dist/graphql/queries/risk.queries.js.map +1 -0
- package/dist/graphql/queries/search.queries.d.ts +61 -0
- package/dist/graphql/queries/search.queries.d.ts.map +1 -0
- package/dist/graphql/queries/search.queries.js +103 -0
- package/dist/graphql/queries/search.queries.js.map +1 -0
- package/dist/graphql/queries/transaction.queries.d.ts +60 -0
- package/dist/graphql/queries/transaction.queries.d.ts.map +1 -0
- package/dist/graphql/queries/transaction.queries.js +252 -0
- package/dist/graphql/queries/transaction.queries.js.map +1 -0
- package/dist/graphql/queries/vault.queries.d.ts +54 -0
- package/dist/graphql/queries/vault.queries.d.ts.map +1 -0
- package/dist/graphql/queries/vault.queries.js +78 -0
- package/dist/graphql/queries/vault.queries.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +32 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts/competitor-comparison.d.ts +8 -0
- package/dist/prompts/competitor-comparison.d.ts.map +1 -0
- package/dist/prompts/competitor-comparison.js +432 -0
- package/dist/prompts/competitor-comparison.js.map +1 -0
- package/dist/prompts/curator-performance.d.ts +8 -0
- package/dist/prompts/curator-performance.d.ts.map +1 -0
- package/dist/prompts/curator-performance.js +383 -0
- package/dist/prompts/curator-performance.js.map +1 -0
- package/dist/prompts/financial-analysis.d.ts +8 -0
- package/dist/prompts/financial-analysis.d.ts.map +1 -0
- package/dist/prompts/financial-analysis.js +480 -0
- package/dist/prompts/financial-analysis.js.map +1 -0
- package/dist/prompts/index.d.ts +21 -0
- package/dist/prompts/index.d.ts.map +1 -0
- package/dist/prompts/index.js +50 -0
- package/dist/prompts/index.js.map +1 -0
- package/dist/prompts/onboarding-first-vault.d.ts +8 -0
- package/dist/prompts/onboarding-first-vault.d.ts.map +1 -0
- package/dist/prompts/onboarding-first-vault.js +317 -0
- package/dist/prompts/onboarding-first-vault.js.map +1 -0
- package/dist/prompts/portfolio-optimization.d.ts +8 -0
- package/dist/prompts/portfolio-optimization.d.ts.map +1 -0
- package/dist/prompts/portfolio-optimization.js +412 -0
- package/dist/prompts/portfolio-optimization.js.map +1 -0
- package/dist/prompts/protocol-overview.d.ts +8 -0
- package/dist/prompts/protocol-overview.d.ts.map +1 -0
- package/dist/prompts/protocol-overview.js +398 -0
- package/dist/prompts/protocol-overview.js.map +1 -0
- package/dist/prompts/shared/disclaimers.d.ts +54 -0
- package/dist/prompts/shared/disclaimers.d.ts.map +1 -0
- package/dist/prompts/shared/disclaimers.js +400 -0
- package/dist/prompts/shared/disclaimers.js.map +1 -0
- package/dist/resources/glossary.d.ts +8 -0
- package/dist/resources/glossary.d.ts.map +1 -0
- package/dist/resources/glossary.js +407 -0
- package/dist/resources/glossary.js.map +1 -0
- package/dist/resources/index.d.ts +18 -0
- package/dist/resources/index.d.ts.map +1 -0
- package/dist/resources/index.js +29 -0
- package/dist/resources/index.js.map +1 -0
- package/dist/resources/schema.d.ts +22 -0
- package/dist/resources/schema.d.ts.map +1 -0
- package/dist/resources/schema.js +67 -0
- package/dist/resources/schema.js.map +1 -0
- package/dist/schemas/config.schema.d.ts +46 -0
- package/dist/schemas/config.schema.d.ts.map +1 -0
- package/dist/schemas/config.schema.js +48 -0
- package/dist/schemas/config.schema.js.map +1 -0
- package/dist/sdk/__tests__/apr-service.test.d.ts +7 -0
- package/dist/sdk/__tests__/apr-service.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/apr-service.test.js +385 -0
- package/dist/sdk/__tests__/apr-service.test.js.map +1 -0
- package/dist/sdk/__tests__/math-utils.test.d.ts +7 -0
- package/dist/sdk/__tests__/math-utils.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/math-utils.test.js +185 -0
- package/dist/sdk/__tests__/math-utils.test.js.map +1 -0
- package/dist/sdk/__tests__/simulation-service.test.d.ts +5 -0
- package/dist/sdk/__tests__/simulation-service.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/simulation-service.test.js +397 -0
- package/dist/sdk/__tests__/simulation-service.test.js.map +1 -0
- package/dist/sdk/__tests__/vault-utils.test.d.ts +7 -0
- package/dist/sdk/__tests__/vault-utils.test.d.ts.map +1 -0
- package/dist/sdk/__tests__/vault-utils.test.js +189 -0
- package/dist/sdk/__tests__/vault-utils.test.js.map +1 -0
- package/dist/sdk/apr-service.d.ts +101 -0
- package/dist/sdk/apr-service.d.ts.map +1 -0
- package/dist/sdk/apr-service.js +175 -0
- package/dist/sdk/apr-service.js.map +1 -0
- package/dist/sdk/math-utils.d.ts +138 -0
- package/dist/sdk/math-utils.d.ts.map +1 -0
- package/dist/sdk/math-utils.js +218 -0
- package/dist/sdk/math-utils.js.map +1 -0
- package/dist/sdk/simulation-service.d.ts +106 -0
- package/dist/sdk/simulation-service.d.ts.map +1 -0
- package/dist/sdk/simulation-service.js +143 -0
- package/dist/sdk/simulation-service.js.map +1 -0
- package/dist/sdk/vault-utils.d.ts +125 -0
- package/dist/sdk/vault-utils.d.ts.map +1 -0
- package/dist/sdk/vault-utils.js +165 -0
- package/dist/sdk/vault-utils.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +225 -0
- package/dist/server.js.map +1 -0
- package/dist/services/analytics/protocol-overview.service.d.ts +61 -0
- package/dist/services/analytics/protocol-overview.service.d.ts.map +1 -0
- package/dist/services/analytics/protocol-overview.service.js +182 -0
- package/dist/services/analytics/protocol-overview.service.js.map +1 -0
- package/dist/services/analytics/risk.service.d.ts +92 -0
- package/dist/services/analytics/risk.service.d.ts.map +1 -0
- package/dist/services/analytics/risk.service.js +423 -0
- package/dist/services/analytics/risk.service.js.map +1 -0
- package/dist/services/base.service.d.ts +39 -0
- package/dist/services/base.service.d.ts.map +1 -0
- package/dist/services/base.service.js +37 -0
- package/dist/services/base.service.js.map +1 -0
- package/dist/services/index.d.ts +30 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +101 -0
- package/dist/services/index.js.map +1 -0
- package/dist/tools/__tests__/simulate-vault.test.d.ts +5 -0
- package/dist/tools/__tests__/simulate-vault.test.d.ts.map +1 -0
- package/dist/tools/__tests__/simulate-vault.test.js +363 -0
- package/dist/tools/__tests__/simulate-vault.test.js.map +1 -0
- package/dist/tools/analyze-risk.d.ts +34 -0
- package/dist/tools/analyze-risk.d.ts.map +1 -0
- package/dist/tools/analyze-risk.js +100 -0
- package/dist/tools/analyze-risk.js.map +1 -0
- package/dist/tools/compare-vaults.d.ts +29 -0
- package/dist/tools/compare-vaults.d.ts.map +1 -0
- package/dist/tools/compare-vaults.js +285 -0
- package/dist/tools/compare-vaults.js.map +1 -0
- package/dist/tools/export-data.d.ts +34 -0
- package/dist/tools/export-data.d.ts.map +1 -0
- package/dist/tools/export-data.js +309 -0
- package/dist/tools/export-data.js.map +1 -0
- package/dist/tools/get-price-history.d.ts +29 -0
- package/dist/tools/get-price-history.d.ts.map +1 -0
- package/dist/tools/get-price-history.js +236 -0
- package/dist/tools/get-price-history.js.map +1 -0
- package/dist/tools/get-transactions.d.ts +29 -0
- package/dist/tools/get-transactions.d.ts.map +1 -0
- package/dist/tools/get-transactions.js +181 -0
- package/dist/tools/get-transactions.js.map +1 -0
- package/dist/tools/index.d.ts +26 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +32 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/optimize-portfolio.d.ts +37 -0
- package/dist/tools/optimize-portfolio.d.ts.map +1 -0
- package/dist/tools/optimize-portfolio.js +459 -0
- package/dist/tools/optimize-portfolio.js.map +1 -0
- package/dist/tools/predict-yield.d.ts +30 -0
- package/dist/tools/predict-yield.d.ts.map +1 -0
- package/dist/tools/predict-yield.js +248 -0
- package/dist/tools/predict-yield.js.map +1 -0
- package/dist/tools/query-graphql.d.ts +35 -0
- package/dist/tools/query-graphql.d.ts.map +1 -0
- package/dist/tools/query-graphql.js +54 -0
- package/dist/tools/query-graphql.js.map +1 -0
- package/dist/tools/registry.d.ts +42 -0
- package/dist/tools/registry.d.ts.map +1 -0
- package/dist/tools/registry.js +231 -0
- package/dist/tools/registry.js.map +1 -0
- package/dist/tools/search-vaults.d.ts +40 -0
- package/dist/tools/search-vaults.d.ts.map +1 -0
- package/dist/tools/search-vaults.js +184 -0
- package/dist/tools/search-vaults.js.map +1 -0
- package/dist/tools/simulate-vault.d.ts +80 -0
- package/dist/tools/simulate-vault.d.ts.map +1 -0
- package/dist/tools/simulate-vault.js +281 -0
- package/dist/tools/simulate-vault.js.map +1 -0
- package/dist/tools/user-portfolio.d.ts +30 -0
- package/dist/tools/user-portfolio.d.ts.map +1 -0
- package/dist/tools/user-portfolio.js +142 -0
- package/dist/tools/user-portfolio.js.map +1 -0
- package/dist/tools/vault-data.d.ts +23 -0
- package/dist/tools/vault-data.d.ts.map +1 -0
- package/dist/tools/vault-data.js +68 -0
- package/dist/tools/vault-data.js.map +1 -0
- package/dist/tools/vault-performance.d.ts +30 -0
- package/dist/tools/vault-performance.d.ts.map +1 -0
- package/dist/tools/vault-performance.js +275 -0
- package/dist/tools/vault-performance.js.map +1 -0
- package/dist/types/generated.d.ts +1109 -0
- package/dist/types/generated.d.ts.map +1 -0
- package/dist/types/generated.js +2 -0
- package/dist/types/generated.js.map +1 -0
- package/dist/types/index.d.ts +46 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +8 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/comparison-metrics.d.ts +120 -0
- package/dist/utils/comparison-metrics.d.ts.map +1 -0
- package/dist/utils/comparison-metrics.js +215 -0
- package/dist/utils/comparison-metrics.js.map +1 -0
- package/dist/utils/config-loader.d.ts +17 -0
- package/dist/utils/config-loader.d.ts.map +1 -0
- package/dist/utils/config-loader.js +45 -0
- package/dist/utils/config-loader.js.map +1 -0
- package/dist/utils/csv-generator.d.ts +89 -0
- package/dist/utils/csv-generator.d.ts.map +1 -0
- package/dist/utils/csv-generator.js +97 -0
- package/dist/utils/csv-generator.js.map +1 -0
- package/dist/utils/disclaimers.d.ts +70 -0
- package/dist/utils/disclaimers.d.ts.map +1 -0
- package/dist/utils/disclaimers.js +161 -0
- package/dist/utils/disclaimers.js.map +1 -0
- package/dist/utils/errors.d.ts +66 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +86 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/execute-tool-with-cache.d.ts +97 -0
- package/dist/utils/execute-tool-with-cache.d.ts.map +1 -0
- package/dist/utils/execute-tool-with-cache.js +105 -0
- package/dist/utils/execute-tool-with-cache.js.map +1 -0
- package/dist/utils/portfolio-optimization.d.ts +100 -0
- package/dist/utils/portfolio-optimization.d.ts.map +1 -0
- package/dist/utils/portfolio-optimization.js +283 -0
- package/dist/utils/portfolio-optimization.js.map +1 -0
- package/dist/utils/risk-scoring.d.ts +226 -0
- package/dist/utils/risk-scoring.d.ts.map +1 -0
- package/dist/utils/risk-scoring.js +523 -0
- package/dist/utils/risk-scoring.js.map +1 -0
- package/dist/utils/tool-error-handler.d.ts +16 -0
- package/dist/utils/tool-error-handler.d.ts.map +1 -0
- package/dist/utils/tool-error-handler.js +43 -0
- package/dist/utils/tool-error-handler.js.map +1 -0
- package/dist/utils/tool-handler.d.ts +33 -0
- package/dist/utils/tool-handler.d.ts.map +1 -0
- package/dist/utils/tool-handler.js +59 -0
- package/dist/utils/tool-handler.js.map +1 -0
- package/dist/utils/tool-response.d.ts +16 -0
- package/dist/utils/tool-response.d.ts.map +1 -0
- package/dist/utils/tool-response.js +25 -0
- package/dist/utils/tool-response.js.map +1 -0
- package/dist/utils/validators.d.ts +359 -0
- package/dist/utils/validators.d.ts.map +1 -0
- package/dist/utils/validators.js +233 -0
- package/dist/utils/validators.js.map +1 -0
- package/dist/utils/yield-prediction.d.ts +69 -0
- package/dist/utils/yield-prediction.d.ts.map +1 -0
- package/dist/utils/yield-prediction.js +290 -0
- package/dist/utils/yield-prediction.js.map +1 -0
- package/package.json +83 -0
|
@@ -0,0 +1,480 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Financial Analysis Prompt
|
|
3
|
+
*
|
|
4
|
+
* Provides guidance for analyzing DeFi vault data and generating insights.
|
|
5
|
+
* Helps Claude understand how to interpret financial metrics and identify patterns.
|
|
6
|
+
*/
|
|
7
|
+
import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, REPORT_FOOTER_DISCLAIMER, } from './shared/disclaimers.js';
|
|
8
|
+
export function getFinancialAnalysisPrompt() {
|
|
9
|
+
return `# Financial Analysis Guidance - Lagoon DeFi Protocol
|
|
10
|
+
|
|
11
|
+
${UNIVERSAL_DISCLAIMER}
|
|
12
|
+
|
|
13
|
+
${DEFI_SPECIFIC_RISKS}
|
|
14
|
+
|
|
15
|
+
${DATA_DISCLAIMER}
|
|
16
|
+
|
|
17
|
+
You are analyzing DeFi vault data from the Lagoon protocol. Use these patterns and best practices to generate accurate, actionable insights.
|
|
18
|
+
|
|
19
|
+
---
|
|
20
|
+
|
|
21
|
+
## Available Tools
|
|
22
|
+
|
|
23
|
+
Complete documentation with parameters, examples, and workflows: /docs/tools/README.md
|
|
24
|
+
|
|
25
|
+
### Core Analysis Tools
|
|
26
|
+
- **Risk Assessment**: \`analyze_risk\` → /docs/tools/analyze-risk.md (7-factor scoring)
|
|
27
|
+
- **Vault Simulation**: \`simulate_vault\` → /docs/tools/simulate-vault.md (Protocol-accurate modeling)
|
|
28
|
+
- **Yield Forecasting**: \`predict_yield\` → /docs/tools/predict-yield.md (ML-based predictions)
|
|
29
|
+
- **Vault Comparison**: \`compare_vaults\` → /docs/tools/compare-vaults.md (Side-by-side rankings)
|
|
30
|
+
|
|
31
|
+
### Portfolio Management
|
|
32
|
+
- **User Portfolio**: \`user_portfolio\` → /docs/tools/user-portfolio.md (Multi-chain aggregation)
|
|
33
|
+
|
|
34
|
+
### Discovery & Historical Data
|
|
35
|
+
- **Search Vaults**: \`search_vaults\` → /docs/tools/search-vaults.md (20+ filters)
|
|
36
|
+
- **Vault Performance**: \`vault_performance\` → /docs/tools/vault-performance.md (Historical trends)
|
|
37
|
+
- **Price History**: \`price_history\` → /docs/tools/price-history.md (OHLCV data)
|
|
38
|
+
- **Transactions**: \`get_transactions\` → /docs/tools/get-transactions.md (Activity tracking)
|
|
39
|
+
|
|
40
|
+
### Data & Export
|
|
41
|
+
- **Vault Data**: \`get_vault_data\` → /docs/tools/get-vault-data.md (Complete vault info)
|
|
42
|
+
- **Export Data**: \`export_data\` → /docs/tools/export-data.md (CSV/JSON export)
|
|
43
|
+
- **GraphQL**: \`query_graphql\` → /docs/tools/query-graphql.md (Custom queries)
|
|
44
|
+
|
|
45
|
+
---
|
|
46
|
+
|
|
47
|
+
## Analysis Frameworks
|
|
48
|
+
|
|
49
|
+
### 1. Portfolio Analysis Pattern
|
|
50
|
+
|
|
51
|
+
When analyzing a user's portfolio:
|
|
52
|
+
|
|
53
|
+
**Tool Integration:**
|
|
54
|
+
- Use \`user_portfolio\` for multi-chain position data
|
|
55
|
+
- Use \`analyze_risk\` for individual vault risk assessment
|
|
56
|
+
- Apply \`compare_vaults\` for benchmarking positions
|
|
57
|
+
|
|
58
|
+
**Analysis Steps:**
|
|
59
|
+
|
|
60
|
+
1. **Asset Allocation**
|
|
61
|
+
- Group vaults by underlying asset (USDC, WETH, DAI, etc.)
|
|
62
|
+
- Calculate percentage allocation: (vaultValue / totalPortfolioValue) * 100
|
|
63
|
+
- Identify over-concentration (>30% in single asset/vault)
|
|
64
|
+
|
|
65
|
+
2. **Performance Summary**
|
|
66
|
+
- Compare returns across vaults using PPS growth (SDK calculates protocol-accurate price per share with BigInt precision)
|
|
67
|
+
- Calculate weighted average return: Σ(vaultReturn * vaultWeight)
|
|
68
|
+
- Identify best and worst performers
|
|
69
|
+
|
|
70
|
+
3. **Risk Assessment**
|
|
71
|
+
- Concentration risk: Single vault >30% = HIGH, 20-30% = MEDIUM, <20% = LOW
|
|
72
|
+
- Chain diversification: Multi-chain = better risk profile
|
|
73
|
+
- Curator analysis: Review historical performance and track record
|
|
74
|
+
|
|
75
|
+
4. **Recommendations**
|
|
76
|
+
- Suggest rebalancing if concentration >30%
|
|
77
|
+
- Highlight underperforming vaults for review
|
|
78
|
+
- Identify high-performing vaults for increased allocation
|
|
79
|
+
|
|
80
|
+
**Example Output:**
|
|
81
|
+
\`\`\`
|
|
82
|
+
Portfolio Summary:
|
|
83
|
+
- Total Value: $50,000
|
|
84
|
+
- Number of Positions: 5 vaults
|
|
85
|
+
- Asset Allocation: USDC 40%, WETH 35%, DAI 25%
|
|
86
|
+
- Weighted Avg Return (30d): +8.2%
|
|
87
|
+
|
|
88
|
+
Concentration Risk: MEDIUM
|
|
89
|
+
- USDC Vault A: 25% of portfolio
|
|
90
|
+
- WETH Vault B: 35% of portfolio (⚠️ HIGH - consider rebalancing)
|
|
91
|
+
|
|
92
|
+
Top Performers:
|
|
93
|
+
1. WETH Vault B: +15.3% (30d) - Strong Uniswap V3 strategy
|
|
94
|
+
2. USDC Vault A: +9.1% (30d) - Consistent Aave lending returns
|
|
95
|
+
|
|
96
|
+
Recommendations:
|
|
97
|
+
- Consider reducing WETH Vault B to <30% allocation
|
|
98
|
+
- Diversify into additional USDC or DAI vaults
|
|
99
|
+
- Monitor WETH Vault B capacity (currently 78% utilized)
|
|
100
|
+
\`\`\`
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
### 2. Vault Performance Analysis Pattern
|
|
105
|
+
|
|
106
|
+
When analyzing individual vault performance:
|
|
107
|
+
|
|
108
|
+
**Tool Integration:**
|
|
109
|
+
- Use \`vault_performance\` for historical metrics
|
|
110
|
+
- Use \`predict_yield\` for forward-looking forecasts
|
|
111
|
+
- Use \`compare_vaults\` for peer benchmarking
|
|
112
|
+
- Use \`price_history\` for volatility analysis
|
|
113
|
+
|
|
114
|
+
**Analysis Steps:**
|
|
115
|
+
|
|
116
|
+
1. **Time-Series Analysis**
|
|
117
|
+
- Compare multiple time periods: 7d, 30d, 90d, 1y
|
|
118
|
+
- Identify trends: rising, falling, or volatile TVL
|
|
119
|
+
- Detect inflection points: sudden changes in growth rate
|
|
120
|
+
|
|
121
|
+
2. **Return Calculations**
|
|
122
|
+
- Percent change: ((endValue - startValue) / startValue) * 100
|
|
123
|
+
- Annualized return: (1 + periodReturn)^(365/days) - 1
|
|
124
|
+
- Risk-adjusted return: return / volatility
|
|
125
|
+
|
|
126
|
+
3. **Benchmark Comparisons**
|
|
127
|
+
- Compare APR across similar vaults (same asset)
|
|
128
|
+
- Evaluate vs. baseline (e.g., Aave supply rate)
|
|
129
|
+
- Assess relative performance: top quartile, median, bottom quartile
|
|
130
|
+
- SDK provides period summary utilities for historical analysis
|
|
131
|
+
- Use APR service for protocol-accurate 30-day and inception calculations
|
|
132
|
+
|
|
133
|
+
4. **Volume Analysis**
|
|
134
|
+
- Calculate net flow: deposits - withdrawals
|
|
135
|
+
- Identify accumulation (positive flow) vs distribution (negative flow)
|
|
136
|
+
- Assess activity level: high volume = high interest
|
|
137
|
+
|
|
138
|
+
**Example Output:**
|
|
139
|
+
\`\`\`
|
|
140
|
+
Vault Performance Analysis: USDC Strategy A
|
|
141
|
+
|
|
142
|
+
Performance Overview:
|
|
143
|
+
- Current TVL: $5.2M (+15% vs 30d ago)
|
|
144
|
+
- 30-day Return: +8.5%
|
|
145
|
+
- Annualized APR: +12.3% (live), +11.8% (30d avg)
|
|
146
|
+
|
|
147
|
+
Time Series Trends:
|
|
148
|
+
- 7d: +2.1% (strong recent performance)
|
|
149
|
+
- 30d: +8.5% (consistent growth)
|
|
150
|
+
- 90d: +18.2% (excellent quarter)
|
|
151
|
+
- 1y: +45.3% (exceptional annual return)
|
|
152
|
+
|
|
153
|
+
Benchmark Comparison:
|
|
154
|
+
- Aave USDC Supply: 4.5% APR → Vault outperforming by +7.8%
|
|
155
|
+
- Similar USDC Vaults: Median 9.2% → Top quartile performer
|
|
156
|
+
|
|
157
|
+
Volume Analysis (30d):
|
|
158
|
+
- Total Deposits: $2.1M
|
|
159
|
+
- Total Withdrawals: $800K
|
|
160
|
+
- Net Flow: +$1.3M (strong accumulation)
|
|
161
|
+
- Transaction Count: 247 (high activity)
|
|
162
|
+
|
|
163
|
+
Risk Factors:
|
|
164
|
+
- Capacity: 65% utilized (ample room)
|
|
165
|
+
- Curator: Established, 12-month track record
|
|
166
|
+
- Chain: Ethereum (high security)
|
|
167
|
+
|
|
168
|
+
Overall Assessment: STRONG BUY
|
|
169
|
+
- Consistently outperforms benchmarks
|
|
170
|
+
- Strong capital inflows indicate market confidence
|
|
171
|
+
- Sufficient capacity for additional deposits
|
|
172
|
+
\`\`\`
|
|
173
|
+
|
|
174
|
+
---
|
|
175
|
+
|
|
176
|
+
### 3. Vault Discovery Pattern
|
|
177
|
+
|
|
178
|
+
When helping users find suitable vaults:
|
|
179
|
+
|
|
180
|
+
**Tool Integration:**
|
|
181
|
+
- Use \`search_vaults\` with 20+ filter options
|
|
182
|
+
- Use \`analyze_risk\` for due diligence
|
|
183
|
+
- Use \`compare_vaults\` for ranking finalists
|
|
184
|
+
|
|
185
|
+
**Analysis Steps:**
|
|
186
|
+
|
|
187
|
+
1. **Criteria Matching**
|
|
188
|
+
- Filter by asset preference (stablecoins, ETH, etc.)
|
|
189
|
+
- Consider risk tolerance: conservative = lower APR, higher capacity util
|
|
190
|
+
- Match to goals: yield farming, passive income, etc.
|
|
191
|
+
|
|
192
|
+
2. **Ranking System**
|
|
193
|
+
- Sort by TVL (larger = more established)
|
|
194
|
+
- Sort by APR (higher = more attractive yield)
|
|
195
|
+
- Balance size and returns for recommendations
|
|
196
|
+
|
|
197
|
+
3. **Quality Filters**
|
|
198
|
+
- Exclude vaults with >85% capacity utilization
|
|
199
|
+
- Prefer vaults with established curators
|
|
200
|
+
- Consider vault age and track record
|
|
201
|
+
|
|
202
|
+
4. **Top Recommendations**
|
|
203
|
+
- Present 3-5 best matches
|
|
204
|
+
- Explain trade-offs (yield vs risk)
|
|
205
|
+
- Provide entry points and expectations
|
|
206
|
+
|
|
207
|
+
**Example Output:**
|
|
208
|
+
\`\`\`
|
|
209
|
+
Top USDC Vault Recommendations:
|
|
210
|
+
|
|
211
|
+
1. Conservative Choice: Aave USDC Strategy
|
|
212
|
+
- TVL: $12M (large, established)
|
|
213
|
+
- APR: 6.5% (stable, predictable)
|
|
214
|
+
- Risk: LOW - lending protocol, high liquidity
|
|
215
|
+
- Capacity: 45% (ample room)
|
|
216
|
+
- Best For: Risk-averse investors seeking steady yield
|
|
217
|
+
|
|
218
|
+
2. Balanced Choice: Curve 3Pool Strategy
|
|
219
|
+
- TVL: $8M (medium-sized)
|
|
220
|
+
- APR: 9.2% (moderate yield)
|
|
221
|
+
- Risk: MEDIUM - DEX liquidity provision
|
|
222
|
+
- Capacity: 62% (good availability)
|
|
223
|
+
- Best For: Moderate risk tolerance, higher returns
|
|
224
|
+
|
|
225
|
+
3. Aggressive Choice: Uniswap V3 USDC-WETH
|
|
226
|
+
- TVL: $3.5M (smaller but active)
|
|
227
|
+
- APR: 15.7% (high yield)
|
|
228
|
+
- Risk: MEDIUM-HIGH - impermanent loss, active mgmt
|
|
229
|
+
- Capacity: 71% (approaching limit)
|
|
230
|
+
- Best For: Experienced DeFi users seeking max yield
|
|
231
|
+
|
|
232
|
+
Recommendation: Start with option 1 or 2 based on risk tolerance
|
|
233
|
+
\`\`\`
|
|
234
|
+
|
|
235
|
+
---
|
|
236
|
+
|
|
237
|
+
### 4. Vault Simulation Pattern
|
|
238
|
+
|
|
239
|
+
When modeling deposit/withdrawal scenarios:
|
|
240
|
+
|
|
241
|
+
**Purpose**: Protocol-accurate simulation for pre-transaction planning
|
|
242
|
+
|
|
243
|
+
**Tool**: Use \`simulate_vault\` for fee-aware modeling
|
|
244
|
+
📖 Complete methodology: /docs/tools/simulate-vault.md
|
|
245
|
+
|
|
246
|
+
**Key Use Cases:**
|
|
247
|
+
- Pre-transaction planning and fee optimization
|
|
248
|
+
- Impact analysis for large deposits/withdrawals
|
|
249
|
+
- Settlement requirement calculations
|
|
250
|
+
- "What-if" scenario analysis
|
|
251
|
+
|
|
252
|
+
**Quick Example:**
|
|
253
|
+
\`\`\`json
|
|
254
|
+
{
|
|
255
|
+
"vaultAddress": "0x...",
|
|
256
|
+
"scenario": {
|
|
257
|
+
"type": "deposit",
|
|
258
|
+
"amount": "10000"
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
\`\`\`
|
|
262
|
+
|
|
263
|
+
**Key Outputs:**
|
|
264
|
+
- Shares received/assets withdrawn
|
|
265
|
+
- Fee breakdown (entry, exit, management, performance)
|
|
266
|
+
- Net position after fees
|
|
267
|
+
- Settlement requirements
|
|
268
|
+
- APR impact from vault state changes
|
|
269
|
+
|
|
270
|
+
For protocol-accurate fee calculations, SDK integration details, and comprehensive examples:
|
|
271
|
+
📖 See /docs/tools/simulate-vault.md
|
|
272
|
+
|
|
273
|
+
---
|
|
274
|
+
|
|
275
|
+
## Financial Metrics Interpretation
|
|
276
|
+
|
|
277
|
+
### APR (Annual Percentage Rate)
|
|
278
|
+
|
|
279
|
+
SDK provides protocol-accurate APR calculations using BigInt precision.
|
|
280
|
+
|
|
281
|
+
**Two Calculation Approaches:**
|
|
282
|
+
- **30-Day APR**: Based on price per share growth over last 30 days
|
|
283
|
+
- **Inception APR**: Annualized return since vault creation
|
|
284
|
+
|
|
285
|
+
**Interpretation Guidelines:**
|
|
286
|
+
- **5-15% APR**: Sustainable, established strategies
|
|
287
|
+
- **15-30% APR**: Higher risk/reward, due diligence required
|
|
288
|
+
- **>30% APR**: Exceptional or unsustainable, verify carefully
|
|
289
|
+
- **Negative APR**: Loss-making period, investigate cause
|
|
290
|
+
|
|
291
|
+
📖 Methodology details: /docs/tools/vault-performance.md
|
|
292
|
+
|
|
293
|
+
### TVL (Total Value Locked)
|
|
294
|
+
- **>$10M**: Large, established vault with strong adoption
|
|
295
|
+
- **$1M-$10M**: Medium-sized, proven but growing
|
|
296
|
+
- **$100K-$1M**: Small, newer vault or niche strategy
|
|
297
|
+
- **<$100K**: Very small, high risk or experimental
|
|
298
|
+
|
|
299
|
+
### Capacity Utilization
|
|
300
|
+
- **<50%**: Low utilization, ample deposit room, low competition
|
|
301
|
+
- **50-70%**: Moderate utilization, healthy demand
|
|
302
|
+
- **70-85%**: High utilization, limited availability
|
|
303
|
+
- **>85%**: Very high utilization, deposits may fail
|
|
304
|
+
|
|
305
|
+
### Volume Metrics
|
|
306
|
+
- **High Deposits + Low Withdrawals**: Strong confidence, accumulation phase
|
|
307
|
+
- **Low Deposits + High Withdrawals**: Declining confidence, distribution phase
|
|
308
|
+
- **High Both**: Active trading, potential volatility
|
|
309
|
+
- **Low Both**: Low activity, limited interest
|
|
310
|
+
|
|
311
|
+
---
|
|
312
|
+
|
|
313
|
+
## Risk Assessment Framework
|
|
314
|
+
|
|
315
|
+
### Risk Categories
|
|
316
|
+
|
|
317
|
+
**LOW RISK:**
|
|
318
|
+
- Established lending protocols (Aave, Compound)
|
|
319
|
+
- Large TVL (>$10M)
|
|
320
|
+
- Conservative strategies (supply-side yield)
|
|
321
|
+
- Low capacity utilization (<60%)
|
|
322
|
+
- Proven curator with >1 year track record
|
|
323
|
+
|
|
324
|
+
**MEDIUM RISK:**
|
|
325
|
+
- DEX liquidity provision (Uniswap, Curve)
|
|
326
|
+
- Medium TVL ($1M-$10M)
|
|
327
|
+
- Active management strategies
|
|
328
|
+
- Moderate capacity utilization (60-80%)
|
|
329
|
+
- Newer curator or strategy (<1 year)
|
|
330
|
+
|
|
331
|
+
**HIGH RISK:**
|
|
332
|
+
- Complex derivative strategies
|
|
333
|
+
- Small TVL (<$1M)
|
|
334
|
+
- Leveraged positions
|
|
335
|
+
- High capacity utilization (>80%)
|
|
336
|
+
- Unproven curator or experimental strategy
|
|
337
|
+
|
|
338
|
+
### Red Flags
|
|
339
|
+
⚠️ **Immediate Concerns:**
|
|
340
|
+
- Capacity >95% (deposits likely to fail)
|
|
341
|
+
- Sudden TVL drop >30% (possible exploit or issue)
|
|
342
|
+
- Vault state = PAUSED or EMERGENCY
|
|
343
|
+
- Performance significantly below benchmarks
|
|
344
|
+
- No curator information or anonymous team
|
|
345
|
+
|
|
346
|
+
**For comprehensive automated risk analysis:**
|
|
347
|
+
📖 Use \`analyze_risk\` tool (/docs/tools/analyze-risk.md)
|
|
348
|
+
|
|
349
|
+
---
|
|
350
|
+
|
|
351
|
+
## Report Structure Template
|
|
352
|
+
|
|
353
|
+
Use this structure for comprehensive analysis reports:
|
|
354
|
+
|
|
355
|
+
\`\`\`markdown
|
|
356
|
+
# [Analysis Title]
|
|
357
|
+
|
|
358
|
+
## Executive Summary
|
|
359
|
+
[2-3 sentence overview of key findings and recommendations]
|
|
360
|
+
|
|
361
|
+
## Portfolio/Vault Overview
|
|
362
|
+
- Key metrics and statistics
|
|
363
|
+
- Current state and composition
|
|
364
|
+
|
|
365
|
+
## Performance Analysis
|
|
366
|
+
- Historical performance data
|
|
367
|
+
- Trend analysis and benchmarking
|
|
368
|
+
- Return calculations and projections
|
|
369
|
+
|
|
370
|
+
## Risk Assessment
|
|
371
|
+
- Risk category (LOW/MEDIUM/HIGH)
|
|
372
|
+
- Specific risk factors identified
|
|
373
|
+
- Risk mitigation suggestions
|
|
374
|
+
|
|
375
|
+
## Allocation Recommendations
|
|
376
|
+
- Suggested position sizes
|
|
377
|
+
- Rebalancing recommendations
|
|
378
|
+
- Entry/exit timing considerations
|
|
379
|
+
|
|
380
|
+
## Action Items
|
|
381
|
+
1. [Immediate actions required]
|
|
382
|
+
2. [Near-term considerations]
|
|
383
|
+
3. [Long-term monitoring points]
|
|
384
|
+
|
|
385
|
+
## Appendix
|
|
386
|
+
- Detailed calculations
|
|
387
|
+
- Data sources and timestamps
|
|
388
|
+
- Methodology notes
|
|
389
|
+
\`\`\`
|
|
390
|
+
|
|
391
|
+
---
|
|
392
|
+
|
|
393
|
+
## Best Practices
|
|
394
|
+
|
|
395
|
+
### Data Quality
|
|
396
|
+
- ✅ SDK calculations use BigInt precision (no floating-point errors)
|
|
397
|
+
- ✅ Protocol-accurate fee calculations (production-validated patterns)
|
|
398
|
+
- ✅ Always cite data sources and timestamps
|
|
399
|
+
- ✅ Use multiple time periods for trend confirmation
|
|
400
|
+
- ✅ Cross-reference APR across different time windows
|
|
401
|
+
- ✅ Verify capacity before recommending deposits
|
|
402
|
+
|
|
403
|
+
### Communication
|
|
404
|
+
- ✅ Explain trade-offs clearly (yield vs risk)
|
|
405
|
+
- ✅ Use analogies for complex concepts
|
|
406
|
+
- ✅ Provide context for metrics (benchmarks, ranges)
|
|
407
|
+
- ✅ Include actionable recommendations
|
|
408
|
+
|
|
409
|
+
### Calculations
|
|
410
|
+
- ✅ Show formulas for complex calculations
|
|
411
|
+
- ✅ Round percentages to 1-2 decimal places
|
|
412
|
+
- ✅ Use consistent units (USD for values, % for returns)
|
|
413
|
+
- ✅ Factor in fees for net return estimates
|
|
414
|
+
|
|
415
|
+
### Risk Disclosure
|
|
416
|
+
- ✅ Clearly state risk levels
|
|
417
|
+
- ✅ Explain potential downsides
|
|
418
|
+
- ✅ Mention smart contract risk
|
|
419
|
+
- ✅ Note that past performance ≠ future results
|
|
420
|
+
|
|
421
|
+
### Tool Selection
|
|
422
|
+
- **Single vault (1-5)**: Use \`get_vault_data\` with caching
|
|
423
|
+
- **Discovery (20+)**: Use \`search_vaults\` with filters
|
|
424
|
+
- **Comparison (2-10)**: Use \`compare_vaults\` for rankings
|
|
425
|
+
- **Portfolio**: Use \`user_portfolio\` for multi-chain aggregation
|
|
426
|
+
- **Custom queries**: Use \`query_graphql\` for power users
|
|
427
|
+
|
|
428
|
+
📖 Tool selection guide: /docs/tools/README.md
|
|
429
|
+
|
|
430
|
+
---
|
|
431
|
+
|
|
432
|
+
## ⚠️ CRITICAL: Legal Disclaimer Requirements
|
|
433
|
+
|
|
434
|
+
**EVERY financial analysis response MUST include appropriate disclaimers**:
|
|
435
|
+
|
|
436
|
+
### Comprehensive Disclaimers Now Integrated
|
|
437
|
+
|
|
438
|
+
All critical disclaimers are now included at the beginning of this prompt via:
|
|
439
|
+
- UNIVERSAL_DISCLAIMER: Legal protection, risk acknowledgment, user responsibility
|
|
440
|
+
- DEFI_SPECIFIC_RISKS: Smart contract, gas, impermanent loss, MEV, and other DeFi risks
|
|
441
|
+
- DATA_DISCLAIMER: Data source limitations, freshness, and accuracy notices
|
|
442
|
+
|
|
443
|
+
### Communication Rules (STRICTLY ENFORCED)
|
|
444
|
+
|
|
445
|
+
**❌ NEVER use**:
|
|
446
|
+
- "You should invest in..."
|
|
447
|
+
- "This is a good investment"
|
|
448
|
+
- "I recommend buying/selling..."
|
|
449
|
+
- "Best vault for you is..."
|
|
450
|
+
- Guaranteed returns or promises
|
|
451
|
+
|
|
452
|
+
**✅ ALWAYS use**:
|
|
453
|
+
- "Historical data shows..."
|
|
454
|
+
- "Analysis indicates..."
|
|
455
|
+
- "For educational purposes, consider..."
|
|
456
|
+
- "Quantitative comparison reveals..."
|
|
457
|
+
- "Past performance does not guarantee future results"
|
|
458
|
+
|
|
459
|
+
### Report Footer Disclaimer
|
|
460
|
+
|
|
461
|
+
Include at the end of ALL analysis responses:
|
|
462
|
+
|
|
463
|
+
${REPORT_FOOTER_DISCLAIMER}
|
|
464
|
+
|
|
465
|
+
**NOTE**: Disclaimers are integrated throughout this prompt, but YOU must reinforce disclaimer language in conversational responses and use educational framing (NOT investment advice language) for maximum legal protection.
|
|
466
|
+
|
|
467
|
+
---
|
|
468
|
+
|
|
469
|
+
## Documentation Reference
|
|
470
|
+
|
|
471
|
+
**Complete analytical frameworks**: /docs/prompts/financial-analysis.md
|
|
472
|
+
**Tool documentation**: /docs/tools/README.md
|
|
473
|
+
**Individual tool details**: /docs/tools/[tool-name].md
|
|
474
|
+
|
|
475
|
+
---
|
|
476
|
+
|
|
477
|
+
*This guidance is optimized for Lagoon Protocol vault analysis using Phase 3 MCP tools*
|
|
478
|
+
`;
|
|
479
|
+
}
|
|
480
|
+
//# sourceMappingURL=financial-analysis.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"financial-analysis.js","sourceRoot":"","sources":["../../src/prompts/financial-analysis.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,GACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,0BAA0B;IACxC,OAAO;;EAEP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgcf,wBAAwB;;;;;;;;;;;;;;;CAezB,CAAC;AACF,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompt Registry
|
|
3
|
+
*
|
|
4
|
+
* Central registry for all MCP prompts.
|
|
5
|
+
* Prompts provide templates for common queries and interactions.
|
|
6
|
+
*/
|
|
7
|
+
export interface Prompt {
|
|
8
|
+
name: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
arguments?: Array<{
|
|
11
|
+
name: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Prompt Registry
|
|
18
|
+
* Available prompts for MCP clients
|
|
19
|
+
*/
|
|
20
|
+
export declare const prompts: Prompt[];
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,KAAK,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;CACJ;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,EAAE,MAAM,EA4C3B,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Prompt Registry
|
|
3
|
+
*
|
|
4
|
+
* Central registry for all MCP prompts.
|
|
5
|
+
* Prompts provide templates for common queries and interactions.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Prompt Registry
|
|
9
|
+
* Available prompts for MCP clients
|
|
10
|
+
*/
|
|
11
|
+
export const prompts = [
|
|
12
|
+
{
|
|
13
|
+
name: 'financial-analysis',
|
|
14
|
+
description: 'Guidance for analyzing DeFi vault data and generating financial insights. ' +
|
|
15
|
+
'Includes analysis patterns for portfolio review, vault performance, and vault discovery. ' +
|
|
16
|
+
'Provides frameworks for risk assessment, metrics interpretation, and report structure.',
|
|
17
|
+
arguments: [],
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: 'curator-performance',
|
|
21
|
+
description: 'Comprehensive framework for evaluating curator performance, reputation, and vault management capabilities. ' +
|
|
22
|
+
'Includes reputation scoring, performance metrics, risk-adjusted returns, and decision frameworks for curator selection.',
|
|
23
|
+
arguments: [],
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
name: 'competitor-comparison',
|
|
27
|
+
description: 'Objective comparison of Lagoon Protocol against major competitors (Gauntlet, Veda, Ether.fi). ' +
|
|
28
|
+
'Provides data-driven analysis across financial performance, features, security, and use case fit.',
|
|
29
|
+
arguments: [],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'onboarding-first-vault',
|
|
33
|
+
description: 'Structured guidance for new users making their first vault deposit. ' +
|
|
34
|
+
'Includes risk profile assessment, step-by-step selection process, and confidence-building decision frameworks.',
|
|
35
|
+
arguments: [],
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'protocol-overview',
|
|
39
|
+
description: 'Real-time protocol health insights and KPI dashboard. ' +
|
|
40
|
+
'Tracks TVL, user growth, vault performance, ecosystem health, and competitive positioning.',
|
|
41
|
+
arguments: [],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'portfolio-optimization',
|
|
45
|
+
description: 'AI-powered portfolio optimization based on modern portfolio theory. ' +
|
|
46
|
+
'Provides systematic rebalancing recommendations to maximize risk-adjusted returns with multiple optimization strategies.',
|
|
47
|
+
arguments: [],
|
|
48
|
+
},
|
|
49
|
+
];
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAYH;;;GAGG;AACH,MAAM,CAAC,MAAM,OAAO,GAAa;IAC/B;QACE,IAAI,EAAE,oBAAoB;QAC1B,WAAW,EACT,4EAA4E;YAC5E,2FAA2F;YAC3F,wFAAwF;QAC1F,SAAS,EAAE,EAAE;KACd;IACD;QACE,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EACT,6GAA6G;YAC7G,yHAAyH;QAC3H,SAAS,EAAE,EAAE;KACd;IACD;QACE,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EACT,gGAAgG;YAChG,mGAAmG;QACrG,SAAS,EAAE,EAAE;KACd;IACD;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,sEAAsE;YACtE,gHAAgH;QAClH,SAAS,EAAE,EAAE;KACd;IACD;QACE,IAAI,EAAE,mBAAmB;QACzB,WAAW,EACT,wDAAwD;YACxD,4FAA4F;QAC9F,SAAS,EAAE,EAAE;KACd;IACD;QACE,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EACT,sEAAsE;YACtE,0HAA0H;QAC5H,SAAS,EAAE,EAAE;KACd;CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Onboarding Guide - First Vault Selection Prompt
|
|
3
|
+
*
|
|
4
|
+
* Structured guidance for new users making their first vault deposit with
|
|
5
|
+
* confidence-building and risk-appropriate selection.
|
|
6
|
+
*/
|
|
7
|
+
export declare function getOnboardingFirstVaultPrompt(): string;
|
|
8
|
+
//# sourceMappingURL=onboarding-first-vault.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onboarding-first-vault.d.ts","sourceRoot":"","sources":["../../src/prompts/onboarding-first-vault.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,6BAA6B,IAAI,MAAM,CAoTtD"}
|