finimpulse-mcp-server 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +260 -0
- package/build/config/global.tool.js +21 -0
- package/build/config/global.tool.js.map +1 -0
- package/build/http/client.js +86 -0
- package/build/http/client.js.map +1 -0
- package/build/index.js +18 -0
- package/build/index.js.map +1 -0
- package/build/server.js +11 -0
- package/build/server.js.map +1 -0
- package/build/tools/financials/balance_sheet/handler.js +4 -0
- package/build/tools/financials/balance_sheet/handler.js.map +1 -0
- package/build/tools/financials/balance_sheet/index.js +6 -0
- package/build/tools/financials/balance_sheet/index.js.map +1 -0
- package/build/tools/financials/balance_sheet/schema.js +8 -0
- package/build/tools/financials/balance_sheet/schema.js.map +1 -0
- package/build/tools/financials/balance_sheet/types.js +2 -0
- package/build/tools/financials/balance_sheet/types.js.map +1 -0
- package/build/tools/financials/cash_flow/handler.js +4 -0
- package/build/tools/financials/cash_flow/handler.js.map +1 -0
- package/build/tools/financials/cash_flow/index.js +6 -0
- package/build/tools/financials/cash_flow/index.js.map +1 -0
- package/build/tools/financials/cash_flow/schema.js +8 -0
- package/build/tools/financials/cash_flow/schema.js.map +1 -0
- package/build/tools/financials/cash_flow/types.js +2 -0
- package/build/tools/financials/cash_flow/types.js.map +1 -0
- package/build/tools/financials/general/handler.js +4 -0
- package/build/tools/financials/general/handler.js.map +1 -0
- package/build/tools/financials/general/index.js +6 -0
- package/build/tools/financials/general/index.js.map +1 -0
- package/build/tools/financials/general/schema.js +9 -0
- package/build/tools/financials/general/schema.js.map +1 -0
- package/build/tools/financials/general/types.js +2 -0
- package/build/tools/financials/general/types.js.map +1 -0
- package/build/tools/financials/income_statement/handler.js +4 -0
- package/build/tools/financials/income_statement/handler.js.map +1 -0
- package/build/tools/financials/income_statement/index.js +6 -0
- package/build/tools/financials/income_statement/index.js.map +1 -0
- package/build/tools/financials/income_statement/schema.js +8 -0
- package/build/tools/financials/income_statement/schema.js.map +1 -0
- package/build/tools/financials/income_statement/types.js +2 -0
- package/build/tools/financials/income_statement/types.js.map +1 -0
- package/build/tools/financials/valuation_measures/handler.js +4 -0
- package/build/tools/financials/valuation_measures/handler.js.map +1 -0
- package/build/tools/financials/valuation_measures/index.js +6 -0
- package/build/tools/financials/valuation_measures/index.js.map +1 -0
- package/build/tools/financials/valuation_measures/schema.js +8 -0
- package/build/tools/financials/valuation_measures/schema.js.map +1 -0
- package/build/tools/financials/valuation_measures/types.js +2 -0
- package/build/tools/financials/valuation_measures/types.js.map +1 -0
- package/build/tools/historical/handler.js +4 -0
- package/build/tools/historical/handler.js.map +1 -0
- package/build/tools/historical/index.js +6 -0
- package/build/tools/historical/index.js.map +1 -0
- package/build/tools/historical/schema.js +35 -0
- package/build/tools/historical/schema.js.map +1 -0
- package/build/tools/historical/types.js +2 -0
- package/build/tools/historical/types.js.map +1 -0
- package/build/tools/holders/general/handler.js +4 -0
- package/build/tools/holders/general/handler.js.map +1 -0
- package/build/tools/holders/general/index.js +6 -0
- package/build/tools/holders/general/index.js.map +1 -0
- package/build/tools/holders/general/schema.js +5 -0
- package/build/tools/holders/general/schema.js.map +1 -0
- package/build/tools/holders/general/types.js +2 -0
- package/build/tools/holders/general/types.js.map +1 -0
- package/build/tools/holders/insiders/handler.js +4 -0
- package/build/tools/holders/insiders/handler.js.map +1 -0
- package/build/tools/holders/insiders/index.js +6 -0
- package/build/tools/holders/insiders/index.js.map +1 -0
- package/build/tools/holders/insiders/schema.js +56 -0
- package/build/tools/holders/insiders/schema.js.map +1 -0
- package/build/tools/holders/insiders/types.js +2 -0
- package/build/tools/holders/insiders/types.js.map +1 -0
- package/build/tools/holders/insiders-transactions/handler.js +4 -0
- package/build/tools/holders/insiders-transactions/handler.js.map +1 -0
- package/build/tools/holders/insiders-transactions/index.js +6 -0
- package/build/tools/holders/insiders-transactions/index.js.map +1 -0
- package/build/tools/holders/insiders-transactions/schema.js +56 -0
- package/build/tools/holders/insiders-transactions/schema.js.map +1 -0
- package/build/tools/holders/insiders-transactions/types.js +2 -0
- package/build/tools/holders/insiders-transactions/types.js.map +1 -0
- package/build/tools/holders/institutional/handler.js +4 -0
- package/build/tools/holders/institutional/handler.js.map +1 -0
- package/build/tools/holders/institutional/index.js +6 -0
- package/build/tools/holders/institutional/index.js.map +1 -0
- package/build/tools/holders/institutional/schema.js +56 -0
- package/build/tools/holders/institutional/schema.js.map +1 -0
- package/build/tools/holders/institutional/types.js +2 -0
- package/build/tools/holders/institutional/types.js.map +1 -0
- package/build/tools/holders/mutual-funds/handler.js +4 -0
- package/build/tools/holders/mutual-funds/handler.js.map +1 -0
- package/build/tools/holders/mutual-funds/index.js +6 -0
- package/build/tools/holders/mutual-funds/index.js.map +1 -0
- package/build/tools/holders/mutual-funds/schema.js +56 -0
- package/build/tools/holders/mutual-funds/schema.js.map +1 -0
- package/build/tools/holders/mutual-funds/types.js +2 -0
- package/build/tools/holders/mutual-funds/types.js.map +1 -0
- package/build/tools/holdings/general/handler.js +4 -0
- package/build/tools/holdings/general/handler.js.map +1 -0
- package/build/tools/holdings/general/index.js +6 -0
- package/build/tools/holdings/general/index.js.map +1 -0
- package/build/tools/holdings/general/schema.js +5 -0
- package/build/tools/holdings/general/schema.js.map +1 -0
- package/build/tools/holdings/general/types.js +2 -0
- package/build/tools/holdings/general/types.js.map +1 -0
- package/build/tools/holdings/top-holdings/handler.js +4 -0
- package/build/tools/holdings/top-holdings/handler.js.map +1 -0
- package/build/tools/holdings/top-holdings/index.js +6 -0
- package/build/tools/holdings/top-holdings/index.js.map +1 -0
- package/build/tools/holdings/top-holdings/schema.js +56 -0
- package/build/tools/holdings/top-holdings/schema.js.map +1 -0
- package/build/tools/holdings/top-holdings/types.js +2 -0
- package/build/tools/holdings/top-holdings/types.js.map +1 -0
- package/build/tools/index.js +43 -0
- package/build/tools/index.js.map +1 -0
- package/build/tools/news/handler.js +4 -0
- package/build/tools/news/handler.js.map +1 -0
- package/build/tools/news/index.js +6 -0
- package/build/tools/news/index.js.map +1 -0
- package/build/tools/news/schema.js +51 -0
- package/build/tools/news/schema.js.map +1 -0
- package/build/tools/news/types.js +2 -0
- package/build/tools/news/types.js.map +1 -0
- package/build/tools/profile/handler.js +4 -0
- package/build/tools/profile/handler.js.map +1 -0
- package/build/tools/profile/index.js +6 -0
- package/build/tools/profile/index.js.map +1 -0
- package/build/tools/profile/schema.js +5 -0
- package/build/tools/profile/schema.js.map +1 -0
- package/build/tools/profile/types.js +2 -0
- package/build/tools/profile/types.js.map +1 -0
- package/build/tools/search/handler.js +4 -0
- package/build/tools/search/handler.js.map +1 -0
- package/build/tools/search/index.js +6 -0
- package/build/tools/search/index.js.map +1 -0
- package/build/tools/search/schema.js +58 -0
- package/build/tools/search/schema.js.map +1 -0
- package/build/tools/search/types.js +2 -0
- package/build/tools/search/types.js.map +1 -0
- package/build/tools/statistics/annual-returns/handler.js +4 -0
- package/build/tools/statistics/annual-returns/handler.js.map +1 -0
- package/build/tools/statistics/annual-returns/index.js +6 -0
- package/build/tools/statistics/annual-returns/index.js.map +1 -0
- package/build/tools/statistics/annual-returns/schema.js +5 -0
- package/build/tools/statistics/annual-returns/schema.js.map +1 -0
- package/build/tools/statistics/annual-returns/types.js +2 -0
- package/build/tools/statistics/annual-returns/types.js.map +1 -0
- package/build/tools/statistics/general/handler.js +4 -0
- package/build/tools/statistics/general/handler.js.map +1 -0
- package/build/tools/statistics/general/index.js +6 -0
- package/build/tools/statistics/general/index.js.map +1 -0
- package/build/tools/statistics/general/schema.js +5 -0
- package/build/tools/statistics/general/schema.js.map +1 -0
- package/build/tools/statistics/general/types.js +2 -0
- package/build/tools/statistics/general/types.js.map +1 -0
- package/build/tools/statistics/risks/handler.js +4 -0
- package/build/tools/statistics/risks/handler.js.map +1 -0
- package/build/tools/statistics/risks/index.js +6 -0
- package/build/tools/statistics/risks/index.js.map +1 -0
- package/build/tools/statistics/risks/schema.js +56 -0
- package/build/tools/statistics/risks/schema.js.map +1 -0
- package/build/tools/statistics/risks/types.js +2 -0
- package/build/tools/statistics/risks/types.js.map +1 -0
- package/build/tools/summary/handler.js +4 -0
- package/build/tools/summary/handler.js.map +1 -0
- package/build/tools/summary/index.js +6 -0
- package/build/tools/summary/index.js.map +1 -0
- package/build/tools/summary/schema.js +5 -0
- package/build/tools/summary/schema.js.map +1 -0
- package/build/tools/summary/types.js +2 -0
- package/build/tools/summary/types.js.map +1 -0
- package/build/transports/http.js +69 -0
- package/build/transports/http.js.map +1 -0
- package/build/transports/stdio.js +9 -0
- package/build/transports/stdio.js.map +1 -0
- package/build/types/finimpulse.js +2 -0
- package/build/types/finimpulse.js.map +1 -0
- package/build/utils/filters.js +11 -0
- package/build/utils/filters.js.map +1 -0
- package/build/utils/version.js +39 -0
- package/build/utils/version.js.map +1 -0
- package/package.json +36 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/financials/valuation_measures/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAChE,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAClF,6IAA6I,CAC7I;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IAC1G,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;CACxG,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/financials/valuation_measures/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../src/tools/historical/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,KAAqB,EAAE,MAAiB;IAC9E,OAAO,MAAM,CAAC,OAAO,CAAoB,eAAe,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAC1E,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { historiesInputSchema } from './schema.js';
|
|
2
|
+
import { historiesHandler } from './handler.js';
|
|
3
|
+
export function registerHistoriesTool(server, client) {
|
|
4
|
+
server.registerTool('get_histories', { description: 'Returns time-series data for an asset in a single unified stream. This endpoint can return historical prices and, optionally, additional history “event” types such as dividends, splits, and capital gains (where available). It is a configurable endpoint that lets you control the date range, interval, included record types, sorting, and page size.', inputSchema: historiesInputSchema }, (input) => historiesHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tools/historical/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,oBAAoB,EAAC,MAAM,aAAa,CAAC;AACjD,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAE9C,MAAM,UAAU,qBAAqB,CAAC,MAAiB,EAAE,MAAiB;IACzE,MAAM,CAAC,YAAY,CAAC,eAAe,EAAE,EAAE,WAAW,EAAE,6VAA6V,EAAE,WAAW,EAAE,oBAAoB,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,gBAAgB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACre,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const historiesInputSchema = z.object({
|
|
3
|
+
symbol: z.string().min(1).describe('Asset identifier (ticker symbol).'),
|
|
4
|
+
types: z.array(z.enum(['historical_price', 'dividends', 'splits', 'capital_gains'])).optional().describe('Record types to include.\n' + '\n' + 'Supported values:\n' + '\n' + 'historical_price\n' + 'dividends\n' + 'splits\n' + 'capital_gains\n' + 'All parameters are of type string and are optional. If none are provided, all supported types are returned.'),
|
|
5
|
+
interval: z.enum(['1d', '1wk', '1mo', '3mo', '6mo', '1y']).optional().describe(`Granularity for returned history records.
|
|
6
|
+
Available values:
|
|
7
|
+
* 1d - 1 day
|
|
8
|
+
* 1wk - 1 week
|
|
9
|
+
* 1mo - 1 month
|
|
10
|
+
* 3mo - 3 months
|
|
11
|
+
* 6mo - 6 months
|
|
12
|
+
* 1y - 1 year`),
|
|
13
|
+
start_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('Date range filter (YYYY-MM-DD). Records returned fall within the requested period.'),
|
|
14
|
+
end_date: z.string().regex(/^\d{4}-\d{2}-\d{2}$/).optional().describe('Date range filter (YYYY-MM-DD). Records returned fall within the requested period.'),
|
|
15
|
+
sort_by: z.array(z.object({
|
|
16
|
+
selector: z.string().describe("Metric used for sorting (e.g., amount_usd)"),
|
|
17
|
+
desc: z.boolean().describe("Sorting direction (true for descending, false for ascending)."),
|
|
18
|
+
})).optional().describe(`Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]:
|
|
19
|
+
|
|
20
|
+
selector - Metric used for sorting (e.g., date).
|
|
21
|
+
desc - Sorting direction (true for descending, false for ascending).
|
|
22
|
+
Sortings can be combined using ,.
|
|
23
|
+
|
|
24
|
+
Example:
|
|
25
|
+
|
|
26
|
+
{
|
|
27
|
+
"selector": "date",
|
|
28
|
+
"desc": true
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
`),
|
|
32
|
+
limit: z.number().min(1).max(5000).default(10).optional().describe("Maximum number of matched items returned."),
|
|
33
|
+
offset: z.number().min(0).optional().describe(`Pagination offset (0-based).`),
|
|
34
|
+
});
|
|
35
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../src/tools/historical/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IACvE,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,kBAAkB,EAAC,WAAW,EAAC,QAAQ,EAAC,eAAe,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,4BAA4B,GAAG,IAAI,GAAG,qBAAqB,GAAG,IAAI,GAAG,oBAAoB,GAAG,aAAa,GAAG,UAAU,GAAG,iBAAiB,GAAG,6GAA6G,CAAC;IACjW,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC7E;;;;;;;mBAOiB,CACjB;IACD,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACtE,oFAAoF,CACpF;IACD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpE,oFAAoF,CACpF;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACR,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,4CAA4C,CAAC;QAC3E,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;KAC3F,CAAC,CACF,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB;;;;;;;;;;;;;IAaE,CACF;IACD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,2CAA2C,CAAC;IAC/G,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAC5C,8BAA8B,CAC9B;CACD,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/tools/historical/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holders/general/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,qBAAqB,CAAC,KAA0B,EAAE,MAAiB;IACxF,OAAO,MAAM,CAAC,OAAO,CAAyB,qBAAqB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACrF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdersGeneralInputSchema } from './schema.js';
|
|
2
|
+
import { holdersGeneralHandler } from './handler.js';
|
|
3
|
+
export function registerHoldersGeneralTool(server, client) {
|
|
4
|
+
server.registerTool('get_holders_general', { description: 'Returns a high-level ownership snapshot for an asset, focused on institutional and insider holdings where available. This endpoint is primarily relevant for stocks and returns insider and institutional ownership percentages, the number of institutions, and aggregated insider transaction flow metrics. For ETFs and mutual funds, most ownership fields are not applicable and are returned as null.', inputSchema: holdersGeneralInputSchema }, (input) => holdersGeneralHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holders/general/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,yBAAyB,EAAC,MAAM,aAAa,CAAC;AACtD,OAAO,EAAC,qBAAqB,EAAC,MAAM,cAAc,CAAC;AAGnD,MAAM,UAAU,0BAA0B,CAAC,MAAiB,EAAE,MAAiB;IAC9E,MAAM,CAAC,YAAY,CAAC,qBAAqB,EAAE,EAAE,WAAW,EAAE,6YAA6Y,EAAE,WAAW,EAAE,yBAAyB,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,qBAAqB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACriB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/holders/general/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;CAChE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/holders/general/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,KAA2B,EAAE,MAAiB;IAC1F,OAAO,MAAM,CAAC,OAAO,CAA0B,sBAAsB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdersInsidersInputSchema } from './schema.js';
|
|
2
|
+
import { holdersInsidersHandler } from './handler.js';
|
|
3
|
+
export function registerHoldersInsidersTool(server, client) {
|
|
4
|
+
server.registerTool('get_holders_insiders', { description: 'Returns a paginated list of insider transaction records for an asset, including recent insider actions, roles, and reported positions. Applicable only to stocks — for ETFs and mutual funds returns an empty result.', inputSchema: holdersInsidersInputSchema }, (input) => holdersInsidersHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,0BAA0B,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,EAAC,sBAAsB,EAAC,MAAM,cAAc,CAAC;AAGpD,MAAM,UAAU,2BAA2B,CAAC,MAAiB,EAAE,MAAiB;IAC/E,MAAM,CAAC,YAAY,CAAC,sBAAsB,EAAE,EAAE,WAAW,EAAE,uNAAuN,EAAE,WAAW,EAAE,0BAA0B,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAClX,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getFilterExpression } from '../../../utils/filters.js';
|
|
3
|
+
export const holdersInsidersInputSchema = z.object({
|
|
4
|
+
symbol: z.string().describe('Asset identifier (ticker symbol). Must be a stock symbol.'),
|
|
5
|
+
limit: z.number().min(1).max(5000).default(10).optional().describe('Maximum number of insider records to return.'),
|
|
6
|
+
offset: z.number().min(0).optional().describe('Pagination offset (0-based).'),
|
|
7
|
+
filters: getFilterExpression().optional().describe(`Optional filter expressions.
|
|
8
|
+
Each filter condition is defined as: [field, operator, value]. Conditions can be combined using logical operators and/or.
|
|
9
|
+
|
|
10
|
+
Supported operators:
|
|
11
|
+
|
|
12
|
+
Numeric fields:
|
|
13
|
+
|
|
14
|
+
> - greater than
|
|
15
|
+
>= - greater than or equal
|
|
16
|
+
< - less than
|
|
17
|
+
<= - less than or equal
|
|
18
|
+
= - equals
|
|
19
|
+
<> - not equal
|
|
20
|
+
String fields:
|
|
21
|
+
|
|
22
|
+
like – pattern match (requires % as a wildcard)
|
|
23
|
+
not_like - pattern does not match (requires % as a wildcard)
|
|
24
|
+
contains - value exists in string
|
|
25
|
+
not_contains - value does not exist in string
|
|
26
|
+
startswith - string starts with value
|
|
27
|
+
endswith - string ends with value
|
|
28
|
+
% usage examples:
|
|
29
|
+
|
|
30
|
+
%abc% - matches any string containing "abc"
|
|
31
|
+
abc% - matches any string starting with "abc"
|
|
32
|
+
%abc - matches any string ending with "abc"
|
|
33
|
+
Example:
|
|
34
|
+
|
|
35
|
+
"filters": [
|
|
36
|
+
"relation", "like", "Chief%"
|
|
37
|
+
]`),
|
|
38
|
+
sort_by: z.array(z.object({
|
|
39
|
+
selector: z.string().describe('Metric used for sorting (e.g., position_report_date)'),
|
|
40
|
+
desc: z.boolean().describe('Sorting direction (true for descending, false for ascending).'),
|
|
41
|
+
})).optional().describe(`Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]:
|
|
42
|
+
|
|
43
|
+
selector - Metric used for sorting (e.g., position_report_date).
|
|
44
|
+
desc - Sorting direction (true for descending, false for ascending).
|
|
45
|
+
Sortings can be combined using ,.
|
|
46
|
+
|
|
47
|
+
Example:
|
|
48
|
+
|
|
49
|
+
{
|
|
50
|
+
"selector": "position_report_date",
|
|
51
|
+
"desc": true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
`),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAE9D,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IACxF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8CAA8C,CAAC;IAClH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7E,OAAO,EAAE,mBAAmB,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BI,CACJ;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACR,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sDAAsD,CAAC;QACrF,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;KAC3F,CAAC,CACF,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB;;;;;;;;;;;;;IAaE,CACF;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders-transactions/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,kCAAkC,CAAC,KAAuC,EAAE,MAAiB;IAClH,OAAO,MAAM,CAAC,OAAO,CAAsC,mCAAmC,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAChH,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdersInsidersTransactionsInputSchema } from './schema.js';
|
|
2
|
+
import { holdersInsidersTransactionsHandler } from './handler.js';
|
|
3
|
+
export function registerHoldersInsidersTransactionsTool(server, client) {
|
|
4
|
+
server.registerTool('get_holders_insiders_transactions', { description: 'Returns a detailed, paginated list of insider transactions for a stock, including transaction descriptions, share counts, values, filer identity, and ownership type. More granular than get_holders_insiders. Applicable only to stocks — for ETFs and mutual funds returns an empty result.', inputSchema: holdersInsidersTransactionsInputSchema }, (input) => holdersInsidersTransactionsHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders-transactions/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sCAAsC,EAAC,MAAM,aAAa,CAAC;AACnE,OAAO,EAAC,kCAAkC,EAAC,MAAM,cAAc,CAAC;AAGhE,MAAM,UAAU,uCAAuC,CAAC,MAAiB,EAAE,MAAiB;IAC3F,MAAM,CAAC,YAAY,CAAC,mCAAmC,EAAE,EAAE,WAAW,EAAE,+RAA+R,EAAE,WAAW,EAAE,sCAAsC,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,kCAAkC,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAC/d,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getFilterExpression } from '../../../utils/filters.js';
|
|
3
|
+
export const holdersInsidersTransactionsInputSchema = z.object({
|
|
4
|
+
symbol: z.string().describe('Asset identifier (ticker symbol). Must be a stock symbol.'),
|
|
5
|
+
limit: z.number().min(1).max(5000).default(10).optional().describe('Maximum number of transaction records to return.'),
|
|
6
|
+
offset: z.number().min(0).optional().describe('Pagination offset (0-based).'),
|
|
7
|
+
filters: getFilterExpression().optional().describe(`Optional filter expressions.
|
|
8
|
+
Each filter condition is defined as: [field, operator, value]. Conditions can be combined using logical operators and/or.
|
|
9
|
+
|
|
10
|
+
Supported operators:
|
|
11
|
+
|
|
12
|
+
Numeric fields:
|
|
13
|
+
|
|
14
|
+
> - greater than
|
|
15
|
+
>= - greater than or equal
|
|
16
|
+
< - less than
|
|
17
|
+
<= - less than or equal
|
|
18
|
+
= - equals
|
|
19
|
+
<> - not equal
|
|
20
|
+
String fields:
|
|
21
|
+
|
|
22
|
+
like – pattern match (requires % as a wildcard)
|
|
23
|
+
not_like - pattern does not match (requires % as a wildcard)
|
|
24
|
+
contains - value exists in string
|
|
25
|
+
not_contains - value does not exist in string
|
|
26
|
+
startswith - string starts with value
|
|
27
|
+
endswith - string ends with value
|
|
28
|
+
% usage examples:
|
|
29
|
+
|
|
30
|
+
%abc% - matches any string containing "abc"
|
|
31
|
+
abc% - matches any string starting with "abc"
|
|
32
|
+
%abc - matches any string ending with "abc"
|
|
33
|
+
Example:
|
|
34
|
+
|
|
35
|
+
"filters": [
|
|
36
|
+
"shares", ">", 10000
|
|
37
|
+
]`),
|
|
38
|
+
sort_by: z.array(z.object({
|
|
39
|
+
selector: z.string().describe('Metric used for sorting (e.g., shares)'),
|
|
40
|
+
desc: z.boolean().describe('Sorting direction (true for descending, false for ascending).'),
|
|
41
|
+
})).optional().describe(`Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]:
|
|
42
|
+
|
|
43
|
+
selector - Metric used for sorting (e.g., shares).
|
|
44
|
+
desc - Sorting direction (true for descending, false for ascending).
|
|
45
|
+
Sortings can be combined using ,.
|
|
46
|
+
|
|
47
|
+
Example:
|
|
48
|
+
|
|
49
|
+
{
|
|
50
|
+
"selector": "shares",
|
|
51
|
+
"desc": false
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
`),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders-transactions/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAE9D,MAAM,CAAC,MAAM,sCAAsC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IACxF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,kDAAkD,CAAC;IACtH,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7E,OAAO,EAAE,mBAAmB,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BI,CACJ;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACR,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wCAAwC,CAAC;QACvE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;KAC3F,CAAC,CACF,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB;;;;;;;;;;;;;IAaE,CACF;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/holders/insiders-transactions/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holders/institutional/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,2BAA2B,CAAC,KAAgC,EAAE,MAAiB;IACpG,OAAO,MAAM,CAAC,OAAO,CAA+B,2BAA2B,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACjG,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdersInstitutionalInputSchema } from './schema.js';
|
|
2
|
+
import { holdersInstitutionalHandler } from './handler.js';
|
|
3
|
+
export function registerHoldersInstitutionalTool(server, client) {
|
|
4
|
+
server.registerTool('get_holders_institutional', { description: 'Returns a paginated list of institutional holders for an asset. Includes each holder\'s reported position, percent held, and estimated value. Supports filtering and sorting. Primarily relevant for stocks; for ETFs and mutual funds the response is typically empty.', inputSchema: holdersInstitutionalInputSchema }, (input) => holdersInstitutionalHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holders/institutional/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,+BAA+B,EAAC,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAC,2BAA2B,EAAC,MAAM,cAAc,CAAC;AAGzD,MAAM,UAAU,gCAAgC,CAAC,MAAiB,EAAE,MAAiB;IACpF,MAAM,CAAC,YAAY,CAAC,2BAA2B,EAAE,EAAE,WAAW,EAAE,yQAAyQ,EAAE,WAAW,EAAE,+BAA+B,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,2BAA2B,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACnb,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getFilterExpression } from '../../../utils/filters.js';
|
|
3
|
+
export const holdersInstitutionalInputSchema = z.object({
|
|
4
|
+
symbol: z.string().describe('Asset identifier (ticker symbol).'),
|
|
5
|
+
limit: z.number().min(1).max(5000).default(10).optional().describe('Maximum number of items to return.'),
|
|
6
|
+
offset: z.number().min(0).optional().describe('Pagination offset (0-based).'),
|
|
7
|
+
filters: getFilterExpression().optional().describe(`Optional filter expressions.
|
|
8
|
+
Each filter condition is defined as: [field, operator, value]. Conditions can be combined using logical operators and/or.
|
|
9
|
+
|
|
10
|
+
Supported operators:
|
|
11
|
+
|
|
12
|
+
Numeric fields:
|
|
13
|
+
|
|
14
|
+
> - greater than
|
|
15
|
+
>= - greater than or equal
|
|
16
|
+
< - less than
|
|
17
|
+
<= - less than or equal
|
|
18
|
+
= - equals
|
|
19
|
+
<> - not equal
|
|
20
|
+
String fields:
|
|
21
|
+
|
|
22
|
+
like – pattern match (requires % as a wildcard)
|
|
23
|
+
not_like - pattern does not match (requires % as a wildcard)
|
|
24
|
+
contains - value exists in string
|
|
25
|
+
not_contains - value does not exist in string
|
|
26
|
+
startswith - string starts with value
|
|
27
|
+
endswith - string ends with value
|
|
28
|
+
% usage examples:
|
|
29
|
+
|
|
30
|
+
%abc% - matches any string containing "abc"
|
|
31
|
+
abc% - matches any string starting with "abc"
|
|
32
|
+
%abc - matches any string ending with "abc"
|
|
33
|
+
Example:
|
|
34
|
+
|
|
35
|
+
"filters": [
|
|
36
|
+
[ "pct_held", ">", 0.0407 ]
|
|
37
|
+
]`),
|
|
38
|
+
sort_by: z.array(z.object({
|
|
39
|
+
selector: z.string().describe('Metric used for sorting (e.g., value)'),
|
|
40
|
+
desc: z.boolean().describe('Sorting direction (true for descending, false for ascending).'),
|
|
41
|
+
})).optional().describe(`Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]:
|
|
42
|
+
|
|
43
|
+
selector - Metric used for sorting (e.g., value).
|
|
44
|
+
desc - Sorting direction (true for descending, false for ascending).
|
|
45
|
+
Sortings can be combined using ,.
|
|
46
|
+
|
|
47
|
+
Example:
|
|
48
|
+
|
|
49
|
+
{
|
|
50
|
+
"selector": "value",
|
|
51
|
+
"desc": true
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
`),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/holders/institutional/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAE9D,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;IAChE,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACxG,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7E,OAAO,EAAE,mBAAmB,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BI,CACJ;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACR,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACtE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;KAC3F,CAAC,CACF,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB;;;;;;;;;;;;;IAaE,CACF;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/holders/institutional/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holders/mutual-funds/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,yBAAyB,CAAC,KAA8B,EAAE,MAAiB;IAChG,OAAO,MAAM,CAAC,OAAO,CAA6B,0BAA0B,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdersMutualFundsInputSchema } from './schema.js';
|
|
2
|
+
import { holdersMutualFundsHandler } from './handler.js';
|
|
3
|
+
export function registerHoldersMutualFundsTool(server, client) {
|
|
4
|
+
server.registerTool('get_holders_mutual_funds', { description: 'Returns a list of mutual funds and ETFs that hold a given stock, including their reported position size, percent held, and estimated value. Answers the question "Which funds hold this stock?". Stock-centric endpoint — returns empty result for ETF and mutual fund symbols.', inputSchema: holdersMutualFundsInputSchema }, (input) => holdersMutualFundsHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holders/mutual-funds/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,6BAA6B,EAAC,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAC,yBAAyB,EAAC,MAAM,cAAc,CAAC;AAGvD,MAAM,UAAU,8BAA8B,CAAC,MAAiB,EAAE,MAAiB;IAClF,MAAM,CAAC,YAAY,CAAC,0BAA0B,EAAE,EAAE,WAAW,EAAE,iRAAiR,EAAE,WAAW,EAAE,6BAA6B,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACtb,CAAC"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { getFilterExpression } from '../../../utils/filters.js';
|
|
3
|
+
export const holdersMutualFundsInputSchema = z.object({
|
|
4
|
+
symbol: z.string().describe('Asset identifier (ticker symbol). Must be a stock symbol.'),
|
|
5
|
+
limit: z.number().min(1).max(5000).default(10).optional().describe('Maximum number of items to return.'),
|
|
6
|
+
offset: z.number().min(0).optional().describe('Pagination offset (0-based).'),
|
|
7
|
+
filters: getFilterExpression().optional().describe(`Optional filter expressions.
|
|
8
|
+
Each filter condition is defined as: [field, operator, value]. Conditions can be combined using logical operators and/or.
|
|
9
|
+
|
|
10
|
+
Supported operators:
|
|
11
|
+
|
|
12
|
+
Numeric fields:
|
|
13
|
+
|
|
14
|
+
> - greater than
|
|
15
|
+
>= - greater than or equal
|
|
16
|
+
< - less than
|
|
17
|
+
<= - less than or equal
|
|
18
|
+
= - equals
|
|
19
|
+
<> - not equal
|
|
20
|
+
String fields:
|
|
21
|
+
|
|
22
|
+
like – pattern match (requires % as a wildcard)
|
|
23
|
+
not_like - pattern does not match (requires % as a wildcard)
|
|
24
|
+
contains - value exists in string
|
|
25
|
+
not_contains - value does not exist in string
|
|
26
|
+
startswith - string starts with value
|
|
27
|
+
endswith - string ends with value
|
|
28
|
+
% usage examples:
|
|
29
|
+
|
|
30
|
+
%abc% - matches any string containing "abc"
|
|
31
|
+
abc% - matches any string starting with "abc"
|
|
32
|
+
%abc - matches any string ending with "abc"
|
|
33
|
+
Example:
|
|
34
|
+
|
|
35
|
+
"filters": [
|
|
36
|
+
"name", "like", "VANGUARD%"
|
|
37
|
+
]`),
|
|
38
|
+
sort_by: z.array(z.object({
|
|
39
|
+
selector: z.string().describe('Metric used for sorting (e.g., value)'),
|
|
40
|
+
desc: z.boolean().describe('Sorting direction (true for descending, false for ascending).'),
|
|
41
|
+
})).optional().describe(`Optional sorting configuration for result items. Each sorting setup is defined as [selector, desc]:
|
|
42
|
+
|
|
43
|
+
selector - Metric used for sorting (e.g., value).
|
|
44
|
+
desc - Sorting direction (true for descending, false for ascending).
|
|
45
|
+
Sortings can be combined using ,.
|
|
46
|
+
|
|
47
|
+
Example:
|
|
48
|
+
|
|
49
|
+
{
|
|
50
|
+
"selector": "value",
|
|
51
|
+
"desc": false
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
`),
|
|
55
|
+
});
|
|
56
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/holders/mutual-funds/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AACtB,OAAO,EAAC,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAE9D,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACrD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;IACxF,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,oCAAoC,CAAC;IACxG,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8BAA8B,CAAC;IAC7E,OAAO,EAAE,mBAAmB,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACjD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BI,CACJ;IACD,OAAO,EAAE,CAAC,CAAC,KAAK,CACf,CAAC,CAAC,MAAM,CAAC;QACR,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,uCAAuC,CAAC;QACtE,IAAI,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,+DAA+D,CAAC;KAC3F,CAAC,CACF,CAAC,QAAQ,EAAE,CAAC,QAAQ,CACpB;;;;;;;;;;;;;IAaE,CACF;CACD,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/holders/mutual-funds/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holdings/general/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,sBAAsB,CAAC,KAA2B,EAAE,MAAiB;IAC1F,OAAO,MAAM,CAAC,OAAO,CAA0B,sBAAsB,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AACvF,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdingsGeneralInputSchema } from './schema.js';
|
|
2
|
+
import { holdingsGeneralHandler } from './handler.js';
|
|
3
|
+
export function registerHoldingsGeneralTool(server, client) {
|
|
4
|
+
server.registerTool('get_holdings_general', { description: 'Returns consolidated portfolio composition and holdings-level aggregates for a fund (ETF or mutual fund), including asset allocation, sector exposure, and aggregated valuation characteristics of the underlying holdings. For stocks, all fields return null. Use to populate Holdings Overview or Portfolio Composition sections.', inputSchema: holdingsGeneralInputSchema }, (input) => holdingsGeneralHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holdings/general/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,0BAA0B,EAAC,MAAM,aAAa,CAAC;AACvD,OAAO,EAAC,sBAAsB,EAAC,MAAM,cAAc,CAAC;AAGpD,MAAM,UAAU,2BAA2B,CAAC,MAAiB,EAAE,MAAiB;IAC/E,MAAM,CAAC,YAAY,CAAC,sBAAsB,EAAE,EAAE,WAAW,EAAE,sUAAsU,EAAE,WAAW,EAAE,0BAA0B,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,sBAAsB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AACje,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../src/tools/holdings/general/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,CAAC,EAAC,MAAM,KAAK,CAAC;AAEtB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,mCAAmC,CAAC;CAChE,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/holdings/general/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"handler.js","sourceRoot":"","sources":["../../../../src/tools/holdings/top-holdings/handler.ts"],"names":[],"mappings":"AAKA,MAAM,CAAC,KAAK,UAAU,0BAA0B,CAAC,KAA+B,EAAE,MAAiB;IAClG,OAAO,MAAM,CAAC,OAAO,CAA8B,2BAA2B,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;AAChG,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { holdingsTopHoldingsInputSchema } from './schema.js';
|
|
2
|
+
import { holdingsTopHoldingsHandler } from './handler.js';
|
|
3
|
+
export function registerHoldingsTopHoldingsTool(server, client) {
|
|
4
|
+
server.registerTool('get_holdings_top_holdings', { description: 'Returns the list of top holdings for a fund (ETF or mutual fund), including ticker symbol, name, and weight as a percentage of total net assets. Supports filtering and sorting. For stocks returns an empty result. Use to display portfolio concentration, issuer exposure, or Top Holdings tables.', inputSchema: holdingsTopHoldingsInputSchema }, (input) => holdingsTopHoldingsHandler(input, client));
|
|
5
|
+
}
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tools/holdings/top-holdings/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,8BAA8B,EAAC,MAAM,aAAa,CAAC;AAC3D,OAAO,EAAC,0BAA0B,EAAC,MAAM,cAAc,CAAC;AAGxD,MAAM,UAAU,+BAA+B,CAAC,MAAiB,EAAE,MAAiB;IACnF,MAAM,CAAC,YAAY,CAAC,2BAA2B,EAAE,EAAE,WAAW,EAAE,uSAAuS,EAAE,WAAW,EAAE,8BAA8B,EAAE,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,0BAA0B,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC;AAC/c,CAAC"}
|