@axionquant/mcp 1.0.4 → 1.0.6
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/README.md +1 -0
- package/index.js +604 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -79,6 +79,7 @@ The server uses stdio transport and is compatible with any MCP client. Set the `
|
|
|
79
79
|
|------|-------------|
|
|
80
80
|
| `etf_fund` | Get ETF fund information including ratings and metrics |
|
|
81
81
|
| `etf_holdings` | Get top holdings with weights, shares, and market value |
|
|
82
|
+
| `etf_holdings_all` | Get all ETF holdings with weights and last updated date |
|
|
82
83
|
| `etf_exposure` | Find which ETFs hold a specific stock ticker |
|
|
83
84
|
|
|
84
85
|
### Economics (FRED)
|
package/index.js
CHANGED
|
@@ -99,6 +99,83 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
99
99
|
},
|
|
100
100
|
|
|
101
101
|
// ---------- ETF (note plural endpoints) ----------
|
|
102
|
+
{
|
|
103
|
+
name: "etf_tickers",
|
|
104
|
+
description: "List etf tickers, optionally filtered by country or exchange",
|
|
105
|
+
inputSchema: {
|
|
106
|
+
type: "object",
|
|
107
|
+
properties: {
|
|
108
|
+
country: { type: "string", description: "Filter by country (e.g., 'america')" },
|
|
109
|
+
exchange: { type: "string", description: "Filter by exchange (e.g., 'NASDAQ')" }
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
name: "etf_gainers",
|
|
115
|
+
description: "Get top ETF gainers",
|
|
116
|
+
inputSchema: { type: "object", properties: {} }
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
name: "etf_losers",
|
|
120
|
+
description: "Get top ETF losers",
|
|
121
|
+
inputSchema: { type: "object", properties: {} }
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
name: "etf_list_market",
|
|
125
|
+
description: "Get unique market values for ETFs",
|
|
126
|
+
inputSchema: { type: "object", properties: {} }
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
name: "etf_list_country",
|
|
130
|
+
description: "Get unique country values for ETFs",
|
|
131
|
+
inputSchema: { type: "object", properties: {} }
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
name: "etf_list_currency",
|
|
135
|
+
description: "Get unique currency values for ETFs",
|
|
136
|
+
inputSchema: { type: "object", properties: {} }
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "etf_list_sector",
|
|
140
|
+
description: "Get unique sector values for ETFs",
|
|
141
|
+
inputSchema: { type: "object", properties: {} }
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "etf_list_industry",
|
|
145
|
+
description: "Get unique industry values for ETFs",
|
|
146
|
+
inputSchema: { type: "object", properties: {} }
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
name: "etf_list_type",
|
|
150
|
+
description: "Get unique type values for ETFs",
|
|
151
|
+
inputSchema: { type: "object", properties: {} }
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: "etf_quote",
|
|
155
|
+
description: "Get an ETF quote",
|
|
156
|
+
inputSchema: {
|
|
157
|
+
type: "object",
|
|
158
|
+
properties: {
|
|
159
|
+
ticker: { type: "string", description: "ETF ticker (e.g., SPY)" }
|
|
160
|
+
},
|
|
161
|
+
required: ["ticker"]
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
name: "etf_prices",
|
|
166
|
+
description: "Get historical price data for an etf",
|
|
167
|
+
inputSchema: {
|
|
168
|
+
type: "object",
|
|
169
|
+
properties: {
|
|
170
|
+
ticker: { type: "string", description: "ETF ticker" },
|
|
171
|
+
from: { type: "string", description: "Start date (YYYY-MM-DD)" },
|
|
172
|
+
to: { type: "string", description: "End date (YYYY-MM-DD)" },
|
|
173
|
+
frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
|
|
174
|
+
},
|
|
175
|
+
required: ["ticker"]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
|
|
102
179
|
{
|
|
103
180
|
name: "etf_fund",
|
|
104
181
|
description: "Get ETF fund information including ratings and metrics",
|
|
@@ -121,6 +198,17 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
121
198
|
required: ["ticker"]
|
|
122
199
|
}
|
|
123
200
|
},
|
|
201
|
+
{
|
|
202
|
+
name: "etf_holdings_all",
|
|
203
|
+
description: "Get all ETF holdings with weights and last updated date",
|
|
204
|
+
inputSchema: {
|
|
205
|
+
type: "object",
|
|
206
|
+
properties: {
|
|
207
|
+
ticker: { type: "string", description: "ETF ticker (e.g., SPY)" }
|
|
208
|
+
},
|
|
209
|
+
required: ["ticker"]
|
|
210
|
+
}
|
|
211
|
+
},
|
|
124
212
|
{
|
|
125
213
|
name: "etf_exposure",
|
|
126
214
|
description: "Find which ETFs hold a specific stock ticker",
|
|
@@ -132,6 +220,17 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
132
220
|
required: ["ticker"]
|
|
133
221
|
}
|
|
134
222
|
},
|
|
223
|
+
{
|
|
224
|
+
name: "etf_weights",
|
|
225
|
+
description: "Find what percentage of each sector industry and stocks make up the ETF",
|
|
226
|
+
inputSchema: {
|
|
227
|
+
type: "object",
|
|
228
|
+
properties: {
|
|
229
|
+
ticker: { type: "string", description: "Stock ticker (e.g., AAPL)" }
|
|
230
|
+
},
|
|
231
|
+
required: ["ticker"]
|
|
232
|
+
}
|
|
233
|
+
},
|
|
135
234
|
|
|
136
235
|
// ---------- Supply Chain ----------
|
|
137
236
|
{
|
|
@@ -180,9 +279,49 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
180
279
|
}
|
|
181
280
|
}
|
|
182
281
|
},
|
|
282
|
+
{
|
|
283
|
+
name: "stocks_gainers",
|
|
284
|
+
description: "Get top stock gainers",
|
|
285
|
+
inputSchema: { type: "object", properties: {} }
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
name: "stocks_losers",
|
|
289
|
+
description: "Get top stock losers",
|
|
290
|
+
inputSchema: { type: "object", properties: {} }
|
|
291
|
+
},
|
|
292
|
+
{
|
|
293
|
+
name: "stocks_list_market",
|
|
294
|
+
description: "Get unique market values for stocks",
|
|
295
|
+
inputSchema: { type: "object", properties: {} }
|
|
296
|
+
},
|
|
297
|
+
{
|
|
298
|
+
name: "stocks_list_country",
|
|
299
|
+
description: "Get unique country values for stocks",
|
|
300
|
+
inputSchema: { type: "object", properties: {} }
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "stocks_list_currency",
|
|
304
|
+
description: "Get unique currency values for stocks",
|
|
305
|
+
inputSchema: { type: "object", properties: {} }
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "stocks_list_sector",
|
|
309
|
+
description: "Get unique sector values for stocks",
|
|
310
|
+
inputSchema: { type: "object", properties: {} }
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
name: "stocks_list_industry",
|
|
314
|
+
description: "Get unique industry values for stocks",
|
|
315
|
+
inputSchema: { type: "object", properties: {} }
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
name: "stocks_list_type",
|
|
319
|
+
description: "Get unique type values for stocks",
|
|
320
|
+
inputSchema: { type: "object", properties: {} }
|
|
321
|
+
},
|
|
183
322
|
{
|
|
184
323
|
name: "stocks_quote",
|
|
185
|
-
description: "Get
|
|
324
|
+
description: "Get a stock quote",
|
|
186
325
|
inputSchema: {
|
|
187
326
|
type: "object",
|
|
188
327
|
properties: {
|
|
@@ -217,9 +356,34 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
217
356
|
}
|
|
218
357
|
}
|
|
219
358
|
},
|
|
359
|
+
{
|
|
360
|
+
name: "crypto_gainers",
|
|
361
|
+
description: "Get top crypto gainers",
|
|
362
|
+
inputSchema: { type: "object", properties: {} }
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
name: "crypto_losers",
|
|
366
|
+
description: "Get top crypto losers",
|
|
367
|
+
inputSchema: { type: "object", properties: {} }
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
name: "crypto_list_category",
|
|
371
|
+
description: "Get unique category values for crypto",
|
|
372
|
+
inputSchema: { type: "object", properties: {} }
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
name: "crypto_list_rating",
|
|
376
|
+
description: "Get unique rating values for crypto",
|
|
377
|
+
inputSchema: { type: "object", properties: {} }
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "crypto_list_type",
|
|
381
|
+
description: "Get unique type values for crypto",
|
|
382
|
+
inputSchema: { type: "object", properties: {} }
|
|
383
|
+
},
|
|
220
384
|
{
|
|
221
385
|
name: "crypto_quote",
|
|
222
|
-
description: "Get
|
|
386
|
+
description: "Get a cryptocurrency quote",
|
|
223
387
|
inputSchema: {
|
|
224
388
|
type: "object",
|
|
225
389
|
properties: {
|
|
@@ -255,9 +419,34 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
255
419
|
}
|
|
256
420
|
}
|
|
257
421
|
},
|
|
422
|
+
{
|
|
423
|
+
name: "forex_gainers",
|
|
424
|
+
description: "Get top forex gainers",
|
|
425
|
+
inputSchema: { type: "object", properties: {} }
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
name: "forex_losers",
|
|
429
|
+
description: "Get top forex losers",
|
|
430
|
+
inputSchema: { type: "object", properties: {} }
|
|
431
|
+
},
|
|
432
|
+
{
|
|
433
|
+
name: "forex_list_exchange",
|
|
434
|
+
description: "Get unique exchange values for forex",
|
|
435
|
+
inputSchema: { type: "object", properties: {} }
|
|
436
|
+
},
|
|
437
|
+
{
|
|
438
|
+
name: "forex_list_rating",
|
|
439
|
+
description: "Get unique rating values for forex",
|
|
440
|
+
inputSchema: { type: "object", properties: {} }
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
name: "forex_list_country",
|
|
444
|
+
description: "Get unique country values for forex",
|
|
445
|
+
inputSchema: { type: "object", properties: {} }
|
|
446
|
+
},
|
|
258
447
|
{
|
|
259
448
|
name: "forex_quote",
|
|
260
|
-
description: "Get
|
|
449
|
+
description: "Get a forex pair quote",
|
|
261
450
|
inputSchema: {
|
|
262
451
|
type: "object",
|
|
263
452
|
properties: {
|
|
@@ -292,9 +481,39 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
292
481
|
}
|
|
293
482
|
}
|
|
294
483
|
},
|
|
484
|
+
{
|
|
485
|
+
name: "futures_gainers",
|
|
486
|
+
description: "Get top futures gainers",
|
|
487
|
+
inputSchema: { type: "object", properties: {} }
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
name: "futures_losers",
|
|
491
|
+
description: "Get top futures losers",
|
|
492
|
+
inputSchema: { type: "object", properties: {} }
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
name: "futures_list_exchange",
|
|
496
|
+
description: "Get unique exchange values for futures",
|
|
497
|
+
inputSchema: { type: "object", properties: {} }
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "futures_list_currency",
|
|
501
|
+
description: "Get unique currency values for futures",
|
|
502
|
+
inputSchema: { type: "object", properties: {} }
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
name: "futures_list_timezone",
|
|
506
|
+
description: "Get unique timezone values for futures",
|
|
507
|
+
inputSchema: { type: "object", properties: {} }
|
|
508
|
+
},
|
|
509
|
+
{
|
|
510
|
+
name: "futures_list_country",
|
|
511
|
+
description: "Get unique country values for futures",
|
|
512
|
+
inputSchema: { type: "object", properties: {} }
|
|
513
|
+
},
|
|
295
514
|
{
|
|
296
515
|
name: "futures_quote",
|
|
297
|
-
description: "Get
|
|
516
|
+
description: "Get a futures contract quote",
|
|
298
517
|
inputSchema: {
|
|
299
518
|
type: "object",
|
|
300
519
|
properties: {
|
|
@@ -329,9 +548,34 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
329
548
|
}
|
|
330
549
|
}
|
|
331
550
|
},
|
|
551
|
+
{
|
|
552
|
+
name: "indices_gainers",
|
|
553
|
+
description: "Get top index gainers",
|
|
554
|
+
inputSchema: { type: "object", properties: {} }
|
|
555
|
+
},
|
|
556
|
+
{
|
|
557
|
+
name: "indices_losers",
|
|
558
|
+
description: "Get top index losers",
|
|
559
|
+
inputSchema: { type: "object", properties: {} }
|
|
560
|
+
},
|
|
561
|
+
{
|
|
562
|
+
name: "indices_list_exchange",
|
|
563
|
+
description: "Get unique exchange values for indices",
|
|
564
|
+
inputSchema: { type: "object", properties: {} }
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: "indices_list_timezone",
|
|
568
|
+
description: "Get unique timezone values for indices",
|
|
569
|
+
inputSchema: { type: "object", properties: {} }
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
name: "indices_list_country",
|
|
573
|
+
description: "Get unique country values for indices",
|
|
574
|
+
inputSchema: { type: "object", properties: {} }
|
|
575
|
+
},
|
|
332
576
|
{
|
|
333
577
|
name: "indices_quote",
|
|
334
|
-
description: "Get
|
|
578
|
+
description: "Get an index quote",
|
|
335
579
|
inputSchema: {
|
|
336
580
|
type: "object",
|
|
337
581
|
properties: {
|
|
@@ -354,6 +598,28 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
354
598
|
required: ["ticker"]
|
|
355
599
|
}
|
|
356
600
|
},
|
|
601
|
+
{
|
|
602
|
+
name: "indices_components",
|
|
603
|
+
description: "Get the component stocks that make up an index",
|
|
604
|
+
inputSchema: {
|
|
605
|
+
type: "object",
|
|
606
|
+
properties: {
|
|
607
|
+
ticker: { type: "string", description: "Index ticker (e.g., 'SPX', 'AXJO')" }
|
|
608
|
+
},
|
|
609
|
+
required: ["ticker"]
|
|
610
|
+
}
|
|
611
|
+
},
|
|
612
|
+
{
|
|
613
|
+
name: "indices_exposure",
|
|
614
|
+
description: "Find which indices hold a specific ticker as a component",
|
|
615
|
+
inputSchema: {
|
|
616
|
+
type: "object",
|
|
617
|
+
properties: {
|
|
618
|
+
ticker: { type: "string", description: "Stock ticker to find index exposure for" }
|
|
619
|
+
},
|
|
620
|
+
required: ["ticker"]
|
|
621
|
+
}
|
|
622
|
+
},
|
|
357
623
|
|
|
358
624
|
// ---------- Economics ----------
|
|
359
625
|
{
|
|
@@ -389,10 +655,22 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
389
655
|
country: { type: "string", description: "Country code(s) comma-separated" },
|
|
390
656
|
minImportance: { type: "integer", minimum: -1, maximum: 3, description: "Minimum importance (0-3)" },
|
|
391
657
|
currency: { type: "string", description: "Currency code(s) comma-separated" },
|
|
392
|
-
category: { type: "string", description: "Category (e.g., 'gov', 'infl')" }
|
|
658
|
+
category: { type: "string", description: "Category (e.g., 'gov', 'infl')" },
|
|
659
|
+
limit: { type: "integer", description: "Number of events to return (default 10)" }
|
|
393
660
|
}
|
|
394
661
|
}
|
|
395
662
|
},
|
|
663
|
+
{
|
|
664
|
+
name: "econ_find",
|
|
665
|
+
description: "Find economic datasets using natural language description (AI-powered)",
|
|
666
|
+
inputSchema: {
|
|
667
|
+
type: "object",
|
|
668
|
+
properties: {
|
|
669
|
+
query: { type: "string", description: "Natural language description of the data you need" }
|
|
670
|
+
},
|
|
671
|
+
required: ["query"]
|
|
672
|
+
}
|
|
673
|
+
},
|
|
396
674
|
|
|
397
675
|
// ---------- News ----------
|
|
398
676
|
{
|
|
@@ -433,6 +711,17 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
433
711
|
required: ["category"]
|
|
434
712
|
}
|
|
435
713
|
},
|
|
714
|
+
{
|
|
715
|
+
name: "news_article",
|
|
716
|
+
description: "Get the full URL for a news article by its encoded ID",
|
|
717
|
+
inputSchema: {
|
|
718
|
+
type: "object",
|
|
719
|
+
properties: {
|
|
720
|
+
id: { type: "string", description: "Article ID from news results" }
|
|
721
|
+
},
|
|
722
|
+
required: ["id"]
|
|
723
|
+
}
|
|
724
|
+
},
|
|
436
725
|
|
|
437
726
|
// ---------- Sentiment ----------
|
|
438
727
|
{
|
|
@@ -595,6 +884,32 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
595
884
|
required: ["ticker", "year", "quarter"]
|
|
596
885
|
}
|
|
597
886
|
},
|
|
887
|
+
{
|
|
888
|
+
name: "earnings_transcript",
|
|
889
|
+
description: "Get earnings call transcript for a ticker, year, and quarter",
|
|
890
|
+
inputSchema: {
|
|
891
|
+
type: "object",
|
|
892
|
+
properties: {
|
|
893
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
894
|
+
year: { type: "string", description: "Year (e.g., '2024')" },
|
|
895
|
+
quarter: { type: "string", description: "Quarter (e.g., '2')" }
|
|
896
|
+
},
|
|
897
|
+
required: ["ticker", "year", "quarter"]
|
|
898
|
+
}
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
name: "earnings_transcript_sentiment",
|
|
902
|
+
description: "Get sentiment analysis of an earnings call transcript",
|
|
903
|
+
inputSchema: {
|
|
904
|
+
type: "object",
|
|
905
|
+
properties: {
|
|
906
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
907
|
+
year: { type: "string", description: "Year (e.g., '2024')" },
|
|
908
|
+
quarter: { type: "string", description: "Quarter (e.g., '2')" }
|
|
909
|
+
},
|
|
910
|
+
required: ["ticker", "year", "quarter"]
|
|
911
|
+
}
|
|
912
|
+
},
|
|
598
913
|
|
|
599
914
|
// ---------- Filings ----------
|
|
600
915
|
{
|
|
@@ -644,6 +959,28 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
644
959
|
required: ["year", "quarter"]
|
|
645
960
|
}
|
|
646
961
|
},
|
|
962
|
+
{
|
|
963
|
+
name: "filings_document_text",
|
|
964
|
+
description: "Get the full text of an SEC filing document by its document ID",
|
|
965
|
+
inputSchema: {
|
|
966
|
+
type: "object",
|
|
967
|
+
properties: {
|
|
968
|
+
documentId: { type: "string", description: "Document ID (base64-encoded URL) from filing results" }
|
|
969
|
+
},
|
|
970
|
+
required: ["documentId"]
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
{
|
|
974
|
+
name: "filings_document_sentiment",
|
|
975
|
+
description: "Get sentiment analysis of an SEC filing document",
|
|
976
|
+
inputSchema: {
|
|
977
|
+
type: "object",
|
|
978
|
+
properties: {
|
|
979
|
+
documentId: { type: "string", description: "Document ID (base64-encoded URL) from filing results" }
|
|
980
|
+
},
|
|
981
|
+
required: ["documentId"]
|
|
982
|
+
}
|
|
983
|
+
},
|
|
647
984
|
|
|
648
985
|
// ---------- Financials ----------
|
|
649
986
|
{
|
|
@@ -812,6 +1149,45 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
|
812
1149
|
required: ["ticker"]
|
|
813
1150
|
}
|
|
814
1151
|
},
|
|
1152
|
+
{
|
|
1153
|
+
name: "financials_balance_sheet",
|
|
1154
|
+
description: "Get balance sheet statement for a ticker (optionally by year/quarter)",
|
|
1155
|
+
inputSchema: {
|
|
1156
|
+
type: "object",
|
|
1157
|
+
properties: {
|
|
1158
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1159
|
+
year: { type: "integer", description: "Year (e.g., 2024)" },
|
|
1160
|
+
quarter: { type: "integer", description: "Quarter (1-4)" }
|
|
1161
|
+
},
|
|
1162
|
+
required: ["ticker"]
|
|
1163
|
+
}
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
name: "financials_income_statement",
|
|
1167
|
+
description: "Get income statement for a ticker (optionally by year/quarter)",
|
|
1168
|
+
inputSchema: {
|
|
1169
|
+
type: "object",
|
|
1170
|
+
properties: {
|
|
1171
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1172
|
+
year: { type: "integer", description: "Year (e.g., 2024)" },
|
|
1173
|
+
quarter: { type: "integer", description: "Quarter (1-4)" }
|
|
1174
|
+
},
|
|
1175
|
+
required: ["ticker"]
|
|
1176
|
+
}
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
name: "financials_cash_flow_statement",
|
|
1180
|
+
description: "Get cash flow statement for a ticker (optionally by year/quarter)",
|
|
1181
|
+
inputSchema: {
|
|
1182
|
+
type: "object",
|
|
1183
|
+
properties: {
|
|
1184
|
+
ticker: { type: "string", description: "Stock ticker" },
|
|
1185
|
+
year: { type: "integer", description: "Year (e.g., 2024)" },
|
|
1186
|
+
quarter: { type: "integer", description: "Quarter (1-4)" }
|
|
1187
|
+
},
|
|
1188
|
+
required: ["ticker"]
|
|
1189
|
+
}
|
|
1190
|
+
},
|
|
815
1191
|
|
|
816
1192
|
// ---------- Insiders / Ownership ----------
|
|
817
1193
|
{
|
|
@@ -921,6 +1297,51 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
921
1297
|
}
|
|
922
1298
|
|
|
923
1299
|
// ---------- ETF (plural endpoints) ----------
|
|
1300
|
+
|
|
1301
|
+
else if (name === "etf_tickers") {
|
|
1302
|
+
endpoint = `etfs/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
|
|
1303
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1304
|
+
}
|
|
1305
|
+
else if (name === "etf_gainers") {
|
|
1306
|
+
endpoint = `etfs/gainers`;
|
|
1307
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1308
|
+
}
|
|
1309
|
+
else if (name === "etf_losers") {
|
|
1310
|
+
endpoint = `etfs/losers`;
|
|
1311
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1312
|
+
}
|
|
1313
|
+
else if (name === "etf_list_market") {
|
|
1314
|
+
endpoint = `etfs/list/market`;
|
|
1315
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1316
|
+
}
|
|
1317
|
+
else if (name === "etf_list_country") {
|
|
1318
|
+
endpoint = `etfs/list/country`;
|
|
1319
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1320
|
+
}
|
|
1321
|
+
else if (name === "etf_list_currency") {
|
|
1322
|
+
endpoint = `etfs/list/currency`;
|
|
1323
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1324
|
+
}
|
|
1325
|
+
else if (name === "etf_list_sector") {
|
|
1326
|
+
endpoint = `etfs/list/sector`;
|
|
1327
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1328
|
+
}
|
|
1329
|
+
else if (name === "etf_list_industry") {
|
|
1330
|
+
endpoint = `etfs/list/industry`;
|
|
1331
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1332
|
+
}
|
|
1333
|
+
else if (name === "etf_list_type") {
|
|
1334
|
+
endpoint = `etfs/list/type`;
|
|
1335
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1336
|
+
}
|
|
1337
|
+
else if (name === "etf_quote") {
|
|
1338
|
+
endpoint = `etfs/${args.ticker}/quote`;
|
|
1339
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1340
|
+
}
|
|
1341
|
+
else if (name === "etf_prices") {
|
|
1342
|
+
endpoint = `etfs/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1343
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1344
|
+
}
|
|
924
1345
|
else if (name === "etf_fund") {
|
|
925
1346
|
endpoint = `etfs/${args.ticker}/fund`;
|
|
926
1347
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
@@ -929,10 +1350,19 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
929
1350
|
endpoint = `etfs/${args.ticker}/holdings`;
|
|
930
1351
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
931
1352
|
}
|
|
1353
|
+
else if (name === "etf_holdings_all") {
|
|
1354
|
+
endpoint = `etfs/${args.ticker}/holdings/all`;
|
|
1355
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1356
|
+
}
|
|
932
1357
|
else if (name === "etf_exposure") {
|
|
933
1358
|
endpoint = `etfs/${args.ticker}/exposure`;
|
|
934
1359
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
935
1360
|
}
|
|
1361
|
+
else if (name === "etf_weights") {
|
|
1362
|
+
endpoint = `etfs/${args.ticker}/weights`;
|
|
1363
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1364
|
+
}
|
|
1365
|
+
|
|
936
1366
|
|
|
937
1367
|
// ---------- Supply Chain ----------
|
|
938
1368
|
else if (name === "supply_chain_customers") {
|
|
@@ -953,8 +1383,40 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
953
1383
|
endpoint = `stocks/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
|
|
954
1384
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
955
1385
|
}
|
|
1386
|
+
else if (name === "stocks_gainers") {
|
|
1387
|
+
endpoint = `stocks/gainers`;
|
|
1388
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1389
|
+
}
|
|
1390
|
+
else if (name === "stocks_losers") {
|
|
1391
|
+
endpoint = `stocks/losers`;
|
|
1392
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1393
|
+
}
|
|
1394
|
+
else if (name === "stocks_list_market") {
|
|
1395
|
+
endpoint = `stocks/list/market`;
|
|
1396
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1397
|
+
}
|
|
1398
|
+
else if (name === "stocks_list_country") {
|
|
1399
|
+
endpoint = `stocks/list/country`;
|
|
1400
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1401
|
+
}
|
|
1402
|
+
else if (name === "stocks_list_currency") {
|
|
1403
|
+
endpoint = `stocks/list/currency`;
|
|
1404
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1405
|
+
}
|
|
1406
|
+
else if (name === "stocks_list_sector") {
|
|
1407
|
+
endpoint = `stocks/list/sector`;
|
|
1408
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1409
|
+
}
|
|
1410
|
+
else if (name === "stocks_list_industry") {
|
|
1411
|
+
endpoint = `stocks/list/industry`;
|
|
1412
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1413
|
+
}
|
|
1414
|
+
else if (name === "stocks_list_type") {
|
|
1415
|
+
endpoint = `stocks/list/type`;
|
|
1416
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1417
|
+
}
|
|
956
1418
|
else if (name === "stocks_quote") {
|
|
957
|
-
endpoint = `stocks/${args.ticker}`;
|
|
1419
|
+
endpoint = `stocks/${args.ticker}/quote`;
|
|
958
1420
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
959
1421
|
}
|
|
960
1422
|
else if (name === "stocks_prices") {
|
|
@@ -967,8 +1429,28 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
967
1429
|
endpoint = `crypto/tickers${buildQueryString({ type: args.type })}`;
|
|
968
1430
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
969
1431
|
}
|
|
1432
|
+
else if (name === "crypto_gainers") {
|
|
1433
|
+
endpoint = `crypto/gainers`;
|
|
1434
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1435
|
+
}
|
|
1436
|
+
else if (name === "crypto_losers") {
|
|
1437
|
+
endpoint = `crypto/losers`;
|
|
1438
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1439
|
+
}
|
|
1440
|
+
else if (name === "crypto_list_category") {
|
|
1441
|
+
endpoint = `crypto/list/category`;
|
|
1442
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1443
|
+
}
|
|
1444
|
+
else if (name === "crypto_list_rating") {
|
|
1445
|
+
endpoint = `crypto/list/rating`;
|
|
1446
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1447
|
+
}
|
|
1448
|
+
else if (name === "crypto_list_type") {
|
|
1449
|
+
endpoint = `crypto/list/type`;
|
|
1450
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1451
|
+
}
|
|
970
1452
|
else if (name === "crypto_quote") {
|
|
971
|
-
endpoint = `crypto/${args.ticker}`;
|
|
1453
|
+
endpoint = `crypto/${args.ticker}/quote`;
|
|
972
1454
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
973
1455
|
}
|
|
974
1456
|
else if (name === "crypto_prices") {
|
|
@@ -981,8 +1463,28 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
981
1463
|
endpoint = `forex/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
|
|
982
1464
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
983
1465
|
}
|
|
1466
|
+
else if (name === "forex_gainers") {
|
|
1467
|
+
endpoint = `forex/gainers`;
|
|
1468
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1469
|
+
}
|
|
1470
|
+
else if (name === "forex_losers") {
|
|
1471
|
+
endpoint = `forex/losers`;
|
|
1472
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1473
|
+
}
|
|
1474
|
+
else if (name === "forex_list_exchange") {
|
|
1475
|
+
endpoint = `forex/list/exchange`;
|
|
1476
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1477
|
+
}
|
|
1478
|
+
else if (name === "forex_list_rating") {
|
|
1479
|
+
endpoint = `forex/list/rating`;
|
|
1480
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1481
|
+
}
|
|
1482
|
+
else if (name === "forex_list_country") {
|
|
1483
|
+
endpoint = `forex/list/country`;
|
|
1484
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1485
|
+
}
|
|
984
1486
|
else if (name === "forex_quote") {
|
|
985
|
-
endpoint = `forex/${args.ticker}`;
|
|
1487
|
+
endpoint = `forex/${args.ticker}/quote`;
|
|
986
1488
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
987
1489
|
}
|
|
988
1490
|
else if (name === "forex_prices") {
|
|
@@ -995,8 +1497,32 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
995
1497
|
endpoint = `futures/tickers${buildQueryString({ exchange: args.exchange })}`;
|
|
996
1498
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
997
1499
|
}
|
|
1500
|
+
else if (name === "futures_gainers") {
|
|
1501
|
+
endpoint = `futures/gainers`;
|
|
1502
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1503
|
+
}
|
|
1504
|
+
else if (name === "futures_losers") {
|
|
1505
|
+
endpoint = `futures/losers`;
|
|
1506
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1507
|
+
}
|
|
1508
|
+
else if (name === "futures_list_exchange") {
|
|
1509
|
+
endpoint = `futures/list/exchange`;
|
|
1510
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1511
|
+
}
|
|
1512
|
+
else if (name === "futures_list_currency") {
|
|
1513
|
+
endpoint = `futures/list/currency`;
|
|
1514
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1515
|
+
}
|
|
1516
|
+
else if (name === "futures_list_timezone") {
|
|
1517
|
+
endpoint = `futures/list/timezone`;
|
|
1518
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1519
|
+
}
|
|
1520
|
+
else if (name === "futures_list_country") {
|
|
1521
|
+
endpoint = `futures/list/country`;
|
|
1522
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1523
|
+
}
|
|
998
1524
|
else if (name === "futures_quote") {
|
|
999
|
-
endpoint = `futures/${args.ticker}`;
|
|
1525
|
+
endpoint = `futures/${args.ticker}/quote`;
|
|
1000
1526
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1001
1527
|
}
|
|
1002
1528
|
else if (name === "futures_prices") {
|
|
@@ -1009,14 +1535,42 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1009
1535
|
endpoint = `indices/tickers${buildQueryString({ exchange: args.exchange })}`;
|
|
1010
1536
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1011
1537
|
}
|
|
1538
|
+
else if (name === "indices_gainers") {
|
|
1539
|
+
endpoint = `indices/gainers`;
|
|
1540
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1541
|
+
}
|
|
1542
|
+
else if (name === "indices_losers") {
|
|
1543
|
+
endpoint = `indices/losers`;
|
|
1544
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1545
|
+
}
|
|
1546
|
+
else if (name === "indices_list_exchange") {
|
|
1547
|
+
endpoint = `indices/list/exchange`;
|
|
1548
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1549
|
+
}
|
|
1550
|
+
else if (name === "indices_list_timezone") {
|
|
1551
|
+
endpoint = `indices/list/timezone`;
|
|
1552
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1553
|
+
}
|
|
1554
|
+
else if (name === "indices_list_country") {
|
|
1555
|
+
endpoint = `indices/list/country`;
|
|
1556
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1557
|
+
}
|
|
1012
1558
|
else if (name === "indices_quote") {
|
|
1013
|
-
endpoint = `indices/${args.ticker}`;
|
|
1559
|
+
endpoint = `indices/${args.ticker}/quote`;
|
|
1014
1560
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1015
1561
|
}
|
|
1016
1562
|
else if (name === "indices_prices") {
|
|
1017
1563
|
endpoint = `indices/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
|
|
1018
1564
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1019
1565
|
}
|
|
1566
|
+
else if (name === "indices_components") {
|
|
1567
|
+
endpoint = `indices/${args.ticker}/components`;
|
|
1568
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1569
|
+
}
|
|
1570
|
+
else if (name === "indices_exposure") {
|
|
1571
|
+
endpoint = `indices/${args.ticker}/exposure`;
|
|
1572
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1573
|
+
}
|
|
1020
1574
|
|
|
1021
1575
|
// ---------- Economics ----------
|
|
1022
1576
|
else if (name === "econ_search") {
|
|
@@ -1034,10 +1588,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1034
1588
|
country: args.country,
|
|
1035
1589
|
minImportance: args.minImportance,
|
|
1036
1590
|
currency: args.currency,
|
|
1037
|
-
category: args.category
|
|
1591
|
+
category: args.category,
|
|
1592
|
+
limit: args.limit
|
|
1038
1593
|
})}`;
|
|
1039
1594
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1040
1595
|
}
|
|
1596
|
+
else if (name === "econ_find") {
|
|
1597
|
+
endpoint = `econ/find${buildQueryString({ query: args.query })}`;
|
|
1598
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1599
|
+
}
|
|
1041
1600
|
|
|
1042
1601
|
// ---------- News ----------
|
|
1043
1602
|
else if (name === "news_general") {
|
|
@@ -1056,6 +1615,10 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1056
1615
|
endpoint = `news/category/${encodeURIComponent(args.category)}`;
|
|
1057
1616
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1058
1617
|
}
|
|
1618
|
+
else if (name === "news_article") {
|
|
1619
|
+
endpoint = `news/article/${args.id}`;
|
|
1620
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1621
|
+
}
|
|
1059
1622
|
|
|
1060
1623
|
// ---------- Sentiment ----------
|
|
1061
1624
|
else if (name === "sentiment_all") {
|
|
@@ -1118,6 +1681,15 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1118
1681
|
endpoint = `earnings/${args.ticker}/report${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1119
1682
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1120
1683
|
}
|
|
1684
|
+
else if (name === "earnings_transcript") {
|
|
1685
|
+
endpoint = `earnings/${args.ticker}/transcript${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1686
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1687
|
+
}
|
|
1688
|
+
else if (name === "earnings_transcript_sentiment") {
|
|
1689
|
+
const id = btoa(JSON.stringify({ ticker: args.ticker, year: args.year, quarter: args.quarter }));
|
|
1690
|
+
endpoint = `earnings/transcript/sentiment${buildQueryString({ id })}`;
|
|
1691
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1692
|
+
}
|
|
1121
1693
|
|
|
1122
1694
|
// ---------- Filings ----------
|
|
1123
1695
|
else if (name === "filings_recent") {
|
|
@@ -1136,6 +1708,14 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1136
1708
|
endpoint = `filings/search${buildQueryString({ year: args.year, quarter: args.quarter, form: args.form, ticker: args.ticker })}`;
|
|
1137
1709
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1138
1710
|
}
|
|
1711
|
+
else if (name === "filings_document_text") {
|
|
1712
|
+
endpoint = `filings/document/text${buildQueryString({ documentId: args.documentId })}`;
|
|
1713
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1714
|
+
}
|
|
1715
|
+
else if (name === "filings_document_sentiment") {
|
|
1716
|
+
endpoint = `filings/document/sentiment${buildQueryString({ documentId: args.documentId })}`;
|
|
1717
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1718
|
+
}
|
|
1139
1719
|
|
|
1140
1720
|
// ---------- Financials ----------
|
|
1141
1721
|
else if (name === "financials_revenue") {
|
|
@@ -1194,6 +1774,18 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
|
|
|
1194
1774
|
endpoint = `financials/${args.ticker}/snapshot`;
|
|
1195
1775
|
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1196
1776
|
}
|
|
1777
|
+
else if (name === "financials_balance_sheet") {
|
|
1778
|
+
endpoint = `financials/statements/${args.ticker}/balance${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1779
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1780
|
+
}
|
|
1781
|
+
else if (name === "financials_income_statement") {
|
|
1782
|
+
endpoint = `financials/statements/${args.ticker}/income${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1783
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1784
|
+
}
|
|
1785
|
+
else if (name === "financials_cash_flow_statement") {
|
|
1786
|
+
endpoint = `financials/statements/${args.ticker}/cashflow${buildQueryString({ year: args.year, quarter: args.quarter })}`;
|
|
1787
|
+
result = await makeApiRequest(endpoint, { method: 'GET' });
|
|
1788
|
+
}
|
|
1197
1789
|
|
|
1198
1790
|
// ---------- Insiders ----------
|
|
1199
1791
|
else if (name === "insiders_funds") {
|