@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.
Files changed (335) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +618 -0
  3. package/dist/cache/index.d.ts +97 -0
  4. package/dist/cache/index.d.ts.map +1 -0
  5. package/dist/cache/index.js +106 -0
  6. package/dist/cache/index.js.map +1 -0
  7. package/dist/config.d.ts +34 -0
  8. package/dist/config.d.ts.map +1 -0
  9. package/dist/config.js +40 -0
  10. package/dist/config.js.map +1 -0
  11. package/dist/core/cache-adapter.d.ts +73 -0
  12. package/dist/core/cache-adapter.d.ts.map +1 -0
  13. package/dist/core/cache-adapter.js +47 -0
  14. package/dist/core/cache-adapter.js.map +1 -0
  15. package/dist/core/cache-invalidation.d.ts +72 -0
  16. package/dist/core/cache-invalidation.d.ts.map +1 -0
  17. package/dist/core/cache-invalidation.js +114 -0
  18. package/dist/core/cache-invalidation.js.map +1 -0
  19. package/dist/core/container.d.ts +34 -0
  20. package/dist/core/container.d.ts.map +1 -0
  21. package/dist/core/container.js +75 -0
  22. package/dist/core/container.js.map +1 -0
  23. package/dist/graphql/client.d.ts +32 -0
  24. package/dist/graphql/client.d.ts.map +1 -0
  25. package/dist/graphql/client.js +49 -0
  26. package/dist/graphql/client.js.map +1 -0
  27. package/dist/graphql/fragments/apr-breakdown.fragment.d.ts +64 -0
  28. package/dist/graphql/fragments/apr-breakdown.fragment.d.ts.map +1 -0
  29. package/dist/graphql/fragments/apr-breakdown.fragment.js +62 -0
  30. package/dist/graphql/fragments/apr-breakdown.fragment.js.map +1 -0
  31. package/dist/graphql/fragments/asset-info.fragment.d.ts +18 -0
  32. package/dist/graphql/fragments/asset-info.fragment.d.ts.map +1 -0
  33. package/dist/graphql/fragments/asset-info.fragment.js +36 -0
  34. package/dist/graphql/fragments/asset-info.fragment.js.map +1 -0
  35. package/dist/graphql/fragments/chain-info.fragment.d.ts +18 -0
  36. package/dist/graphql/fragments/chain-info.fragment.d.ts.map +1 -0
  37. package/dist/graphql/fragments/chain-info.fragment.js +32 -0
  38. package/dist/graphql/fragments/chain-info.fragment.js.map +1 -0
  39. package/dist/graphql/fragments/index.d.ts +15 -0
  40. package/dist/graphql/fragments/index.d.ts.map +1 -0
  41. package/dist/graphql/fragments/index.js +21 -0
  42. package/dist/graphql/fragments/index.js.map +1 -0
  43. package/dist/graphql/fragments/pageinfo.fragment.d.ts +33 -0
  44. package/dist/graphql/fragments/pageinfo.fragment.d.ts.map +1 -0
  45. package/dist/graphql/fragments/pageinfo.fragment.js +47 -0
  46. package/dist/graphql/fragments/pageinfo.fragment.js.map +1 -0
  47. package/dist/graphql/fragments/transaction-base.fragment.d.ts +19 -0
  48. package/dist/graphql/fragments/transaction-base.fragment.d.ts.map +1 -0
  49. package/dist/graphql/fragments/transaction-base.fragment.js +32 -0
  50. package/dist/graphql/fragments/transaction-base.fragment.js.map +1 -0
  51. package/dist/graphql/fragments/vault-list.fragment.d.ts +53 -0
  52. package/dist/graphql/fragments/vault-list.fragment.d.ts.map +1 -0
  53. package/dist/graphql/fragments/vault-list.fragment.js +51 -0
  54. package/dist/graphql/fragments/vault-list.fragment.js.map +1 -0
  55. package/dist/graphql/fragments/vault-summary.fragment.d.ts +68 -0
  56. package/dist/graphql/fragments/vault-summary.fragment.d.ts.map +1 -0
  57. package/dist/graphql/fragments/vault-summary.fragment.js +66 -0
  58. package/dist/graphql/fragments/vault-summary.fragment.js.map +1 -0
  59. package/dist/graphql/fragments/vault.fragment.d.ts +133 -0
  60. package/dist/graphql/fragments/vault.fragment.d.ts.map +1 -0
  61. package/dist/graphql/fragments/vault.fragment.js +119 -0
  62. package/dist/graphql/fragments/vault.fragment.js.map +1 -0
  63. package/dist/graphql/fragments.d.ts +183 -0
  64. package/dist/graphql/fragments.d.ts.map +1 -0
  65. package/dist/graphql/fragments.js +297 -0
  66. package/dist/graphql/fragments.js.map +1 -0
  67. package/dist/graphql/queries/export.queries.d.ts +72 -0
  68. package/dist/graphql/queries/export.queries.d.ts.map +1 -0
  69. package/dist/graphql/queries/export.queries.js +202 -0
  70. package/dist/graphql/queries/export.queries.js.map +1 -0
  71. package/dist/graphql/queries/index.d.ts +15 -0
  72. package/dist/graphql/queries/index.d.ts.map +1 -0
  73. package/dist/graphql/queries/index.js +23 -0
  74. package/dist/graphql/queries/index.js.map +1 -0
  75. package/dist/graphql/queries/performance.queries.d.ts +63 -0
  76. package/dist/graphql/queries/performance.queries.d.ts.map +1 -0
  77. package/dist/graphql/queries/performance.queries.js +133 -0
  78. package/dist/graphql/queries/performance.queries.js.map +1 -0
  79. package/dist/graphql/queries/period-summaries.d.ts +15 -0
  80. package/dist/graphql/queries/period-summaries.d.ts.map +1 -0
  81. package/dist/graphql/queries/period-summaries.js +24 -0
  82. package/dist/graphql/queries/period-summaries.js.map +1 -0
  83. package/dist/graphql/queries/portfolio.queries.d.ts +78 -0
  84. package/dist/graphql/queries/portfolio.queries.d.ts.map +1 -0
  85. package/dist/graphql/queries/portfolio.queries.js +198 -0
  86. package/dist/graphql/queries/portfolio.queries.js.map +1 -0
  87. package/dist/graphql/queries/prediction.queries.d.ts +38 -0
  88. package/dist/graphql/queries/prediction.queries.d.ts.map +1 -0
  89. package/dist/graphql/queries/prediction.queries.js +100 -0
  90. package/dist/graphql/queries/prediction.queries.js.map +1 -0
  91. package/dist/graphql/queries/risk.queries.d.ts +37 -0
  92. package/dist/graphql/queries/risk.queries.d.ts.map +1 -0
  93. package/dist/graphql/queries/risk.queries.js +90 -0
  94. package/dist/graphql/queries/risk.queries.js.map +1 -0
  95. package/dist/graphql/queries/search.queries.d.ts +61 -0
  96. package/dist/graphql/queries/search.queries.d.ts.map +1 -0
  97. package/dist/graphql/queries/search.queries.js +103 -0
  98. package/dist/graphql/queries/search.queries.js.map +1 -0
  99. package/dist/graphql/queries/transaction.queries.d.ts +60 -0
  100. package/dist/graphql/queries/transaction.queries.d.ts.map +1 -0
  101. package/dist/graphql/queries/transaction.queries.js +252 -0
  102. package/dist/graphql/queries/transaction.queries.js.map +1 -0
  103. package/dist/graphql/queries/vault.queries.d.ts +54 -0
  104. package/dist/graphql/queries/vault.queries.d.ts.map +1 -0
  105. package/dist/graphql/queries/vault.queries.js +78 -0
  106. package/dist/graphql/queries/vault.queries.js.map +1 -0
  107. package/dist/index.d.ts +12 -0
  108. package/dist/index.d.ts.map +1 -0
  109. package/dist/index.js +32 -0
  110. package/dist/index.js.map +1 -0
  111. package/dist/prompts/competitor-comparison.d.ts +8 -0
  112. package/dist/prompts/competitor-comparison.d.ts.map +1 -0
  113. package/dist/prompts/competitor-comparison.js +432 -0
  114. package/dist/prompts/competitor-comparison.js.map +1 -0
  115. package/dist/prompts/curator-performance.d.ts +8 -0
  116. package/dist/prompts/curator-performance.d.ts.map +1 -0
  117. package/dist/prompts/curator-performance.js +383 -0
  118. package/dist/prompts/curator-performance.js.map +1 -0
  119. package/dist/prompts/financial-analysis.d.ts +8 -0
  120. package/dist/prompts/financial-analysis.d.ts.map +1 -0
  121. package/dist/prompts/financial-analysis.js +480 -0
  122. package/dist/prompts/financial-analysis.js.map +1 -0
  123. package/dist/prompts/index.d.ts +21 -0
  124. package/dist/prompts/index.d.ts.map +1 -0
  125. package/dist/prompts/index.js +50 -0
  126. package/dist/prompts/index.js.map +1 -0
  127. package/dist/prompts/onboarding-first-vault.d.ts +8 -0
  128. package/dist/prompts/onboarding-first-vault.d.ts.map +1 -0
  129. package/dist/prompts/onboarding-first-vault.js +317 -0
  130. package/dist/prompts/onboarding-first-vault.js.map +1 -0
  131. package/dist/prompts/portfolio-optimization.d.ts +8 -0
  132. package/dist/prompts/portfolio-optimization.d.ts.map +1 -0
  133. package/dist/prompts/portfolio-optimization.js +412 -0
  134. package/dist/prompts/portfolio-optimization.js.map +1 -0
  135. package/dist/prompts/protocol-overview.d.ts +8 -0
  136. package/dist/prompts/protocol-overview.d.ts.map +1 -0
  137. package/dist/prompts/protocol-overview.js +398 -0
  138. package/dist/prompts/protocol-overview.js.map +1 -0
  139. package/dist/prompts/shared/disclaimers.d.ts +54 -0
  140. package/dist/prompts/shared/disclaimers.d.ts.map +1 -0
  141. package/dist/prompts/shared/disclaimers.js +400 -0
  142. package/dist/prompts/shared/disclaimers.js.map +1 -0
  143. package/dist/resources/glossary.d.ts +8 -0
  144. package/dist/resources/glossary.d.ts.map +1 -0
  145. package/dist/resources/glossary.js +407 -0
  146. package/dist/resources/glossary.js.map +1 -0
  147. package/dist/resources/index.d.ts +18 -0
  148. package/dist/resources/index.d.ts.map +1 -0
  149. package/dist/resources/index.js +29 -0
  150. package/dist/resources/index.js.map +1 -0
  151. package/dist/resources/schema.d.ts +22 -0
  152. package/dist/resources/schema.d.ts.map +1 -0
  153. package/dist/resources/schema.js +67 -0
  154. package/dist/resources/schema.js.map +1 -0
  155. package/dist/schemas/config.schema.d.ts +46 -0
  156. package/dist/schemas/config.schema.d.ts.map +1 -0
  157. package/dist/schemas/config.schema.js +48 -0
  158. package/dist/schemas/config.schema.js.map +1 -0
  159. package/dist/sdk/__tests__/apr-service.test.d.ts +7 -0
  160. package/dist/sdk/__tests__/apr-service.test.d.ts.map +1 -0
  161. package/dist/sdk/__tests__/apr-service.test.js +385 -0
  162. package/dist/sdk/__tests__/apr-service.test.js.map +1 -0
  163. package/dist/sdk/__tests__/math-utils.test.d.ts +7 -0
  164. package/dist/sdk/__tests__/math-utils.test.d.ts.map +1 -0
  165. package/dist/sdk/__tests__/math-utils.test.js +185 -0
  166. package/dist/sdk/__tests__/math-utils.test.js.map +1 -0
  167. package/dist/sdk/__tests__/simulation-service.test.d.ts +5 -0
  168. package/dist/sdk/__tests__/simulation-service.test.d.ts.map +1 -0
  169. package/dist/sdk/__tests__/simulation-service.test.js +397 -0
  170. package/dist/sdk/__tests__/simulation-service.test.js.map +1 -0
  171. package/dist/sdk/__tests__/vault-utils.test.d.ts +7 -0
  172. package/dist/sdk/__tests__/vault-utils.test.d.ts.map +1 -0
  173. package/dist/sdk/__tests__/vault-utils.test.js +189 -0
  174. package/dist/sdk/__tests__/vault-utils.test.js.map +1 -0
  175. package/dist/sdk/apr-service.d.ts +101 -0
  176. package/dist/sdk/apr-service.d.ts.map +1 -0
  177. package/dist/sdk/apr-service.js +175 -0
  178. package/dist/sdk/apr-service.js.map +1 -0
  179. package/dist/sdk/math-utils.d.ts +138 -0
  180. package/dist/sdk/math-utils.d.ts.map +1 -0
  181. package/dist/sdk/math-utils.js +218 -0
  182. package/dist/sdk/math-utils.js.map +1 -0
  183. package/dist/sdk/simulation-service.d.ts +106 -0
  184. package/dist/sdk/simulation-service.d.ts.map +1 -0
  185. package/dist/sdk/simulation-service.js +143 -0
  186. package/dist/sdk/simulation-service.js.map +1 -0
  187. package/dist/sdk/vault-utils.d.ts +125 -0
  188. package/dist/sdk/vault-utils.d.ts.map +1 -0
  189. package/dist/sdk/vault-utils.js +165 -0
  190. package/dist/sdk/vault-utils.js.map +1 -0
  191. package/dist/server.d.ts +21 -0
  192. package/dist/server.d.ts.map +1 -0
  193. package/dist/server.js +225 -0
  194. package/dist/server.js.map +1 -0
  195. package/dist/services/analytics/protocol-overview.service.d.ts +61 -0
  196. package/dist/services/analytics/protocol-overview.service.d.ts.map +1 -0
  197. package/dist/services/analytics/protocol-overview.service.js +182 -0
  198. package/dist/services/analytics/protocol-overview.service.js.map +1 -0
  199. package/dist/services/analytics/risk.service.d.ts +92 -0
  200. package/dist/services/analytics/risk.service.d.ts.map +1 -0
  201. package/dist/services/analytics/risk.service.js +423 -0
  202. package/dist/services/analytics/risk.service.js.map +1 -0
  203. package/dist/services/base.service.d.ts +39 -0
  204. package/dist/services/base.service.d.ts.map +1 -0
  205. package/dist/services/base.service.js +37 -0
  206. package/dist/services/base.service.js.map +1 -0
  207. package/dist/services/index.d.ts +30 -0
  208. package/dist/services/index.d.ts.map +1 -0
  209. package/dist/services/index.js +101 -0
  210. package/dist/services/index.js.map +1 -0
  211. package/dist/tools/__tests__/simulate-vault.test.d.ts +5 -0
  212. package/dist/tools/__tests__/simulate-vault.test.d.ts.map +1 -0
  213. package/dist/tools/__tests__/simulate-vault.test.js +363 -0
  214. package/dist/tools/__tests__/simulate-vault.test.js.map +1 -0
  215. package/dist/tools/analyze-risk.d.ts +34 -0
  216. package/dist/tools/analyze-risk.d.ts.map +1 -0
  217. package/dist/tools/analyze-risk.js +100 -0
  218. package/dist/tools/analyze-risk.js.map +1 -0
  219. package/dist/tools/compare-vaults.d.ts +29 -0
  220. package/dist/tools/compare-vaults.d.ts.map +1 -0
  221. package/dist/tools/compare-vaults.js +285 -0
  222. package/dist/tools/compare-vaults.js.map +1 -0
  223. package/dist/tools/export-data.d.ts +34 -0
  224. package/dist/tools/export-data.d.ts.map +1 -0
  225. package/dist/tools/export-data.js +309 -0
  226. package/dist/tools/export-data.js.map +1 -0
  227. package/dist/tools/get-price-history.d.ts +29 -0
  228. package/dist/tools/get-price-history.d.ts.map +1 -0
  229. package/dist/tools/get-price-history.js +236 -0
  230. package/dist/tools/get-price-history.js.map +1 -0
  231. package/dist/tools/get-transactions.d.ts +29 -0
  232. package/dist/tools/get-transactions.d.ts.map +1 -0
  233. package/dist/tools/get-transactions.js +181 -0
  234. package/dist/tools/get-transactions.js.map +1 -0
  235. package/dist/tools/index.d.ts +26 -0
  236. package/dist/tools/index.d.ts.map +1 -0
  237. package/dist/tools/index.js +32 -0
  238. package/dist/tools/index.js.map +1 -0
  239. package/dist/tools/optimize-portfolio.d.ts +37 -0
  240. package/dist/tools/optimize-portfolio.d.ts.map +1 -0
  241. package/dist/tools/optimize-portfolio.js +459 -0
  242. package/dist/tools/optimize-portfolio.js.map +1 -0
  243. package/dist/tools/predict-yield.d.ts +30 -0
  244. package/dist/tools/predict-yield.d.ts.map +1 -0
  245. package/dist/tools/predict-yield.js +248 -0
  246. package/dist/tools/predict-yield.js.map +1 -0
  247. package/dist/tools/query-graphql.d.ts +35 -0
  248. package/dist/tools/query-graphql.d.ts.map +1 -0
  249. package/dist/tools/query-graphql.js +54 -0
  250. package/dist/tools/query-graphql.js.map +1 -0
  251. package/dist/tools/registry.d.ts +42 -0
  252. package/dist/tools/registry.d.ts.map +1 -0
  253. package/dist/tools/registry.js +231 -0
  254. package/dist/tools/registry.js.map +1 -0
  255. package/dist/tools/search-vaults.d.ts +40 -0
  256. package/dist/tools/search-vaults.d.ts.map +1 -0
  257. package/dist/tools/search-vaults.js +184 -0
  258. package/dist/tools/search-vaults.js.map +1 -0
  259. package/dist/tools/simulate-vault.d.ts +80 -0
  260. package/dist/tools/simulate-vault.d.ts.map +1 -0
  261. package/dist/tools/simulate-vault.js +281 -0
  262. package/dist/tools/simulate-vault.js.map +1 -0
  263. package/dist/tools/user-portfolio.d.ts +30 -0
  264. package/dist/tools/user-portfolio.d.ts.map +1 -0
  265. package/dist/tools/user-portfolio.js +142 -0
  266. package/dist/tools/user-portfolio.js.map +1 -0
  267. package/dist/tools/vault-data.d.ts +23 -0
  268. package/dist/tools/vault-data.d.ts.map +1 -0
  269. package/dist/tools/vault-data.js +68 -0
  270. package/dist/tools/vault-data.js.map +1 -0
  271. package/dist/tools/vault-performance.d.ts +30 -0
  272. package/dist/tools/vault-performance.d.ts.map +1 -0
  273. package/dist/tools/vault-performance.js +275 -0
  274. package/dist/tools/vault-performance.js.map +1 -0
  275. package/dist/types/generated.d.ts +1109 -0
  276. package/dist/types/generated.d.ts.map +1 -0
  277. package/dist/types/generated.js +2 -0
  278. package/dist/types/generated.js.map +1 -0
  279. package/dist/types/index.d.ts +46 -0
  280. package/dist/types/index.d.ts.map +1 -0
  281. package/dist/types/index.js +8 -0
  282. package/dist/types/index.js.map +1 -0
  283. package/dist/utils/comparison-metrics.d.ts +120 -0
  284. package/dist/utils/comparison-metrics.d.ts.map +1 -0
  285. package/dist/utils/comparison-metrics.js +215 -0
  286. package/dist/utils/comparison-metrics.js.map +1 -0
  287. package/dist/utils/config-loader.d.ts +17 -0
  288. package/dist/utils/config-loader.d.ts.map +1 -0
  289. package/dist/utils/config-loader.js +45 -0
  290. package/dist/utils/config-loader.js.map +1 -0
  291. package/dist/utils/csv-generator.d.ts +89 -0
  292. package/dist/utils/csv-generator.d.ts.map +1 -0
  293. package/dist/utils/csv-generator.js +97 -0
  294. package/dist/utils/csv-generator.js.map +1 -0
  295. package/dist/utils/disclaimers.d.ts +70 -0
  296. package/dist/utils/disclaimers.d.ts.map +1 -0
  297. package/dist/utils/disclaimers.js +161 -0
  298. package/dist/utils/disclaimers.js.map +1 -0
  299. package/dist/utils/errors.d.ts +66 -0
  300. package/dist/utils/errors.d.ts.map +1 -0
  301. package/dist/utils/errors.js +86 -0
  302. package/dist/utils/errors.js.map +1 -0
  303. package/dist/utils/execute-tool-with-cache.d.ts +97 -0
  304. package/dist/utils/execute-tool-with-cache.d.ts.map +1 -0
  305. package/dist/utils/execute-tool-with-cache.js +105 -0
  306. package/dist/utils/execute-tool-with-cache.js.map +1 -0
  307. package/dist/utils/portfolio-optimization.d.ts +100 -0
  308. package/dist/utils/portfolio-optimization.d.ts.map +1 -0
  309. package/dist/utils/portfolio-optimization.js +283 -0
  310. package/dist/utils/portfolio-optimization.js.map +1 -0
  311. package/dist/utils/risk-scoring.d.ts +226 -0
  312. package/dist/utils/risk-scoring.d.ts.map +1 -0
  313. package/dist/utils/risk-scoring.js +523 -0
  314. package/dist/utils/risk-scoring.js.map +1 -0
  315. package/dist/utils/tool-error-handler.d.ts +16 -0
  316. package/dist/utils/tool-error-handler.d.ts.map +1 -0
  317. package/dist/utils/tool-error-handler.js +43 -0
  318. package/dist/utils/tool-error-handler.js.map +1 -0
  319. package/dist/utils/tool-handler.d.ts +33 -0
  320. package/dist/utils/tool-handler.d.ts.map +1 -0
  321. package/dist/utils/tool-handler.js +59 -0
  322. package/dist/utils/tool-handler.js.map +1 -0
  323. package/dist/utils/tool-response.d.ts +16 -0
  324. package/dist/utils/tool-response.d.ts.map +1 -0
  325. package/dist/utils/tool-response.js +25 -0
  326. package/dist/utils/tool-response.js.map +1 -0
  327. package/dist/utils/validators.d.ts +359 -0
  328. package/dist/utils/validators.d.ts.map +1 -0
  329. package/dist/utils/validators.js +233 -0
  330. package/dist/utils/validators.js.map +1 -0
  331. package/dist/utils/yield-prediction.d.ts +69 -0
  332. package/dist/utils/yield-prediction.d.ts.map +1 -0
  333. package/dist/utils/yield-prediction.js +290 -0
  334. package/dist/utils/yield-prediction.js.map +1 -0
  335. package/package.json +83 -0
@@ -0,0 +1,383 @@
1
+ /**
2
+ * Curator Performance Intelligence Prompt
3
+ *
4
+ * Provides comprehensive framework for evaluating curator performance,
5
+ * reputation, and vault management capabilities.
6
+ */
7
+ import { UNIVERSAL_DISCLAIMER, DEFI_SPECIFIC_RISKS, DATA_DISCLAIMER, } from './shared/disclaimers.js';
8
+ export function getCuratorPerformancePrompt() {
9
+ return `# Curator Performance Intelligence - Data Analysis Tool
10
+
11
+ ${UNIVERSAL_DISCLAIMER}
12
+
13
+ ${DEFI_SPECIFIC_RISKS}
14
+
15
+ ${DATA_DISCLAIMER}
16
+
17
+ ## ⚠️ CURATOR ANALYSIS DISCLAIMERS
18
+
19
+ **CURATOR RATINGS ARE ANALYSIS, NOT ENDORSEMENTS**:
20
+ - Curator ratings and reputation scores are data-driven analysis tools
21
+ - They do NOT constitute endorsements, recommendations, or guarantees
22
+ - Past curator performance does NOT guarantee future results
23
+ - Users must independently verify curator credentials and track records
24
+ - Lagoon Protocol may have business relationships with curators
25
+
26
+ **RATING LIMITATIONS**:
27
+ - Ratings are based on available historical data which may be incomplete
28
+ - New curators lack sufficient data for reliable scoring
29
+ - Market conditions can change curator performance dramatically
30
+ - Security incidents can occur with any curator regardless of rating
31
+ - Conflict of interest disclosures may not be complete
32
+
33
+ **USER RESPONSIBILITY**:
34
+ Users are solely responsible for:
35
+ - Conducting independent due diligence on curators
36
+ - Verifying curator security practices and audit status
37
+ - Assessing alignment with personal risk tolerance
38
+ - Monitoring curator performance and adjusting allocations
39
+
40
+ ## Your Role
41
+ You are a quantitative analysis tool focused on curator performance evaluation.
42
+ Your function is to analyze curator track records and provide data-driven performance
43
+ metrics for educational purposes. You provide ANALYSIS, not curator recommendations
44
+ or endorsements.
45
+
46
+ ## Core Capabilities
47
+
48
+ ### 1. Curator Profile Analysis
49
+ When analyzing a curator, provide:
50
+
51
+ **Quick Stats Overview**:
52
+ \`\`\`
53
+ Curator: [Name/ID]
54
+ Overall Rating: ⭐⭐⭐⭐⭐ (XX/100)
55
+
56
+ Quick Stats:
57
+ ├─ Total AUM: $XXM
58
+ ├─ Active Vaults: XX
59
+ ├─ Avg APR: XX%
60
+ ├─ Experience: XX months
61
+ └─ Security Record: X incidents
62
+
63
+ Ranking: Top XX% of curators
64
+ \`\`\`
65
+
66
+ ### 2. Performance Metrics Framework
67
+
68
+ #### Absolute Performance
69
+ - **Weighted Average APR**: Calculate by TVL weighting across all vaults
70
+ - **Total Returns Generated**: Lifetime value creation
71
+ - **Best/Worst Performing Vaults**: Highlight range
72
+ - **APR Distribution**: Visual representation across vault portfolio
73
+
74
+ Formula for Weighted APR:
75
+ \`\`\`
76
+ weighted_apr = Σ(vault_apr_i * vault_tvl_i) / Σ(vault_tvl_i)
77
+ \`\`\`
78
+
79
+ #### Risk-Adjusted Performance
80
+ - **Sharpe Ratio**: Calculate (avg_return - risk_free_rate) / return_volatility
81
+ - Interpretation:
82
+ - > 2.0 = Excellent
83
+ - 1.0-2.0 = Good
84
+ - 0.5-1.0 = Fair
85
+ - < 0.5 = Poor
86
+
87
+ - **Risk-Return Profile**: Position curator on risk-return matrix
88
+
89
+ #### Consistency Analysis
90
+ - **APR Volatility (CV)**: Coefficient of variation across vaults
91
+ - < 0.15 = Very Consistent ✅
92
+ - 0.15-0.30 = Moderately Consistent ⚠️
93
+ - > 0.30 = Highly Variable 🚨
94
+
95
+ - **Performance Stability**: Track 30d, 90d, 180d trends
96
+
97
+ ### 3. Vault Portfolio Analysis
98
+
99
+ Present curator's vault portfolio:
100
+
101
+ | Vault Name | Strategy | TVL | APR | Risk | Performance |
102
+ |------------|----------|-----|-----|------|-------------|
103
+ | Vault A | Lend | $XXM | XX% | LOW | ⭐⭐⭐⭐⭐ |
104
+ | Vault B | Leverage | $XXM | XX% | MED | ⭐⭐⭐⭐ |
105
+
106
+ **Analyze Diversification**:
107
+ - Strategy Distribution (lending, leverage, derivatives, etc.)
108
+ - Asset Distribution (stablecoins, ETH, BTC, alts)
109
+ - Risk Distribution (low, medium, high)
110
+
111
+ Calculate Diversification Score (0-100):
112
+ - 80-100 = Excellent ✅
113
+ - 60-80 = Good ⚠️
114
+ - < 60 = Concentrated 🚨
115
+
116
+ ### 4. Reputation Scoring System
117
+
118
+ **Composite Reputation Score** (0-100):
119
+
120
+ \`\`\`
121
+ reputation_score = (
122
+ performance_score * 0.30 +
123
+ consistency_score * 0.20 +
124
+ risk_management_score * 0.20 +
125
+ longevity_score * 0.15 +
126
+ security_score * 0.10 +
127
+ transparency_score * 0.05
128
+ )
129
+ \`\`\`
130
+
131
+ **Component Breakdown**:
132
+ \`\`\`
133
+ ├─ Performance (30%): XX/100
134
+ │ ├─ Absolute returns: [Assessment]
135
+ │ └─ Peer comparison: Top XX%
136
+
137
+ ├─ Consistency (20%): XX/100
138
+ │ ├─ Volatility management: [Assessment]
139
+ │ └─ Drawdown history: [Assessment]
140
+
141
+ ├─ Risk Management (20%): XX/100
142
+ │ ├─ Risk-adjusted returns: [Assessment]
143
+ │ └─ Portfolio construction: [Assessment]
144
+
145
+ ├─ Longevity (15%): XX/100
146
+ │ ├─ Experience: XX months
147
+ │ └─ Track record depth: [Assessment]
148
+
149
+ ├─ Security (10%): XX/100
150
+ │ ├─ Incident history: X events
151
+ │ └─ Response quality: [Assessment]
152
+
153
+ └─ Transparency (5%): XX/100
154
+ ├─ Communication: [Assessment]
155
+ └─ Disclosure: [Assessment]
156
+ \`\`\`
157
+
158
+ ### 5. Trust Signals Framework
159
+
160
+ **🟢 Positive Signals**:
161
+ - ✅ Active for 12+ months
162
+ - ✅ Manages $5M+ AUM
163
+ - ✅ Top quartile performance
164
+ - ✅ Zero security incidents
165
+ - ✅ Transparent strategy documentation
166
+ - ✅ Regular performance reporting
167
+
168
+ **🟡 Neutral Signals**:
169
+ - ⚠️ [Specific observations requiring awareness]
170
+
171
+ **🔴 Warning Signs**:
172
+ - 🚨 [Critical red flags requiring immediate attention]
173
+
174
+ ### 6. Comparative Rankings
175
+
176
+ **Performance Tiers**:
177
+ \`\`\`
178
+ Elite (Top 10%) ┤ ●●●●● [20 curators]
179
+ Excellent (10-25%) ┤ ●●●●●●●● [35 curators]
180
+ Above Avg (25-50%) ┤ ●●●●●●●●●●●●●● [60 curators]
181
+ Average (50-75%) ┤ ●●●●●●●●●●●●●● [60 curators]
182
+ Below Avg (Bottom 25%) ┤ ●●●●●●●● [35 curators]
183
+ \`\`\`
184
+
185
+ **Metric-Specific Rankings**:
186
+
187
+ | Metric | Rank | Percentile | Assessment |
188
+ |--------|------|------------|------------|
189
+ | Weighted APR | #X | Top XX% | [Rating] |
190
+ | Risk-Adjusted Return | #X | Top XX% | [Rating] |
191
+ | Consistency | #X | Top XX% | [Rating] |
192
+ | Total AUM | #X | Top XX% | [Rating] |
193
+
194
+ ### 7. Decision Framework
195
+
196
+ **Curator Selection Checklist**:
197
+ - [ ] Reputation score ≥70/100
198
+ - [ ] Active for ≥6 months
199
+ - [ ] Manages ≥$1M AUM
200
+ - [ ] Top 50% performance ranking
201
+ - [ ] Zero critical security incidents
202
+ - [ ] Risk profile matches investor tolerance
203
+ - [ ] Strategy aligns with investor goals
204
+ - [ ] Transparent communication and reporting
205
+
206
+ **When to Choose This Curator**:
207
+ - **Ideal For**: [User profiles based on curator's strengths]
208
+ - **Strengths**: [List 3 key strengths with evidence]
209
+ - **Considerations**: [List 2 potential limitations]
210
+ - **Not Ideal For**: [User profiles where curator doesn't fit]
211
+
212
+ ### 8. Monitoring & Alerts
213
+
214
+ **Alert Triggers**:
215
+
216
+ **🚨 Immediate Action Signals**:
217
+ - Security incident at any vault
218
+ - Reputation score drops >20 points
219
+ - Performance drops to bottom quartile
220
+ - Multiple vaults show simultaneous issues
221
+
222
+ **⚠️ Review Signals**:
223
+ - APR volatility increases >50%
224
+ - Ranking drops >10 positions
225
+ - AUM declines >30% in 30 days
226
+ - Risk profile shifts significantly
227
+
228
+ **✅ Positive Signals**:
229
+ - New milestone achievements
230
+ - Consistent top quartile performance
231
+ - Successful new vault launches
232
+ - Industry recognition or awards
233
+
234
+ ## Communication Guidelines
235
+
236
+ ### Tone and Approach
237
+ - **Data-Driven**: Ground all assessments in metrics and evidence
238
+ - **Balanced**: Present both strengths and weaknesses objectively
239
+ - **Actionable**: Provide clear recommendations and next steps
240
+ - **Educational**: Explain methodology and reasoning
241
+
242
+ ### Key Phrases
243
+ - "Based on X-month performance data..."
244
+ - "Compared to peer curators..."
245
+ - "This curator ranks in the top X% for..."
246
+ - "Key considerations for your profile include..."
247
+ - "Monitor these metrics for changes..."
248
+
249
+ ### Presentation Standards
250
+ - Use tables for comparative data
251
+ - Include ASCII visualizations for trends
252
+ - Provide percentile rankings for context
253
+ - Always show calculation methodologies
254
+ - Reference time periods for all metrics
255
+
256
+ ## Tool Integration
257
+
258
+ ### Primary Tools
259
+ - **query_graphql**: Query curators and their vaults using GraphQL
260
+ - **search_vaults**: Find vaults by curator and filter criteria
261
+ - **get_vault_data**: Fetch detailed vault information
262
+ - **get_vault_performance**: Historical analysis of curator's vaults
263
+ - **analyze_risk**: Curator risk profile aggregation via vault analysis
264
+ - **compare_vaults**: Compare performance across curator's vaults
265
+
266
+ ### Analysis Workflow
267
+ 1. Query curator data: Use query_graphql with curators query to get curator list
268
+ 2. Find curator's vaults: Use search_vaults filtered by curator ID
269
+ 3. Fetch vault details: Use get_vault_data for comprehensive vault information
270
+ 4. Calculate performance metrics: Weighted APR, Sharpe ratio from vault data
271
+ 5. Assess consistency: Use get_vault_performance for historical trends
272
+ 6. Risk analysis: Use analyze_risk on each vault, aggregate results
273
+ 7. Compare vaults: Use compare_vaults to rank curator's vault portfolio
274
+ 8. Generate insights: Compute reputation score and provide recommendations
275
+
276
+ **Example GraphQL Query for Curators**:
277
+
278
+ query {
279
+ curators {
280
+ items {
281
+ id
282
+ name
283
+ logoUrl
284
+ url
285
+ }
286
+ }
287
+ }
288
+
289
+ Then use curator ID with search_vaults(curator="curator_id") to get their vaults.
290
+
291
+ ## Example Analyses
292
+
293
+ ### Example 1: Top-Tier Curator
294
+ \`\`\`
295
+ Curator: Aave Strategy Experts
296
+ Rating: 92/100 ⭐⭐⭐⭐⭐
297
+
298
+ Performance:
299
+ ├─ Weighted APR: 18.5% (Top 5%)
300
+ ├─ Sharpe Ratio: 2.3 (Excellent)
301
+ ├─ AUM: $45M (Top 10%)
302
+ └─ Consistency: CV 0.12 (Very Stable)
303
+
304
+ Reputation Breakdown:
305
+ ├─ Performance: 95/100 (Elite returns)
306
+ ├─ Consistency: 88/100 (Reliable)
307
+ ├─ Risk Management: 90/100 (Sophisticated)
308
+ ├─ Longevity: 85/100 (18 months active)
309
+ ├─ Security: 100/100 (Zero incidents)
310
+ └─ Transparency: 90/100 (Excellent disclosure)
311
+
312
+ 📊 Analysis: Historical data shows strong performance for moderate-to-aggressive profiles
313
+ ✅ Strengths: Proven track record, strong risk management, transparent
314
+ ⚠️ Consideration: Premium strategy may have capacity limits
315
+ \`\`\`
316
+
317
+ ### Example 2: Rising Star Curator
318
+ \`\`\`
319
+ Curator: DeFi Yield Optimizers
320
+ Rating: 72/100 ⭐⭐⭐⭐
321
+
322
+ Performance:
323
+ ├─ Weighted APR: 22% (Top 15%)
324
+ ├─ Sharpe Ratio: 1.6 (Good)
325
+ ├─ AUM: $3M (Growing rapidly)
326
+ └─ Consistency: CV 0.24 (Moderate)
327
+
328
+ Reputation Breakdown:
329
+ ├─ Performance: 85/100 (Strong returns)
330
+ ├─ Consistency: 65/100 (Still developing)
331
+ ├─ Risk Management: 70/100 (Improving)
332
+ ├─ Longevity: 50/100 (Only 4 months active)
333
+ ├─ Security: 100/100 (Zero incidents)
334
+ └─ Transparency: 75/100 (Good but limited history)
335
+
336
+ ⚠️ Analysis: Data suggests risk-tolerant profile match, limited track record indicates smaller allocation consideration
337
+ ✅ Strengths: High returns, innovative strategies, strong momentum
338
+ ⚠️ Considerations: Short track record, higher volatility, smaller AUM
339
+ 💡 Suggestion: Monitor closely, limit exposure until longer track record
340
+ \`\`\`
341
+
342
+ ## Best Practices
343
+
344
+ ### Analysis Depth
345
+ - **Quick Lookup**: Basic stats and rating (1 minute)
346
+ - **Standard Analysis**: Full metrics and reputation breakdown (3-5 minutes)
347
+ - **Deep Dive**: Comprehensive analysis with peer comparison (10+ minutes)
348
+
349
+ ### Quality Standards
350
+ - Always calculate weighted metrics (not simple averages)
351
+ - Include time context for all performance data
352
+ - Compare to relevant peer groups
353
+ - Highlight both quantitative and qualitative factors
354
+ - Provide risk-appropriate recommendations
355
+
356
+ ### Red Flag Protocol
357
+ If you identify critical issues:
358
+ 1. Clearly flag with 🚨 marker
359
+ 2. Explain the specific concern
360
+ 3. Quantify impact if possible
361
+ 4. Recommend immediate action or avoidance
362
+ 5. Suggest alternatives if appropriate
363
+
364
+ ---
365
+
366
+ ## Reference Documentation
367
+
368
+ **Complete framework**: [/docs/prompts/curator-performance-intelligence.md](../../docs/prompts/curator-performance-intelligence.md)
369
+
370
+ **Tool documentation**:
371
+ - [query_graphql](../../docs/tools/query-graphql.md) - For curator queries
372
+ - [search_vaults](../../docs/tools/search-vaults.md) - For finding curator's vaults
373
+ - [get_vault_data](../../docs/tools/get-vault-data.md) - For detailed vault info
374
+ - [get_vault_performance](../../docs/tools/get-vault-performance.md) - For historical metrics
375
+ - [compare_vaults](../../docs/tools/compare-vaults.md) - For vault comparisons
376
+ - [analyze_risk](../../docs/tools/analyze-risk.md) - For risk assessment
377
+
378
+ ---
379
+
380
+ *This prompt is part of the Lagoon MCP curator intelligence system*
381
+ `;
382
+ }
383
+ //# sourceMappingURL=curator-performance.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"curator-performance.js","sourceRoot":"","sources":["../../src/prompts/curator-performance.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,GAChB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,2BAA2B;IACzC,OAAO;;EAEP,oBAAoB;;EAEpB,mBAAmB;;EAEnB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8WhB,CAAC;AACF,CAAC"}
@@ -0,0 +1,8 @@
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
+ export declare function getFinancialAnalysisPrompt(): string;
8
+ //# sourceMappingURL=financial-analysis.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"financial-analysis.d.ts","sourceRoot":"","sources":["../../src/prompts/financial-analysis.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AASH,wBAAgB,0BAA0B,IAAI,MAAM,CAudnD"}