@axionquant/mcp 1.0.2 → 1.0.4

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 (3) hide show
  1. package/README.md +167 -110
  2. package/index.js +723 -821
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -40,19 +40,16 @@ async function makeApiRequest(endpoint, options = {}) {
40
40
  */
41
41
  function buildQueryString(params) {
42
42
  const filtered = Object.entries(params || {})
43
- .filter(([_, value]) => value !== undefined && value !== null && value !== '')
44
- .map(([key, value]) => `${key}=${encodeURIComponent(value)}`);
43
+ .filter(([_, value]) => value !== undefined && value !== null && value !== '')
44
+ .map(([key, value]) => `${key}=${encodeURIComponent(value)}`);
45
45
 
46
46
  return filtered.length > 0 ? `?${filtered.join('&')}` : '';
47
47
  }
48
48
 
49
- /**
50
- * Create the MCP server
51
- */
52
49
  const server = new Server(
53
50
  {
54
51
  name: "axion-financial-data",
55
- version: "1.0.0",
52
+ version: "2.0.0",
56
53
  },
57
54
  {
58
55
  capabilities: {
@@ -61,23 +58,19 @@ const server = new Server(
61
58
  }
62
59
  );
63
60
 
64
- /**
65
- * List all available tools
66
- */
67
61
  server.setRequestHandler(ListToolsRequestSchema, async () => {
68
62
  return {
69
63
  tools: [
64
+ // ---------- Credit ----------
70
65
  {
71
66
  name: "credit_search",
72
- description: "Search for credit entities by name, sector, country, or state",
67
+ description: "Search for credit entities by organization name",
73
68
  inputSchema: {
74
69
  type: "object",
75
70
  properties: {
76
- query: {
77
- type: "string",
78
- description: "Search query (organization name)"
79
- },
80
- }
71
+ query: { type: "string", description: "Organization name to search" }
72
+ },
73
+ required: ["query"]
81
74
  }
82
75
  },
83
76
  {
@@ -86,788 +79,824 @@ server.setRequestHandler(ListToolsRequestSchema, async () => {
86
79
  inputSchema: {
87
80
  type: "object",
88
81
  properties: {
89
- id: {
90
- type: "string",
91
- description: "Organization ID (from search results)"
92
- }
82
+ id: { type: "string", description: "Organization ID from search results" }
93
83
  },
94
84
  required: ["id"]
95
85
  }
96
86
  },
87
+
88
+ // ---------- ESG ----------
97
89
  {
98
- name: "econ_search",
99
- description: "Search for economic datasets (FRED)",
90
+ name: "esg_data",
91
+ description: "Get ESG scores for a specific ticker",
100
92
  inputSchema: {
101
93
  type: "object",
102
94
  properties: {
103
- query: {
104
- type: "string",
105
- description: "Search query for economic indicators"
106
- }
95
+ ticker: { type: "string", description: "Stock ticker (e.g., AAPL)" }
107
96
  },
108
- required: ["query"]
97
+ required: ["ticker"]
109
98
  }
110
99
  },
100
+
101
+ // ---------- ETF (note plural endpoints) ----------
111
102
  {
112
- name: "econ_dataset",
113
- description: "Get economic dataset time series data by ID",
103
+ name: "etf_fund",
104
+ description: "Get ETF fund information including ratings and metrics",
114
105
  inputSchema: {
115
106
  type: "object",
116
107
  properties: {
117
- id: {
118
- type: "string",
119
- description: "Dataset ID (from search results, e.g., 'PMAIZMTUSDM')"
120
- }
108
+ ticker: { type: "string", description: "ETF ticker (e.g., SPY)" }
121
109
  },
122
- required: ["id"]
110
+ required: ["ticker"]
123
111
  }
124
112
  },
125
113
  {
126
- name: "econ_calendar",
127
- description: "Get economic calendar events with filtering options",
128
- inputSchema: {
129
- type: "object",
130
- properties: {
131
- from: {
132
- type: "string",
133
- description: "Start date (YYYY-MM-DD)"
134
- },
135
- to: {
136
- type: "string",
137
- description: "End date (YYYY-MM-DD)"
138
- },
139
- country: {
140
- type: "string",
141
- description: "Country code or comma-separated list (e.g., 'US' or 'US,GB,JP')"
142
- },
143
- minImportance: {
144
- type: "integer",
145
- description: "Minimum importance level (0-3, where 3 is highest)",
146
- minimum: -1,
147
- maximum: 3
148
- },
149
- currency: {
150
- type: "string",
151
- description: "Currency code or comma-separated list (e.g., 'USD' or 'USD,EUR,GBP')"
152
- },
153
- category: {
154
- type: "string",
155
- description: "Category or comma-separated list (e.g., 'gov' or 'gov,infl')"
156
- }
157
- }
114
+ name: "etf_holdings",
115
+ description: "Get ETF top holdings with weights, shares, and market value",
116
+ inputSchema: {
117
+ type: "object",
118
+ properties: {
119
+ ticker: { type: "string", description: "ETF ticker (e.g., SPY)" }
120
+ },
121
+ required: ["ticker"]
158
122
  }
159
123
  },
160
124
  {
161
- name: "esg_data",
162
- description: "Get ESG (Environmental, Social, Governance) scores for a specific ticker",
125
+ name: "etf_exposure",
126
+ description: "Find which ETFs hold a specific stock ticker",
163
127
  inputSchema: {
164
128
  type: "object",
165
129
  properties: {
166
- ticker: {
167
- type: "string",
168
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
169
- }
130
+ ticker: { type: "string", description: "Stock ticker (e.g., AAPL)" }
170
131
  },
171
132
  required: ["ticker"]
172
133
  }
173
134
  },
135
+
136
+ // ---------- Supply Chain ----------
174
137
  {
175
- name: "etf_fund",
176
- description: "Get ETF fund information including ratings, metrics, and classification",
138
+ name: "supply_chain_customers",
139
+ description: "Get supply chain customers for a company",
177
140
  inputSchema: {
178
141
  type: "object",
179
142
  properties: {
180
- ticker: {
181
- type: "string",
182
- description: "ETF ticker symbol (e.g., 'SPY' for SPDR S&P 500 ETF Trust)"
183
- }
143
+ ticker: { type: "string", description: "Stock ticker" }
184
144
  },
185
145
  required: ["ticker"]
186
146
  }
187
147
  },
188
148
  {
189
- name: "etf_weights",
190
- description: "Get ETF sector and region allocation weights",
149
+ name: "supply_chain_peers",
150
+ description: "Get supply chain competitors for a company",
191
151
  inputSchema: {
192
152
  type: "object",
193
153
  properties: {
194
- ticker: {
195
- type: "string",
196
- description: "ETF ticker symbol (e.g., 'SPY' for SPDR S&P 500 ETF Trust)"
197
- }
154
+ ticker: { type: "string", description: "Stock ticker" }
198
155
  },
199
156
  required: ["ticker"]
200
157
  }
201
158
  },
202
159
  {
203
- name: "etf_holdings",
204
- description: "Get ETF top holdings including weight, shares, and market value",
160
+ name: "supply_chain_suppliers",
161
+ description: "Get supply chain suppliers for a company",
205
162
  inputSchema: {
206
163
  type: "object",
207
164
  properties: {
208
- ticker: {
209
- type: "string",
210
- description: "ETF ticker symbol (e.g., 'SPY' for SPDR S&P 500 ETF Trust)"
211
- }
165
+ ticker: { type: "string", description: "Stock ticker" }
212
166
  },
213
167
  required: ["ticker"]
214
168
  }
215
169
  },
170
+
171
+ // ---------- Stocks ----------
216
172
  {
217
- name: "etf_exposure",
218
- description: "Get which other ETFs hold a specific ticker (inverse exposure)",
173
+ name: "stocks_tickers",
174
+ description: "List stock tickers, optionally filtered by country or exchange",
219
175
  inputSchema: {
220
176
  type: "object",
221
177
  properties: {
222
- ticker: {
223
- type: "string",
224
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple) to find ETFs that hold it"
225
- }
178
+ country: { type: "string", description: "Filter by country (e.g., 'america')" },
179
+ exchange: { type: "string", description: "Filter by exchange (e.g., 'NASDAQ')" }
180
+ }
181
+ }
182
+ },
183
+ {
184
+ name: "stocks_quote",
185
+ description: "Get current details for a stock ticker",
186
+ inputSchema: {
187
+ type: "object",
188
+ properties: {
189
+ ticker: { type: "string", description: "Stock ticker (e.g., AAPL)" }
226
190
  },
227
191
  required: ["ticker"]
228
192
  }
229
193
  },
230
- // News tools
231
194
  {
232
- name: "news_ticker",
233
- description: "Get news for a specific company by ticker symbol",
195
+ name: "stocks_prices",
196
+ description: "Get historical price data for a stock",
234
197
  inputSchema: {
235
198
  type: "object",
236
199
  properties: {
237
- ticker: {
238
- type: "string",
239
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
240
- }
200
+ ticker: { type: "string", description: "Stock ticker" },
201
+ from: { type: "string", description: "Start date (YYYY-MM-DD)" },
202
+ to: { type: "string", description: "End date (YYYY-MM-DD)" },
203
+ frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
241
204
  },
242
205
  required: ["ticker"]
243
206
  }
244
207
  },
208
+
209
+ // ---------- Crypto ----------
245
210
  {
246
- name: "news_country",
247
- description: "Get news for a specific country",
211
+ name: "crypto_tickers",
212
+ description: "List cryptocurrency tickers, optionally filtered by type",
248
213
  inputSchema: {
249
214
  type: "object",
250
215
  properties: {
251
- country: {
252
- type: "string",
253
- description: "Country name or code (e.g., 'US', 'United States')"
254
- }
216
+ type: { type: "string", description: "Filter by type (e.g., 'spot')" }
217
+ }
218
+ }
219
+ },
220
+ {
221
+ name: "crypto_quote",
222
+ description: "Get current details for a cryptocurrency",
223
+ inputSchema: {
224
+ type: "object",
225
+ properties: {
226
+ ticker: { type: "string", description: "Crypto ticker (e.g., BTC)" }
255
227
  },
256
- required: ["country"]
228
+ required: ["ticker"]
257
229
  }
258
230
  },
259
231
  {
260
- name: "news_category",
261
- description: "Get news for a specific category",
232
+ name: "crypto_prices",
233
+ description: "Get historical price data for a cryptocurrency",
262
234
  inputSchema: {
263
235
  type: "object",
264
236
  properties: {
265
- category: {
266
- type: "string",
267
- description: "News category (e.g., 'business', 'technology', 'politics')"
268
- }
237
+ ticker: { type: "string", description: "Crypto ticker" },
238
+ from: { type: "string", description: "Start date (YYYY-MM-DD)" },
239
+ to: { type: "string", description: "End date (YYYY-MM-DD)" },
240
+ frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
269
241
  },
270
- required: ["category"]
242
+ required: ["ticker"]
271
243
  }
272
244
  },
245
+
246
+ // ---------- Forex ----------
273
247
  {
274
- name: "news_general",
275
- description: "Get general news headlines",
248
+ name: "forex_tickers",
249
+ description: "List forex tickers, optionally filtered by country or exchange",
276
250
  inputSchema: {
277
251
  type: "object",
278
- properties: {}
252
+ properties: {
253
+ country: { type: "string", description: "Country code (e.g., 'US', 'AE')" },
254
+ exchange: { type: "string", description: "Exchange (e.g., 'IDC')" }
255
+ }
279
256
  }
280
257
  },
281
- // Sentiment analysis tools
282
258
  {
283
- name: "sentiment_social",
284
- description: "Get social media sentiment for a specific ticker (from Google, Reddit, Twitter)",
259
+ name: "forex_quote",
260
+ description: "Get current details for a forex pair",
285
261
  inputSchema: {
286
262
  type: "object",
287
263
  properties: {
288
- ticker: {
289
- type: "string",
290
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
291
- }
264
+ ticker: { type: "string", description: "Forex ticker (e.g., EURUSD)" }
292
265
  },
293
266
  required: ["ticker"]
294
267
  }
295
268
  },
296
269
  {
297
- name: "sentiment_news",
298
- description: "Get news sentiment for a specific ticker",
270
+ name: "forex_prices",
271
+ description: "Get historical price data for a forex pair",
299
272
  inputSchema: {
300
273
  type: "object",
301
274
  properties: {
302
- ticker: {
303
- type: "string",
304
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
305
- }
275
+ ticker: { type: "string", description: "Forex ticker" },
276
+ from: { type: "string", description: "Start date (YYYY-MM-DD)" },
277
+ to: { type: "string", description: "End date (YYYY-MM-DD)" },
278
+ frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
306
279
  },
307
280
  required: ["ticker"]
308
281
  }
309
282
  },
283
+
284
+ // ---------- Futures (renamed from 'future' to 'futures') ----------
310
285
  {
311
- name: "sentiment_analyst",
312
- description: "Get analyst/AI sentiment for a specific ticker",
286
+ name: "futures_tickers",
287
+ description: "List futures tickers, optionally filtered by exchange",
288
+ inputSchema: {
289
+ type: "object",
290
+ properties: {
291
+ exchange: { type: "string", description: "Exchange (e.g., 'CME', 'CMX')" }
292
+ }
293
+ }
294
+ },
295
+ {
296
+ name: "futures_quote",
297
+ description: "Get current details for a futures contract",
313
298
  inputSchema: {
314
299
  type: "object",
315
300
  properties: {
316
- ticker: {
317
- type: "string",
318
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
319
- }
301
+ ticker: { type: "string", description: "Futures ticker (e.g., 'ALI', 'M6A')" }
320
302
  },
321
303
  required: ["ticker"]
322
304
  }
323
305
  },
324
- // Supply chain tools
325
306
  {
326
- name: "supply_chain_customers",
327
- description: "Get supply chain customers for a specific company by ticker symbol",
307
+ name: "futures_prices",
308
+ description: "Get historical price data for a futures contract",
328
309
  inputSchema: {
329
310
  type: "object",
330
311
  properties: {
331
- ticker: {
332
- type: "string",
333
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
334
- }
312
+ ticker: { type: "string", description: "Futures ticker" },
313
+ from: { type: "string", description: "Start date (YYYY-MM-DD)" },
314
+ to: { type: "string", description: "End date (YYYY-MM-DD)" },
315
+ frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
335
316
  },
336
317
  required: ["ticker"]
337
318
  }
338
319
  },
320
+
321
+ // ---------- Indices ----------
339
322
  {
340
- name: "supply_chain_peers",
341
- description: "Get supply chain peers (competitors) for a specific company by ticker symbol",
323
+ name: "indices_tickers",
324
+ description: "List index tickers, optionally filtered by exchange",
325
+ inputSchema: {
326
+ type: "object",
327
+ properties: {
328
+ exchange: { type: "string", description: "Exchange (e.g., 'ASX', 'AMS')" }
329
+ }
330
+ }
331
+ },
332
+ {
333
+ name: "indices_quote",
334
+ description: "Get current details for an index",
342
335
  inputSchema: {
343
336
  type: "object",
344
337
  properties: {
345
- ticker: {
346
- type: "string",
347
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
348
- }
338
+ ticker: { type: "string", description: "Index ticker (e.g., 'AXJO', 'AEX')" }
349
339
  },
350
340
  required: ["ticker"]
351
341
  }
352
342
  },
353
343
  {
354
- name: "supply_chain_suppliers",
355
- description: "Get supply chain suppliers for a specific company by ticker symbol",
344
+ name: "indices_prices",
345
+ description: "Get historical price data for an index",
356
346
  inputSchema: {
357
347
  type: "object",
358
348
  properties: {
359
- ticker: {
360
- type: "string",
361
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
362
- }
349
+ ticker: { type: "string", description: "Index ticker" },
350
+ from: { type: "string", description: "Start date (YYYY-MM-DD)" },
351
+ to: { type: "string", description: "End date (YYYY-MM-DD)" },
352
+ frame: { type: "string", description: "Time frame (e.g., '1d', '1wk', '1mo')" }
363
353
  },
364
354
  required: ["ticker"]
365
355
  }
366
356
  },
357
+
358
+ // ---------- Economics ----------
367
359
  {
368
- name: "profiles_asset",
369
- description: "Get asset profile information for a specific ticker",
360
+ name: "econ_search",
361
+ description: "Search for economic datasets (FRED)",
370
362
  inputSchema: {
371
363
  type: "object",
372
364
  properties: {
373
- ticker: {
374
- type: "string",
375
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
376
- }
365
+ query: { type: "string", description: "Search query" }
366
+ },
367
+ required: ["query"]
368
+ }
369
+ },
370
+ {
371
+ name: "econ_dataset",
372
+ description: "Get economic dataset time series by ID",
373
+ inputSchema: {
374
+ type: "object",
375
+ properties: {
376
+ id: { type: "string", description: "Dataset ID (e.g., 'PMAIZMTUSDM')" }
377
+ },
378
+ required: ["id"]
379
+ }
380
+ },
381
+ {
382
+ name: "econ_calendar",
383
+ description: "Get economic calendar events",
384
+ inputSchema: {
385
+ type: "object",
386
+ properties: {
387
+ from: { type: "string", description: "Start date (YYYY-MM-DD)" },
388
+ to: { type: "string", description: "End date (YYYY-MM-DD)" },
389
+ country: { type: "string", description: "Country code(s) comma-separated" },
390
+ minImportance: { type: "integer", minimum: -1, maximum: 3, description: "Minimum importance (0-3)" },
391
+ currency: { type: "string", description: "Currency code(s) comma-separated" },
392
+ category: { type: "string", description: "Category (e.g., 'gov', 'infl')" }
393
+ }
394
+ }
395
+ },
396
+
397
+ // ---------- News ----------
398
+ {
399
+ name: "news_general",
400
+ description: "Get general news headlines",
401
+ inputSchema: { type: "object", properties: {} }
402
+ },
403
+ {
404
+ name: "news_ticker",
405
+ description: "Get news for a specific company by ticker",
406
+ inputSchema: {
407
+ type: "object",
408
+ properties: {
409
+ ticker: { type: "string", description: "Stock ticker" }
377
410
  },
378
411
  required: ["ticker"]
379
412
  }
380
413
  },
381
414
  {
382
- name: "profiles_recommendation",
383
- description: "Get recommendation trend for a specific ticker",
415
+ name: "news_country",
416
+ description: "Get news for a specific country",
417
+ inputSchema: {
418
+ type: "object",
419
+ properties: {
420
+ country: { type: "string", description: "Country name or code" }
421
+ },
422
+ required: ["country"]
423
+ }
424
+ },
425
+ {
426
+ name: "news_category",
427
+ description: "Get news for a specific category",
384
428
  inputSchema: {
385
429
  type: "object",
386
430
  properties: {
387
- ticker: {
388
- type: "string",
389
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
390
- }
431
+ category: { type: "string", description: "Category (e.g., 'business', 'technology')" }
432
+ },
433
+ required: ["category"]
434
+ }
435
+ },
436
+
437
+ // ---------- Sentiment ----------
438
+ {
439
+ name: "sentiment_all",
440
+ description: "Get combined sentiment (social, news, analyst) for a ticker",
441
+ inputSchema: {
442
+ type: "object",
443
+ properties: {
444
+ ticker: { type: "string", description: "Stock ticker" }
391
445
  },
392
446
  required: ["ticker"]
393
447
  }
394
448
  },
395
449
  {
396
- name: "profiles_cashflow",
397
- description: "Get cash flow statement history for a specific ticker",
450
+ name: "sentiment_social",
451
+ description: "Get social media sentiment for a ticker",
398
452
  inputSchema: {
399
453
  type: "object",
400
454
  properties: {
401
- ticker: {
402
- type: "string",
403
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
404
- }
455
+ ticker: { type: "string", description: "Stock ticker" }
405
456
  },
406
457
  required: ["ticker"]
407
458
  }
408
459
  },
409
460
  {
410
- name: "profiles_trend_index",
411
- description: "Get index trend information for a specific ticker",
461
+ name: "sentiment_news",
462
+ description: "Get news sentiment for a ticker",
412
463
  inputSchema: {
413
464
  type: "object",
414
465
  properties: {
415
- ticker: {
416
- type: "string",
417
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
418
- }
466
+ ticker: { type: "string", description: "Stock ticker" }
419
467
  },
420
468
  required: ["ticker"]
421
469
  }
422
470
  },
423
471
  {
424
- name: "profiles_statistics",
425
- description: "Get default key statistics for a specific ticker",
472
+ name: "sentiment_analyst",
473
+ description: "Get analyst/AI sentiment for a ticker",
426
474
  inputSchema: {
427
475
  type: "object",
428
476
  properties: {
429
- ticker: {
430
- type: "string",
431
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
432
- }
477
+ ticker: { type: "string", description: "Stock ticker" }
433
478
  },
434
479
  required: ["ticker"]
435
480
  }
436
481
  },
482
+
483
+ // ---------- Profiles ----------
437
484
  {
438
- name: "profiles_income",
439
- description: "Get income statement history for a specific ticker",
485
+ name: "profiles_profile",
486
+ description: "Get full asset profile for a ticker",
440
487
  inputSchema: {
441
488
  type: "object",
442
489
  properties: {
443
- ticker: {
444
- type: "string",
445
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
446
- }
490
+ ticker: { type: "string", description: "Stock ticker" }
447
491
  },
448
492
  required: ["ticker"]
449
493
  }
450
494
  },
451
495
  {
452
- name: "profiles_fund",
453
- description: "Get fund ownership data for a specific ticker",
496
+ name: "profiles_recommendation",
497
+ description: "Get recommendation trend for a ticker",
454
498
  inputSchema: {
455
499
  type: "object",
456
500
  properties: {
457
- ticker: {
458
- type: "string",
459
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
460
- }
501
+ ticker: { type: "string", description: "Stock ticker" }
461
502
  },
462
503
  required: ["ticker"]
463
504
  }
464
505
  },
465
506
  {
466
- name: "profiles_summary",
467
- description: "Get summary detail information for a specific ticker",
507
+ name: "profiles_statistics",
508
+ description: "Get key statistics for a ticker",
468
509
  inputSchema: {
469
510
  type: "object",
470
511
  properties: {
471
- ticker: {
472
- type: "string",
473
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
474
- }
512
+ ticker: { type: "string", description: "Stock ticker" }
475
513
  },
476
514
  required: ["ticker"]
477
515
  }
478
516
  },
479
517
  {
480
- name: "profiles_insiders",
481
- description: "Get insider holders information for a specific ticker",
518
+ name: "profiles_summary",
519
+ description: "Get summary detail for a ticker",
482
520
  inputSchema: {
483
521
  type: "object",
484
522
  properties: {
485
- ticker: {
486
- type: "string",
487
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
488
- }
523
+ ticker: { type: "string", description: "Stock ticker" }
489
524
  },
490
525
  required: ["ticker"]
491
526
  }
492
527
  },
493
528
  {
494
529
  name: "profiles_calendar",
495
- description: "Get calendar events for a specific ticker",
530
+ description: "Get calendar events (earnings, dividends) for a ticker",
496
531
  inputSchema: {
497
532
  type: "object",
498
533
  properties: {
499
- ticker: {
500
- type: "string",
501
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
502
- }
534
+ ticker: { type: "string", description: "Stock ticker" }
503
535
  },
504
536
  required: ["ticker"]
505
537
  }
506
538
  },
507
539
  {
508
- name: "profiles_balancesheet",
509
- description: "Get balance sheet history for a specific ticker",
540
+ name: "profiles_info",
541
+ description: "Get company info / summary profile for a ticker",
510
542
  inputSchema: {
511
543
  type: "object",
512
544
  properties: {
513
- ticker: {
514
- type: "string",
515
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
516
- }
545
+ ticker: { type: "string", description: "Stock ticker" }
517
546
  },
518
547
  required: ["ticker"]
519
548
  }
520
549
  },
550
+
551
+ // ---------- Earnings ----------
521
552
  {
522
- name: "profiles_trend_earnings",
523
- description: "Get earnings trend for a specific ticker",
553
+ name: "earnings_history",
554
+ description: "Get earnings history for a ticker",
524
555
  inputSchema: {
525
556
  type: "object",
526
557
  properties: {
527
- ticker: {
528
- type: "string",
529
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
530
- }
558
+ ticker: { type: "string", description: "Stock ticker" }
531
559
  },
532
560
  required: ["ticker"]
533
561
  }
534
562
  },
535
563
  {
536
- name: "profiles_institution",
537
- description: "Get institution ownership data for a specific ticker",
564
+ name: "earnings_trend",
565
+ description: "Get earnings trend for a ticker",
538
566
  inputSchema: {
539
567
  type: "object",
540
568
  properties: {
541
- ticker: {
542
- type: "string",
543
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
544
- }
569
+ ticker: { type: "string", description: "Stock ticker" }
545
570
  },
546
571
  required: ["ticker"]
547
572
  }
548
573
  },
549
574
  {
550
- name: "profiles_ownership",
551
- description: "Get major holders breakdown for a specific ticker",
575
+ name: "earnings_index",
576
+ description: "Get index trend for a ticker",
552
577
  inputSchema: {
553
578
  type: "object",
554
579
  properties: {
555
- ticker: {
556
- type: "string",
557
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
558
- }
580
+ ticker: { type: "string", description: "Stock ticker" }
559
581
  },
560
582
  required: ["ticker"]
561
583
  }
562
584
  },
563
585
  {
564
- name: "profiles_earnings",
565
- description: "Get earnings history for a specific ticker",
586
+ name: "earnings_report",
587
+ description: "Get earnings report for a specific year and quarter",
566
588
  inputSchema: {
567
589
  type: "object",
568
590
  properties: {
569
- ticker: {
570
- type: "string",
571
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
572
- }
591
+ ticker: { type: "string", description: "Stock ticker" },
592
+ year: { type: "string", description: "Year (e.g., '2024')" },
593
+ quarter: { type: "string", description: "Quarter (e.g., 'Q1')" }
594
+ },
595
+ required: ["ticker", "year", "quarter"]
596
+ }
597
+ },
598
+
599
+ // ---------- Filings ----------
600
+ {
601
+ name: "filings_recent",
602
+ description: "Get recent SEC filings for a company",
603
+ inputSchema: {
604
+ type: "object",
605
+ properties: {
606
+ ticker: { type: "string", description: "Stock ticker" },
607
+ limit: { type: "integer", description: "Number of filings to return" },
608
+ form: { type: "string", description: "Filter by form type (e.g., '10-K')" }
573
609
  },
574
610
  required: ["ticker"]
575
611
  }
576
612
  },
577
613
  {
578
- name: "profiles_info",
579
- description: "Get summary profile information for a specific ticker",
614
+ name: "filings_forms",
615
+ description: "Get specific SEC form type filings for a company",
616
+ inputSchema: {
617
+ type: "object",
618
+ properties: {
619
+ ticker: { type: "string", description: "Stock ticker" },
620
+ formType: { type: "string", description: "Form type (e.g., '10-K', '8-K')" },
621
+ year: { type: "string", description: "Filter by year" },
622
+ quarter: { type: "string", description: "Filter by quarter" },
623
+ limit: { type: "integer", description: "Number of filings to return" }
624
+ },
625
+ required: ["ticker", "formType"]
626
+ }
627
+ },
628
+ {
629
+ name: "filings_desc_forms",
630
+ description: "List available SEC form types and their descriptions",
631
+ inputSchema: { type: "object", properties: {} }
632
+ },
633
+ {
634
+ name: "filings_search",
635
+ description: "Search filings by year/quarter",
636
+ inputSchema: {
637
+ type: "object",
638
+ properties: {
639
+ year: { type: "string", description: "Year (e.g., '2024')" },
640
+ quarter: { type: "string", description: "Quarter (e.g., 'Q1')" },
641
+ form: { type: "string", description: "Form type filter" },
642
+ ticker: { type: "string", description: "Ticker filter" }
643
+ },
644
+ required: ["year", "quarter"]
645
+ }
646
+ },
647
+
648
+ // ---------- Financials ----------
649
+ {
650
+ name: "financials_revenue",
651
+ description: "Get historical revenue for a ticker",
580
652
  inputSchema: {
581
653
  type: "object",
582
654
  properties: {
583
- ticker: {
584
- type: "string",
585
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
586
- }
655
+ ticker: { type: "string", description: "Stock ticker" },
656
+ periods: { type: "integer", description: "Number of periods to return" }
587
657
  },
588
658
  required: ["ticker"]
589
659
  }
590
660
  },
591
661
  {
592
- name: "profiles_activity",
593
- description: "Get net share purchase activity for a specific ticker",
662
+ name: "financials_net_income",
663
+ description: "Get historical net income for a ticker",
594
664
  inputSchema: {
595
665
  type: "object",
596
666
  properties: {
597
- ticker: {
598
- type: "string",
599
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
600
- }
667
+ ticker: { type: "string", description: "Stock ticker" },
668
+ periods: { type: "integer", description: "Number of periods" }
601
669
  },
602
670
  required: ["ticker"]
603
671
  }
604
672
  },
605
673
  {
606
- name: "profiles_transactions",
607
- description: "Get insider transactions for a specific ticker",
674
+ name: "financials_total_assets",
675
+ description: "Get historical total assets",
608
676
  inputSchema: {
609
677
  type: "object",
610
678
  properties: {
611
- ticker: {
612
- type: "string",
613
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
614
- }
679
+ ticker: { type: "string", description: "Stock ticker" },
680
+ periods: { type: "integer", description: "Number of periods" }
615
681
  },
616
682
  required: ["ticker"]
617
683
  }
618
684
  },
619
685
  {
620
- name: "profiles_financials",
621
- description: "Get financial data for a specific ticker",
686
+ name: "financials_total_liabilities",
687
+ description: "Get historical total liabilities",
622
688
  inputSchema: {
623
689
  type: "object",
624
690
  properties: {
625
- ticker: {
626
- type: "string",
627
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
628
- }
691
+ ticker: { type: "string", description: "Stock ticker" },
692
+ periods: { type: "integer", description: "Number of periods" }
629
693
  },
630
694
  required: ["ticker"]
631
695
  }
632
696
  },
633
697
  {
634
- name: "profiles_traffic",
635
- description: "Get website traffic data for a specific ticker",
698
+ name: "financials_stockholders_equity",
699
+ description: "Get historical stockholders equity",
636
700
  inputSchema: {
637
701
  type: "object",
638
702
  properties: {
639
- ticker: {
640
- type: "string",
641
- description: "Stock ticker symbol (e.g., 'AAPL' for Apple)"
642
- }
703
+ ticker: { type: "string", description: "Stock ticker" },
704
+ periods: { type: "integer", description: "Number of periods" }
643
705
  },
644
706
  required: ["ticker"]
645
707
  }
646
708
  },
647
-
648
709
  {
649
- name: "crypto_tickers",
650
- description: "Get list of cryptocurrency tickers, optionally filtered by type",
710
+ name: "financials_current_assets",
711
+ description: "Get historical current assets",
651
712
  inputSchema: {
652
713
  type: "object",
653
714
  properties: {
654
- type: {
655
- type: "string",
656
- description: "Filter by type (e.g., 'spot')"
657
- }
658
- }
715
+ ticker: { type: "string", description: "Stock ticker" },
716
+ periods: { type: "integer", description: "Number of periods" }
717
+ },
718
+ required: ["ticker"]
659
719
  }
660
720
  },
661
721
  {
662
- name: "crypto_quote",
663
- description: "Get details for a specific cryptocurrency by ticker symbol",
722
+ name: "financials_current_liabilities",
723
+ description: "Get historical current liabilities",
664
724
  inputSchema: {
665
725
  type: "object",
666
726
  properties: {
667
- ticker: {
668
- type: "string",
669
- description: "Cryptocurrency ticker symbol (e.g., 'BTC', 'ETH')"
670
- }
727
+ ticker: { type: "string", description: "Stock ticker" },
728
+ periods: { type: "integer", description: "Number of periods" }
671
729
  },
672
730
  required: ["ticker"]
673
731
  }
674
732
  },
675
733
  {
676
- name: "crypto_prices",
677
- description: "Get historical price data for a cryptocurrency ticker",
734
+ name: "financials_operating_cash_flow",
735
+ description: "Get historical operating cash flow",
678
736
  inputSchema: {
679
737
  type: "object",
680
738
  properties: {
681
- ticker: {
682
- type: "string",
683
- description: "Cryptocurrency ticker symbol (e.g., 'BTC', 'ETH')"
684
- }
739
+ ticker: { type: "string", description: "Stock ticker" },
740
+ periods: { type: "integer", description: "Number of periods" }
685
741
  },
686
742
  required: ["ticker"]
687
743
  }
688
744
  },
689
745
  {
690
- name: "forex_tickers",
691
- description: "Get list of forex tickers with optional filtering by country or exchange",
746
+ name: "financials_capital_expenditures",
747
+ description: "Get historical capital expenditures",
692
748
  inputSchema: {
693
749
  type: "object",
694
750
  properties: {
695
- country: {
696
- type: "string",
697
- description: "Filter by country code (e.g., 'US', 'AE')"
698
- },
699
- exchange: {
700
- type: "string",
701
- description: "Filter by exchange (e.g., 'IDC')"
702
- }
703
- }
751
+ ticker: { type: "string", description: "Stock ticker" },
752
+ periods: { type: "integer", description: "Number of periods" }
753
+ },
754
+ required: ["ticker"]
704
755
  }
705
756
  },
706
757
  {
707
- name: "forex_quote",
708
- description: "Get details for a specific forex pair by ticker symbol",
758
+ name: "financials_free_cash_flow",
759
+ description: "Get historical free cash flow",
709
760
  inputSchema: {
710
761
  type: "object",
711
762
  properties: {
712
- ticker: {
713
- type: "string",
714
- description: "Forex ticker symbol (e.g., 'AEDAUD', 'EURUSD')"
715
- }
763
+ ticker: { type: "string", description: "Stock ticker" },
764
+ periods: { type: "integer", description: "Number of periods" }
716
765
  },
717
766
  required: ["ticker"]
718
767
  }
719
768
  },
720
769
  {
721
- name: "forex_prices",
722
- description: "Get historical price data for a forex ticker",
770
+ name: "financials_shares_outstanding_basic",
771
+ description: "Get historical basic shares outstanding",
723
772
  inputSchema: {
724
773
  type: "object",
725
774
  properties: {
726
- ticker: {
727
- type: "string",
728
- description: "Forex ticker symbol (e.g., 'AEDAUD', 'EURUSD')"
729
- }
775
+ ticker: { type: "string", description: "Stock ticker" },
776
+ periods: { type: "integer", description: "Number of periods" }
730
777
  },
731
778
  required: ["ticker"]
732
779
  }
733
780
  },
734
781
  {
735
- name: "future_tickers",
736
- description: "Get list of futures tickers with optional filtering by exchange",
782
+ name: "financials_shares_outstanding_diluted",
783
+ description: "Get historical diluted shares outstanding",
737
784
  inputSchema: {
738
785
  type: "object",
739
786
  properties: {
740
- exchange: {
741
- type: "string",
742
- description: "Filter by exchange (e.g., 'CME', 'CMX')"
743
- }
744
- }
787
+ ticker: { type: "string", description: "Stock ticker" },
788
+ periods: { type: "integer", description: "Number of periods" }
789
+ },
790
+ required: ["ticker"]
745
791
  }
746
792
  },
747
793
  {
748
- name: "future_quote",
749
- description: "Get details for a specific futures contract by ticker symbol",
794
+ name: "financials_metrics",
795
+ description: "Get calculated financial metrics for a ticker",
750
796
  inputSchema: {
751
797
  type: "object",
752
798
  properties: {
753
- ticker: {
754
- type: "string",
755
- description: "Futures ticker symbol (e.g., 'ALI', 'M6A', 'BTC')"
756
- }
799
+ ticker: { type: "string", description: "Stock ticker" }
757
800
  },
758
801
  required: ["ticker"]
759
802
  }
760
803
  },
761
804
  {
762
- name: "future_prices",
763
- description: "Get historical price data for a futures contract",
805
+ name: "financials_snapshot",
806
+ description: "Get a snapshot of key financial data",
764
807
  inputSchema: {
765
808
  type: "object",
766
809
  properties: {
767
- ticker: {
768
- type: "string",
769
- description: "Futures ticker symbol (e.g., 'ALI', 'M6A', 'BTC')"
770
- }
810
+ ticker: { type: "string", description: "Stock ticker" }
771
811
  },
772
812
  required: ["ticker"]
773
813
  }
774
814
  },
815
+
816
+ // ---------- Insiders / Ownership ----------
775
817
  {
776
- name: "indices_tickers",
777
- description: "Get list of index tickers with optional filtering by exchange",
818
+ name: "insiders_funds",
819
+ description: "Get fund ownership data for a ticker",
778
820
  inputSchema: {
779
821
  type: "object",
780
822
  properties: {
781
- exchange: {
782
- type: "string",
783
- description: "Filter by exchange (e.g., 'ASX', 'AMS', 'VIE')"
784
- }
785
- }
823
+ ticker: { type: "string", description: "Stock ticker" }
824
+ },
825
+ required: ["ticker"]
786
826
  }
787
827
  },
788
828
  {
789
- name: "indices_quote",
790
- description: "Get details for a specific index by ticker symbol",
829
+ name: "insiders_individuals",
830
+ description: "Get insider holders (individuals) for a ticker",
791
831
  inputSchema: {
792
832
  type: "object",
793
833
  properties: {
794
- ticker: {
795
- type: "string",
796
- description: "Index ticker symbol (e.g., 'AXJO', 'AEX', 'ATX')"
797
- }
834
+ ticker: { type: "string", description: "Stock ticker" }
798
835
  },
799
836
  required: ["ticker"]
800
837
  }
801
838
  },
802
839
  {
803
- name: "indices_prices",
804
- description: "Get historical price data for an index",
840
+ name: "insiders_institutions",
841
+ description: "Get institutional ownership data",
805
842
  inputSchema: {
806
843
  type: "object",
807
844
  properties: {
808
- ticker: {
809
- type: "string",
810
- description: "Index ticker symbol (e.g., 'AXJO', 'AEX', 'ATX')"
811
- }
845
+ ticker: { type: "string", description: "Stock ticker" }
812
846
  },
813
847
  required: ["ticker"]
814
848
  }
815
849
  },
816
-
817
850
  {
818
- name: "stocks_tickers",
819
- description: "Get list of stock tickers with optional filtering by country or exchange",
851
+ name: "insiders_ownership",
852
+ description: "Get major holders breakdown",
820
853
  inputSchema: {
821
854
  type: "object",
822
855
  properties: {
823
- country: {
824
- type: "string",
825
- description: "Filter by country (e.g., 'america')"
826
- },
827
- exchange: {
828
- type: "string",
829
- description: "Filter by exchange (e.g., 'NASDAQ', 'AMEX', 'OTC')"
830
- }
831
- }
856
+ ticker: { type: "string", description: "Stock ticker" }
857
+ },
858
+ required: ["ticker"]
832
859
  }
833
860
  },
834
861
  {
835
- name: "stocks_quote",
836
- description: "Get details for a specific stock by ticker symbol",
862
+ name: "insiders_activity",
863
+ description: "Get net share purchase activity",
837
864
  inputSchema: {
838
865
  type: "object",
839
866
  properties: {
840
- ticker: {
841
- type: "string",
842
- description: "Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA')"
843
- }
867
+ ticker: { type: "string", description: "Stock ticker" }
844
868
  },
845
869
  required: ["ticker"]
846
870
  }
847
871
  },
848
872
  {
849
- name: "stocks_prices",
850
- description: "Get historical price data for a stock",
873
+ name: "insiders_transactions",
874
+ description: "Get insider transactions",
851
875
  inputSchema: {
852
876
  type: "object",
853
877
  properties: {
854
- ticker: {
855
- type: "string",
856
- description: "Stock ticker symbol (e.g., 'AAPL', 'MSFT', 'TSLA')"
857
- }
878
+ ticker: { type: "string", description: "Stock ticker" }
858
879
  },
859
880
  required: ["ticker"]
860
881
  }
861
- }
862
-
882
+ },
863
883
 
884
+ // ---------- Web Traffic ----------
885
+ {
886
+ name: "webtraffic_traffic",
887
+ description: "Get website traffic data for a company",
888
+ inputSchema: {
889
+ type: "object",
890
+ properties: {
891
+ ticker: { type: "string", description: "Stock ticker" }
892
+ },
893
+ required: ["ticker"]
894
+ }
895
+ }
864
896
  ],
865
897
  };
866
898
  });
867
899
 
868
- /**
869
- * Handle tool execution
870
- */
871
900
  server.setRequestHandler(CallToolRequestSchema, async (request) => {
872
901
  const { name, arguments: args } = request.params;
873
902
 
@@ -875,458 +904,331 @@ server.setRequestHandler(CallToolRequestSchema, async (request) => {
875
904
  let result;
876
905
  let endpoint;
877
906
 
878
- switch (name) {
879
- case "credit_search":
880
- // Build query parameters for search
881
- const queryParams = buildQueryString({
882
- query: args.query,
883
- });
884
- endpoint = `credit/search${queryParams}`;
885
- result = await makeApiRequest(endpoint, { method: 'GET' });
886
- break;
887
-
888
- case "credit_ratings":
889
- if (!args.id) {
890
- throw new Error("Organization ID is required");
891
- }
892
- endpoint = `credit/ratings/${args.id}`;
893
- result = await makeApiRequest(endpoint, { method: 'GET' });
894
- break;
895
-
896
- case "econ_search":
897
- if (!args.query) {
898
- throw new Error("Search query is required");
899
- }
900
- endpoint = `econ/search${buildQueryString({ query: args.query })}`;
901
- result = await makeApiRequest(endpoint, { method: 'GET' });
902
- break;
903
-
904
- case "econ_dataset":
905
- if (!args.id) {
906
- throw new Error("Dataset ID is required");
907
- }
908
- endpoint = `econ/dataset/${args.id}`;
909
- result = await makeApiRequest(endpoint, { method: 'GET' });
910
- break;
911
-
912
- case "econ_calendar":
913
- endpoint = `econ/calendar${buildQueryString({
914
- from: args.from,
915
- to: args.to,
916
- country: args.country,
917
- minImportance: args.minImportance,
918
- currency: args.currency,
919
- category: args.category
920
- })}`;
921
- result = await makeApiRequest(endpoint, { method: 'GET' });
922
- break;
923
-
924
- case "esg_data":
925
- if (!args.ticker) {
926
- throw new Error("Ticker symbol is required");
927
- }
928
- endpoint = `esg/${args.ticker}`;
929
- result = await makeApiRequest(endpoint, { method: 'GET' });
930
- break;
931
-
932
- case "etf_fund":
933
- if (!args.ticker) {
934
- throw new Error("ETF ticker symbol is required");
935
- }
936
- endpoint = `etf/${args.ticker}/fund`;
937
- result = await makeApiRequest(endpoint, { method: 'GET' });
938
- break;
939
-
940
- case "etf_weights":
941
- if (!args.ticker) {
942
- throw new Error("ETF ticker symbol is required");
943
- }
944
- endpoint = `etf/${args.ticker}/weights`;
945
- result = await makeApiRequest(endpoint, { method: 'GET' });
946
- break;
947
-
948
- case "etf_holdings":
949
- if (!args.ticker) {
950
- throw new Error("ETF ticker symbol is required");
951
- }
952
- endpoint = `etf/${args.ticker}/holdings`;
953
- result = await makeApiRequest(endpoint, { method: 'GET' });
954
- break;
955
-
956
- case "etf_exposure":
957
- if (!args.ticker) {
958
- throw new Error("Ticker symbol is required");
959
- }
960
- endpoint = `etf/${args.ticker}/exposure`;
961
- result = await makeApiRequest(endpoint, { method: 'GET' });
962
- break;
963
-
964
- // News handlers
965
- case "news_ticker":
966
- if (!args.ticker) {
967
- throw new Error("Ticker symbol is required");
968
- }
969
- endpoint = `news/${args.ticker}`;
970
- result = await makeApiRequest(endpoint, { method: 'GET' });
971
- break;
972
-
973
- case "news_country":
974
- if (!args.country) {
975
- throw new Error("Country parameter is required");
976
- }
977
- endpoint = `news/country/${encodeURIComponent(args.country)}`;
978
- result = await makeApiRequest(endpoint, { method: 'GET' });
979
- break;
980
-
981
- case "news_category":
982
- if (!args.category) {
983
- throw new Error("Category parameter is required");
984
- }
985
- endpoint = `news/category/${encodeURIComponent(args.category)}`;
986
- result = await makeApiRequest(endpoint, { method: 'GET' });
987
- break;
988
-
989
- case "news_general":
990
- endpoint = `news`;
991
- result = await makeApiRequest(endpoint, { method: 'GET' });
992
- break;
993
-
994
- // Sentiment analysis handlers
995
- case "sentiment_social":
996
- if (!args.ticker) {
997
- throw new Error("Ticker symbol is required");
998
- }
999
- endpoint = `sentiment/${args.ticker}/social`;
1000
- result = await makeApiRequest(endpoint, { method: 'GET' });
1001
- break;
1002
-
1003
- case "sentiment_news":
1004
- if (!args.ticker) {
1005
- throw new Error("Ticker symbol is required");
1006
- }
1007
- endpoint = `sentiment/${args.ticker}/news`;
1008
- result = await makeApiRequest(endpoint, { method: 'GET' });
1009
- break;
1010
-
1011
- case "sentiment_analyst":
1012
- if (!args.ticker) {
1013
- throw new Error("Ticker symbol is required");
1014
- }
1015
- endpoint = `sentiment/${args.ticker}/analyst`;
1016
- result = await makeApiRequest(endpoint, { method: 'GET' });
1017
- break;
1018
-
1019
- // Supply chain handlers
1020
- case "supply_chain_customers":
1021
- if (!args.ticker) {
1022
- throw new Error("Ticker symbol is required");
1023
- }
1024
- endpoint = `supply-chain/${args.ticker}/customers`;
1025
- result = await makeApiRequest(endpoint, { method: 'GET' });
1026
- break;
1027
-
1028
- case "supply_chain_peers":
1029
- if (!args.ticker) {
1030
- throw new Error("Ticker symbol is required");
1031
- }
1032
- endpoint = `supply-chain/${args.ticker}/peers`;
1033
- result = await makeApiRequest(endpoint, { method: 'GET' });
1034
- break;
1035
-
1036
- case "supply_chain_suppliers":
1037
- if (!args.ticker) {
1038
- throw new Error("Ticker symbol is required");
1039
- }
1040
- endpoint = `supply-chain/${args.ticker}/suppliers`;
1041
- result = await makeApiRequest(endpoint, { method: 'GET' });
1042
- break;
1043
-
1044
- case "profiles_asset":
1045
- if (!args.ticker) {
1046
- throw new Error("Ticker symbol is required");
1047
- }
1048
- endpoint = `profiles/${args.ticker}/asset`;
1049
- result = await makeApiRequest(endpoint, { method: 'GET' });
1050
- break;
1051
-
1052
- case "profiles_recommendation":
1053
- if (!args.ticker) {
1054
- throw new Error("Ticker symbol is required");
1055
- }
1056
- endpoint = `profiles/${args.ticker}/recommendation`;
1057
- result = await makeApiRequest(endpoint, { method: 'GET' });
1058
- break;
1059
-
1060
- case "profiles_cashflow":
1061
- if (!args.ticker) {
1062
- throw new Error("Ticker symbol is required");
1063
- }
1064
- endpoint = `profiles/${args.ticker}/cashflow`;
1065
- result = await makeApiRequest(endpoint, { method: 'GET' });
1066
- break;
1067
-
1068
- case "profiles_trend_index":
1069
- if (!args.ticker) {
1070
- throw new Error("Ticker symbol is required");
1071
- }
1072
- endpoint = `profiles/${args.ticker}/trend/index`;
1073
- result = await makeApiRequest(endpoint, { method: 'GET' });
1074
- break;
1075
-
1076
- case "profiles_statistics":
1077
- if (!args.ticker) {
1078
- throw new Error("Ticker symbol is required");
1079
- }
1080
- endpoint = `profiles/${args.ticker}/statistics`;
1081
- result = await makeApiRequest(endpoint, { method: 'GET' });
1082
- break;
1083
-
1084
- case "profiles_income":
1085
- if (!args.ticker) {
1086
- throw new Error("Ticker symbol is required");
1087
- }
1088
- endpoint = `profiles/${args.ticker}/income`;
1089
- result = await makeApiRequest(endpoint, { method: 'GET' });
1090
- break;
1091
-
1092
- case "profiles_fund":
1093
- if (!args.ticker) {
1094
- throw new Error("Ticker symbol is required");
1095
- }
1096
- endpoint = `profiles/${args.ticker}/fund`;
1097
- result = await makeApiRequest(endpoint, { method: 'GET' });
1098
- break;
1099
-
1100
- case "profiles_summary":
1101
- if (!args.ticker) {
1102
- throw new Error("Ticker symbol is required");
1103
- }
1104
- endpoint = `profiles/${args.ticker}/summary`;
1105
- result = await makeApiRequest(endpoint, { method: 'GET' });
1106
- break;
1107
-
1108
- case "profiles_insiders":
1109
- if (!args.ticker) {
1110
- throw new Error("Ticker symbol is required");
1111
- }
1112
- endpoint = `profiles/${args.ticker}/insiders`;
1113
- result = await makeApiRequest(endpoint, { method: 'GET' });
1114
- break;
1115
-
1116
- case "profiles_calendar":
1117
- if (!args.ticker) {
1118
- throw new Error("Ticker symbol is required");
1119
- }
1120
- endpoint = `profiles/${args.ticker}/calendar`;
1121
- result = await makeApiRequest(endpoint, { method: 'GET' });
1122
- break;
1123
-
1124
- case "profiles_balancesheet":
1125
- if (!args.ticker) {
1126
- throw new Error("Ticker symbol is required");
1127
- }
1128
- endpoint = `profiles/${args.ticker}/balancesheet`;
1129
- result = await makeApiRequest(endpoint, { method: 'GET' });
1130
- break;
1131
-
1132
- case "profiles_trend_earnings":
1133
- if (!args.ticker) {
1134
- throw new Error("Ticker symbol is required");
1135
- }
1136
- endpoint = `profiles/${args.ticker}/trend/earnings`;
1137
- result = await makeApiRequest(endpoint, { method: 'GET' });
1138
- break;
1139
-
1140
- case "profiles_institution":
1141
- if (!args.ticker) {
1142
- throw new Error("Ticker symbol is required");
1143
- }
1144
- endpoint = `profiles/${args.ticker}/institution`;
1145
- result = await makeApiRequest(endpoint, { method: 'GET' });
1146
- break;
1147
-
1148
- case "profiles_ownership":
1149
- if (!args.ticker) {
1150
- throw new Error("Ticker symbol is required");
1151
- }
1152
- endpoint = `profiles/${args.ticker}/ownership`;
1153
- result = await makeApiRequest(endpoint, { method: 'GET' });
1154
- break;
1155
-
1156
- case "profiles_earnings":
1157
- if (!args.ticker) {
1158
- throw new Error("Ticker symbol is required");
1159
- }
1160
- endpoint = `profiles/${args.ticker}/earnings`;
1161
- result = await makeApiRequest(endpoint, { method: 'GET' });
1162
- break;
1163
-
1164
- case "profiles_info":
1165
- if (!args.ticker) {
1166
- throw new Error("Ticker symbol is required");
1167
- }
1168
- endpoint = `profiles/${args.ticker}/info`;
1169
- result = await makeApiRequest(endpoint, { method: 'GET' });
1170
- break;
1171
-
1172
- case "profiles_activity":
1173
- if (!args.ticker) {
1174
- throw new Error("Ticker symbol is required");
1175
- }
1176
- endpoint = `profiles/${args.ticker}/activity`;
1177
- result = await makeApiRequest(endpoint, { method: 'GET' });
1178
- break;
1179
-
1180
- case "profiles_transactions":
1181
- if (!args.ticker) {
1182
- throw new Error("Ticker symbol is required");
1183
- }
1184
- endpoint = `profiles/${args.ticker}/transactions`;
1185
- result = await makeApiRequest(endpoint, { method: 'GET' });
1186
- break;
1187
-
1188
- case "profiles_financials":
1189
- if (!args.ticker) {
1190
- throw new Error("Ticker symbol is required");
1191
- }
1192
- endpoint = `profiles/${args.ticker}/financials`;
1193
- result = await makeApiRequest(endpoint, { method: 'GET' });
1194
- break;
1195
-
1196
- case "profiles_traffic":
1197
- if (!args.ticker) {
1198
- throw new Error("Ticker symbol is required");
1199
- }
1200
- endpoint = `profiles/${args.ticker}/traffic`;
1201
- result = await makeApiRequest(endpoint, { method: 'GET' });
1202
- break;
907
+ // ---------- Credit ----------
908
+ if (name === "credit_search") {
909
+ endpoint = `credit/search${buildQueryString({ query: args.query })}`;
910
+ result = await makeApiRequest(endpoint, { method: 'GET' });
911
+ }
912
+ else if (name === "credit_ratings") {
913
+ endpoint = `credit/ratings/${args.id}`;
914
+ result = await makeApiRequest(endpoint, { method: 'GET' });
915
+ }
1203
916
 
917
+ // ---------- ESG ----------
918
+ else if (name === "esg_data") {
919
+ endpoint = `esg/${args.ticker}`;
920
+ result = await makeApiRequest(endpoint, { method: 'GET' });
921
+ }
1204
922
 
1205
- // Crypto handlers
1206
- case "crypto_tickers":
1207
- endpoint = `crypto/tickers${buildQueryString({
1208
- type: args.type
1209
- })}`;
1210
- result = await makeApiRequest(endpoint, { method: 'GET' });
1211
- break;
923
+ // ---------- ETF (plural endpoints) ----------
924
+ else if (name === "etf_fund") {
925
+ endpoint = `etfs/${args.ticker}/fund`;
926
+ result = await makeApiRequest(endpoint, { method: 'GET' });
927
+ }
928
+ else if (name === "etf_holdings") {
929
+ endpoint = `etfs/${args.ticker}/holdings`;
930
+ result = await makeApiRequest(endpoint, { method: 'GET' });
931
+ }
932
+ else if (name === "etf_exposure") {
933
+ endpoint = `etfs/${args.ticker}/exposure`;
934
+ result = await makeApiRequest(endpoint, { method: 'GET' });
935
+ }
1212
936
 
1213
- case "crypto_quote":
1214
- if (!args.ticker) {
1215
- throw new Error("Cryptocurrency ticker symbol is required");
1216
- }
1217
- endpoint = `crypto/${args.ticker}`;
1218
- result = await makeApiRequest(endpoint, { method: 'GET' });
1219
- break;
937
+ // ---------- Supply Chain ----------
938
+ else if (name === "supply_chain_customers") {
939
+ endpoint = `supply-chain/${args.ticker}/customers`;
940
+ result = await makeApiRequest(endpoint, { method: 'GET' });
941
+ }
942
+ else if (name === "supply_chain_peers") {
943
+ endpoint = `supply-chain/${args.ticker}/peers`;
944
+ result = await makeApiRequest(endpoint, { method: 'GET' });
945
+ }
946
+ else if (name === "supply_chain_suppliers") {
947
+ endpoint = `supply-chain/${args.ticker}/suppliers`;
948
+ result = await makeApiRequest(endpoint, { method: 'GET' });
949
+ }
1220
950
 
1221
- case "crypto_prices":
1222
- if (!args.ticker) {
1223
- throw new Error("Cryptocurrency ticker symbol is required");
1224
- }
1225
- endpoint = `crypto/${args.ticker}/prices`;
1226
- result = await makeApiRequest(endpoint, { method: 'GET' });
1227
- break;
951
+ // ---------- Stocks ----------
952
+ else if (name === "stocks_tickers") {
953
+ endpoint = `stocks/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
954
+ result = await makeApiRequest(endpoint, { method: 'GET' });
955
+ }
956
+ else if (name === "stocks_quote") {
957
+ endpoint = `stocks/${args.ticker}`;
958
+ result = await makeApiRequest(endpoint, { method: 'GET' });
959
+ }
960
+ else if (name === "stocks_prices") {
961
+ endpoint = `stocks/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
962
+ result = await makeApiRequest(endpoint, { method: 'GET' });
963
+ }
1228
964
 
1229
- // Forex handlers
1230
- case "forex_tickers":
1231
- endpoint = `forex/tickers${buildQueryString({
1232
- country: args.country,
1233
- exchange: args.exchange
1234
- })}`;
1235
- result = await makeApiRequest(endpoint, { method: 'GET' });
1236
- break;
965
+ // ---------- Crypto ----------
966
+ else if (name === "crypto_tickers") {
967
+ endpoint = `crypto/tickers${buildQueryString({ type: args.type })}`;
968
+ result = await makeApiRequest(endpoint, { method: 'GET' });
969
+ }
970
+ else if (name === "crypto_quote") {
971
+ endpoint = `crypto/${args.ticker}`;
972
+ result = await makeApiRequest(endpoint, { method: 'GET' });
973
+ }
974
+ else if (name === "crypto_prices") {
975
+ endpoint = `crypto/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
976
+ result = await makeApiRequest(endpoint, { method: 'GET' });
977
+ }
1237
978
 
1238
- case "forex_quote":
1239
- if (!args.ticker) {
1240
- throw new Error("Forex ticker symbol is required");
1241
- }
1242
- endpoint = `forex/${args.ticker}`;
1243
- result = await makeApiRequest(endpoint, { method: 'GET' });
1244
- break;
979
+ // ---------- Forex ----------
980
+ else if (name === "forex_tickers") {
981
+ endpoint = `forex/tickers${buildQueryString({ country: args.country, exchange: args.exchange })}`;
982
+ result = await makeApiRequest(endpoint, { method: 'GET' });
983
+ }
984
+ else if (name === "forex_quote") {
985
+ endpoint = `forex/${args.ticker}`;
986
+ result = await makeApiRequest(endpoint, { method: 'GET' });
987
+ }
988
+ else if (name === "forex_prices") {
989
+ endpoint = `forex/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
990
+ result = await makeApiRequest(endpoint, { method: 'GET' });
991
+ }
1245
992
 
1246
- case "forex_prices":
1247
- if (!args.ticker) {
1248
- throw new Error("Forex ticker symbol is required");
1249
- }
1250
- endpoint = `forex/${args.ticker}/prices`;
1251
- result = await makeApiRequest(endpoint, { method: 'GET' });
1252
- break;
993
+ // ---------- Futures ----------
994
+ else if (name === "futures_tickers") {
995
+ endpoint = `futures/tickers${buildQueryString({ exchange: args.exchange })}`;
996
+ result = await makeApiRequest(endpoint, { method: 'GET' });
997
+ }
998
+ else if (name === "futures_quote") {
999
+ endpoint = `futures/${args.ticker}`;
1000
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1001
+ }
1002
+ else if (name === "futures_prices") {
1003
+ endpoint = `futures/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
1004
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1005
+ }
1253
1006
 
1254
- // Futures handlers
1255
- case "future_tickers":
1256
- endpoint = `future/tickers${buildQueryString({
1257
- exchange: args.exchange
1258
- })}`;
1259
- result = await makeApiRequest(endpoint, { method: 'GET' });
1260
- break;
1007
+ // ---------- Indices ----------
1008
+ else if (name === "indices_tickers") {
1009
+ endpoint = `indices/tickers${buildQueryString({ exchange: args.exchange })}`;
1010
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1011
+ }
1012
+ else if (name === "indices_quote") {
1013
+ endpoint = `indices/${args.ticker}`;
1014
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1015
+ }
1016
+ else if (name === "indices_prices") {
1017
+ endpoint = `indices/${args.ticker}/prices${buildQueryString({ from: args.from, to: args.to, frame: args.frame })}`;
1018
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1019
+ }
1261
1020
 
1262
- case "future_quote":
1263
- if (!args.ticker) {
1264
- throw new Error("Futures ticker symbol is required");
1265
- }
1266
- endpoint = `future/${args.ticker}`;
1267
- result = await makeApiRequest(endpoint, { method: 'GET' });
1268
- break;
1021
+ // ---------- Economics ----------
1022
+ else if (name === "econ_search") {
1023
+ endpoint = `econ/search${buildQueryString({ query: args.query })}`;
1024
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1025
+ }
1026
+ else if (name === "econ_dataset") {
1027
+ endpoint = `econ/dataset/${args.id}`;
1028
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1029
+ }
1030
+ else if (name === "econ_calendar") {
1031
+ endpoint = `econ/calendar${buildQueryString({
1032
+ from: args.from,
1033
+ to: args.to,
1034
+ country: args.country,
1035
+ minImportance: args.minImportance,
1036
+ currency: args.currency,
1037
+ category: args.category
1038
+ })}`;
1039
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1040
+ }
1269
1041
 
1270
- case "future_prices":
1271
- if (!args.ticker) {
1272
- throw new Error("Futures ticker symbol is required");
1273
- }
1274
- endpoint = `future/${args.ticker}/prices`;
1275
- result = await makeApiRequest(endpoint, { method: 'GET' });
1276
- break;
1042
+ // ---------- News ----------
1043
+ else if (name === "news_general") {
1044
+ endpoint = `news`;
1045
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1046
+ }
1047
+ else if (name === "news_ticker") {
1048
+ endpoint = `news/${args.ticker}`;
1049
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1050
+ }
1051
+ else if (name === "news_country") {
1052
+ endpoint = `news/country/${encodeURIComponent(args.country)}`;
1053
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1054
+ }
1055
+ else if (name === "news_category") {
1056
+ endpoint = `news/category/${encodeURIComponent(args.category)}`;
1057
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1058
+ }
1277
1059
 
1278
- // Indices handlers
1279
- case "indices_tickers":
1280
- endpoint = `indices/tickers${buildQueryString({
1281
- exchange: args.exchange
1282
- })}`;
1283
- result = await makeApiRequest(endpoint, { method: 'GET' });
1284
- break;
1060
+ // ---------- Sentiment ----------
1061
+ else if (name === "sentiment_all") {
1062
+ endpoint = `sentiment/${args.ticker}/all`;
1063
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1064
+ }
1065
+ else if (name === "sentiment_social") {
1066
+ endpoint = `sentiment/${args.ticker}/social`;
1067
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1068
+ }
1069
+ else if (name === "sentiment_news") {
1070
+ endpoint = `sentiment/${args.ticker}/news`;
1071
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1072
+ }
1073
+ else if (name === "sentiment_analyst") {
1074
+ endpoint = `sentiment/${args.ticker}/analyst`;
1075
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1076
+ }
1285
1077
 
1286
- case "indices_quote":
1287
- if (!args.ticker) {
1288
- throw new Error("Index ticker symbol is required");
1289
- }
1290
- endpoint = `indices/${args.ticker}`;
1291
- result = await makeApiRequest(endpoint, { method: 'GET' });
1292
- break;
1078
+ // ---------- Profiles ----------
1079
+ else if (name === "profiles_profile") {
1080
+ endpoint = `profiles/${args.ticker}`;
1081
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1082
+ }
1083
+ else if (name === "profiles_recommendation") {
1084
+ endpoint = `profiles/${args.ticker}/recommendation`;
1085
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1086
+ }
1087
+ else if (name === "profiles_statistics") {
1088
+ endpoint = `profiles/${args.ticker}/statistics`;
1089
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1090
+ }
1091
+ else if (name === "profiles_summary") {
1092
+ endpoint = `profiles/${args.ticker}/summary`;
1093
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1094
+ }
1095
+ else if (name === "profiles_calendar") {
1096
+ endpoint = `profiles/${args.ticker}/calendar`;
1097
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1098
+ }
1099
+ else if (name === "profiles_info") {
1100
+ endpoint = `profiles/${args.ticker}/info`;
1101
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1102
+ }
1293
1103
 
1294
- case "indices_prices":
1295
- if (!args.ticker) {
1296
- throw new Error("Index ticker symbol is required");
1297
- }
1298
- endpoint = `indices/${args.ticker}/prices`;
1299
- result = await makeApiRequest(endpoint, { method: 'GET' });
1300
- break;
1104
+ // ---------- Earnings ----------
1105
+ else if (name === "earnings_history") {
1106
+ endpoint = `earnings/${args.ticker}/history`;
1107
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1108
+ }
1109
+ else if (name === "earnings_trend") {
1110
+ endpoint = `earnings/${args.ticker}/trend`;
1111
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1112
+ }
1113
+ else if (name === "earnings_index") {
1114
+ endpoint = `earnings/${args.ticker}/index`;
1115
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1116
+ }
1117
+ else if (name === "earnings_report") {
1118
+ endpoint = `earnings/${args.ticker}/report${buildQueryString({ year: args.year, quarter: args.quarter })}`;
1119
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1120
+ }
1301
1121
 
1122
+ // ---------- Filings ----------
1123
+ else if (name === "filings_recent") {
1124
+ endpoint = `filings/${args.ticker}${buildQueryString({ limit: args.limit, form: args.form })}`;
1125
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1126
+ }
1127
+ else if (name === "filings_forms") {
1128
+ endpoint = `filings/${args.ticker}/forms/${args.formType}${buildQueryString({ year: args.year, quarter: args.quarter, limit: args.limit })}`;
1129
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1130
+ }
1131
+ else if (name === "filings_desc_forms") {
1132
+ endpoint = `filings/desc/forms`;
1133
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1134
+ }
1135
+ else if (name === "filings_search") {
1136
+ endpoint = `filings/search${buildQueryString({ year: args.year, quarter: args.quarter, form: args.form, ticker: args.ticker })}`;
1137
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1138
+ }
1302
1139
 
1303
- // Stocks handlers
1304
- case "stocks_tickers":
1305
- endpoint = `stocks/tickers${buildQueryString({
1306
- country: args.country,
1307
- exchange: args.exchange
1308
- })}`;
1309
- result = await makeApiRequest(endpoint, { method: 'GET' });
1310
- break;
1140
+ // ---------- Financials ----------
1141
+ else if (name === "financials_revenue") {
1142
+ endpoint = `financials/${args.ticker}/revenue${buildQueryString({ periods: args.periods })}`;
1143
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1144
+ }
1145
+ else if (name === "financials_net_income") {
1146
+ endpoint = `financials/${args.ticker}/netincome${buildQueryString({ periods: args.periods })}`;
1147
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1148
+ }
1149
+ else if (name === "financials_total_assets") {
1150
+ endpoint = `financials/${args.ticker}/total/assets${buildQueryString({ periods: args.periods })}`;
1151
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1152
+ }
1153
+ else if (name === "financials_total_liabilities") {
1154
+ endpoint = `financials/${args.ticker}/total/liabilities${buildQueryString({ periods: args.periods })}`;
1155
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1156
+ }
1157
+ else if (name === "financials_stockholders_equity") {
1158
+ endpoint = `financials/${args.ticker}/stockholdersequity${buildQueryString({ periods: args.periods })}`;
1159
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1160
+ }
1161
+ else if (name === "financials_current_assets") {
1162
+ endpoint = `financials/${args.ticker}/current/assets${buildQueryString({ periods: args.periods })}`;
1163
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1164
+ }
1165
+ else if (name === "financials_current_liabilities") {
1166
+ endpoint = `financials/${args.ticker}/current/liabilities${buildQueryString({ periods: args.periods })}`;
1167
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1168
+ }
1169
+ else if (name === "financials_operating_cash_flow") {
1170
+ endpoint = `financials/${args.ticker}/cashflow/operating${buildQueryString({ periods: args.periods })}`;
1171
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1172
+ }
1173
+ else if (name === "financials_capital_expenditures") {
1174
+ endpoint = `financials/${args.ticker}/capitalexpenditures${buildQueryString({ periods: args.periods })}`;
1175
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1176
+ }
1177
+ else if (name === "financials_free_cash_flow") {
1178
+ endpoint = `financials/${args.ticker}/cashflow/free${buildQueryString({ periods: args.periods })}`;
1179
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1180
+ }
1181
+ else if (name === "financials_shares_outstanding_basic") {
1182
+ endpoint = `financials/${args.ticker}/sharesoutstanding/basic${buildQueryString({ periods: args.periods })}`;
1183
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1184
+ }
1185
+ else if (name === "financials_shares_outstanding_diluted") {
1186
+ endpoint = `financials/${args.ticker}/sharesoutstanding/diluted${buildQueryString({ periods: args.periods })}`;
1187
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1188
+ }
1189
+ else if (name === "financials_metrics") {
1190
+ endpoint = `financials/${args.ticker}/metrics`;
1191
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1192
+ }
1193
+ else if (name === "financials_snapshot") {
1194
+ endpoint = `financials/${args.ticker}/snapshot`;
1195
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1196
+ }
1311
1197
 
1312
- case "stocks_quote":
1313
- if (!args.ticker) {
1314
- throw new Error("Stock ticker symbol is required");
1315
- }
1316
- endpoint = `stocks/${args.ticker}`;
1317
- result = await makeApiRequest(endpoint, { method: 'GET' });
1318
- break;
1198
+ // ---------- Insiders ----------
1199
+ else if (name === "insiders_funds") {
1200
+ endpoint = `insiders/${args.ticker}/funds`;
1201
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1202
+ }
1203
+ else if (name === "insiders_individuals") {
1204
+ endpoint = `insiders/${args.ticker}/individuals`;
1205
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1206
+ }
1207
+ else if (name === "insiders_institutions") {
1208
+ endpoint = `insiders/${args.ticker}/institutions`;
1209
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1210
+ }
1211
+ else if (name === "insiders_ownership") {
1212
+ endpoint = `insiders/${args.ticker}/ownership`;
1213
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1214
+ }
1215
+ else if (name === "insiders_activity") {
1216
+ endpoint = `insiders/${args.ticker}/activity`;
1217
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1218
+ }
1219
+ else if (name === "insiders_transactions") {
1220
+ endpoint = `insiders/${args.ticker}/transactions`;
1221
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1222
+ }
1319
1223
 
1320
- case "stocks_prices":
1321
- if (!args.ticker) {
1322
- throw new Error("Stock ticker symbol is required");
1323
- }
1324
- endpoint = `stocks/${args.ticker}/prices`;
1325
- result = await makeApiRequest(endpoint, { method: 'GET' });
1326
- break;
1224
+ // ---------- Web Traffic ----------
1225
+ else if (name === "webtraffic_traffic") {
1226
+ endpoint = `webtraffic/${args.ticker}/traffic`;
1227
+ result = await makeApiRequest(endpoint, { method: 'GET' });
1228
+ }
1327
1229
 
1328
- default:
1329
- throw new Error(`Unknown tool: ${name}`);
1230
+ else {
1231
+ throw new Error(`Unknown tool: ${name}`);
1330
1232
  }
1331
1233
 
1332
1234
  return {
@@ -1356,7 +1258,7 @@ exchange: args.exchange
1356
1258
  async function main() {
1357
1259
  const transport = new StdioServerTransport();
1358
1260
  await server.connect(transport);
1359
- console.error("Axion MCP Server running on stdio");
1261
+ console.error("Axion MCP Server v2 running on stdio");
1360
1262
  }
1361
1263
 
1362
1264
  main().catch((error) => {