@insightsentry/mcp 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 +137 -0
- package/bin/insightsentry-mcp.js +2 -0
- package/dist/api-client.d.ts +6 -0
- package/dist/api-client.d.ts.map +1 -0
- package/dist/api-client.js +92 -0
- package/dist/api-client.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +122 -0
- package/dist/index.js.map +1 -0
- package/dist/resources.d.ts +9 -0
- package/dist/resources.d.ts.map +1 -0
- package/dist/resources.js +2693 -0
- package/dist/resources.js.map +1 -0
- package/dist/tool-definitions.d.ts +10 -0
- package/dist/tool-definitions.d.ts.map +1 -0
- package/dist/tool-definitions.js +309 -0
- package/dist/tool-definitions.js.map +1 -0
- package/package.json +44 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resources.js","sourceRoot":"","sources":["../src/resources.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,kFAAkF;AAClF,kEAAkE;AAClE,uCAAuC;AAUvC,MAAM,CAAC,MAAM,YAAY,GAAkB;IACzC;QACE,GAAG,EAAE,+BAA+B;QACpC,IAAI,EAAE,8BAA8B;QACpC,WAAW,EAAE,2GAA2G;QACxH,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqHZ;KACE;IACD;QACE,GAAG,EAAE,gCAAgC;QACrC,IAAI,EAAE,qCAAqC;QAC3C,WAAW,EAAE,uHAAuH;QACpI,QAAQ,EAAE,eAAe;QACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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7
|
+
schema: Record<string, z.ZodTypeAny>;
|
|
8
|
+
}
|
|
9
|
+
export declare const toolDefinitions: ToolDefinition[];
|
|
10
|
+
//# sourceMappingURL=tool-definitions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-definitions.d.ts","sourceRoot":"","sources":["../src/tool-definitions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC,UAAU,CAAC,CAAC;CACtC;AAED,eAAO,MAAM,eAAe,EAAE,cAAc,EAgT3C,CAAC"}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
// AUTO-GENERATED by scripts/generate.ts — do not edit manually
|
|
2
|
+
// Source: typescript/website/public/openapi.json
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export const toolDefinitions = [
|
|
5
|
+
{
|
|
6
|
+
name: "get_symbol_series",
|
|
7
|
+
description: "Recent Time Series (up to 30k bars) with real-time data option. Retrieve recent historical OHLCV data with real-time data option for a symbol with configurable time intervals and adjustments → Returns OHLCV bars. For 20+ years of history use get_symbol_history instead. For real-time streaming, read the insightsentry://docs/websocket resource.",
|
|
8
|
+
method: "GET",
|
|
9
|
+
pathTemplate: "/v3/symbols/{symbol}/series",
|
|
10
|
+
schema: {
|
|
11
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
12
|
+
bar_type: z.enum(["tick", "second", "minute", "hour", "day", "week", "month"]).describe("(Optional) Bar type. Default is 'day'").optional(),
|
|
13
|
+
bar_interval: z.number().int().min(1).max(1440).describe("(Optional) Bar intervals. The combination of bar_type and bar_interval must not exceed one year. Default is 1.").optional(),
|
|
14
|
+
extended: z.boolean().describe("(Optional) Extended hours (Not all assets support extended hours). Default to true.").optional(),
|
|
15
|
+
dadj: z.boolean().describe("(Optional) Dividend adjustment for equities and etfs (has no effect on assets without dividends). Default to false.").optional(),
|
|
16
|
+
badj: z.boolean().describe("(Optional) Back-adjustment for continous futures contracts (has no effect on non-continous futures data). Default to true.").optional(),
|
|
17
|
+
dp: z.number().int().min(1).max(30000).describe("(Optional) Maximum number of data points to return. Higher values may increase latency. Default is 3000. Supported values: 1 - 30000").optional(),
|
|
18
|
+
long_poll: z.boolean().describe("(Optional) If true, the server will wait up to 3 additional seconds for a real-time data before responding. Default is false.").optional(),
|
|
19
|
+
currency: z.string().describe("(Optional) Convert the OHLCV data to a different currency. The currency code must be a valid ISO 4217 currency code (e.g., USD, EUR, GBP). Do not include this field if you want to use the default currency for the symbol (Supports 173 values including: AED, AFN, ALL, AMD, AOA, ARS, AUD, AWG, AZN, BAM, ...)").optional(),
|
|
20
|
+
settlement: z.boolean().describe("(Optional) Set Settlement as daily close. Default is false").optional(),
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "get_symbol_history",
|
|
25
|
+
description: "Historical data as far as 20 years+ with deep archive access. Retrieve historical data for specific time periods with deep archive access → Supports second/minute/hour bars only (for daily/weekly/monthly, use get_symbol_series). Returns one month of data per call. Iterate start_date (YYYY-MM) for longer ranges. For recent data (up to 30k bars) use get_symbol_series instead.",
|
|
26
|
+
method: "GET",
|
|
27
|
+
pathTemplate: "/v3/symbols/{symbol}/history",
|
|
28
|
+
schema: {
|
|
29
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
30
|
+
bar_type: z.enum(["second", "minute", "hour"]).describe("(Required) Bar type."),
|
|
31
|
+
bar_interval: z.number().int().min(1).max(1440).describe("(Optional) Bar intervals. The combination of bar_type and bar_interval must not exceed one year. Default is 1.").optional(),
|
|
32
|
+
start_date: z.string().describe("Starting period in YYYY-MM format for minute/hour intervals or YYYY-MM-DD for second intervals (UTC)"),
|
|
33
|
+
extended: z.boolean().describe("(Optional) Extended hours (Not all assets support extended hours). Default to true.").optional(),
|
|
34
|
+
dadj: z.boolean().describe("(Optional) Dividend adjustment for equities and etfs (has no effect on assets without dividends). Default to false.").optional(),
|
|
35
|
+
badj: z.boolean().describe("(Optional) Back-adjustment for continous futures contracts (has no effect on non-continous futures data). Default to true.").optional(),
|
|
36
|
+
settlement: z.boolean().describe("(Optional) Set Settlement as daily close. Default is false").optional(),
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
name: "get_symbol_contracts",
|
|
41
|
+
description: "List of contracts and its settlement date for futures symbols. Retrieve list of relatively recent contracts along with their settlement dates for futures symbols → Returns futures contracts with settlement dates. Use a specific contract code (e.g., CME_MINI:NQH2024) with get_symbol_history for deep history.",
|
|
42
|
+
method: "GET",
|
|
43
|
+
pathTemplate: "/v3/symbols/{symbol}/contracts",
|
|
44
|
+
schema: {
|
|
45
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: "get_symbol_info",
|
|
50
|
+
description: "Symbol information and metadata. Retrieve detailed information about a symbol including type, currency, market data, splits, option information, and more. Not intended for real-time data. → Rich metadata including option_info (available expirations/strikes). For fundamentals use get_symbol_fundamentals. For option chains use list_options.",
|
|
51
|
+
method: "GET",
|
|
52
|
+
pathTemplate: "/v3/symbols/{symbol}/info",
|
|
53
|
+
schema: {
|
|
54
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
name: "get_symbol_session",
|
|
59
|
+
description: "Trading session information. Retrieve trading session details including holidays, trading hours, timezone, and session corrections",
|
|
60
|
+
method: "GET",
|
|
61
|
+
pathTemplate: "/v3/symbols/{symbol}/session",
|
|
62
|
+
schema: {
|
|
63
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "get_quotes",
|
|
68
|
+
description: "Real-time quote data. Retrieve real-time quote data for up to 10 symbols → Returns current price snapshot. For historical data use get_symbol_series. For company details use get_symbol_info.",
|
|
69
|
+
method: "GET",
|
|
70
|
+
pathTemplate: "/v3/symbols/quotes",
|
|
71
|
+
schema: {
|
|
72
|
+
codes: z.string().describe("Comma-separated list of symbol codes in Exchange:Symbol format. Each code must match the SymbolCode pattern."),
|
|
73
|
+
settlement: z.boolean().describe("(Optional) Set Settlement as daily close. Default is false").optional(),
|
|
74
|
+
badj: z.boolean().describe("(Optional) Back-adjustment for continous futures contracts (has no effect on non-continous futures data). Default to true.").optional(),
|
|
75
|
+
extended: z.boolean().describe("(Optional) Extended hours (Not all assets support extended hours). Default to true.").optional(),
|
|
76
|
+
dadj: z.boolean().describe("(Optional) Dividend adjustment for equities and etfs (has no effect on assets without dividends). Default to false.").optional(),
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "search_symbols",
|
|
81
|
+
description: "Search for symbols. Search for Symbols. To search for a specific type or country, leave query empty. To search for all symbols from a specific exchange, use query like \"EXCHANGE:\" e.g. \"NASDAQ:\". → ALWAYS start here to find the correct symbol code. InsightSentry uses EXCHANGE:SYMBOL format (e.g., NASDAQ:AAPL) which differs from other platforms. Do NOT guess codes — search first. Use the returned code with get_quotes, get_symbol_series, get_symbol_info, or any other tool.",
|
|
82
|
+
method: "GET",
|
|
83
|
+
pathTemplate: "/v3/symbols/search",
|
|
84
|
+
schema: {
|
|
85
|
+
query: z.string().describe("Search query string").optional(),
|
|
86
|
+
type: z.enum(["crypto", "index", "forex", "futures", "stock", "economic", "etf", "reit", "mutual_fund", "trust_fund", "bond", "bond_gov", "bond_corp", "common_stock", "depository_receipt", "fund", "preferred_stock", "warrant", "crypto_spot", "crypto_fundamental", "crypto_swap", "crypto_futures", "crypto_index", "none"]).describe("Filter by instrument type").optional(),
|
|
87
|
+
country: z.string().describe("Filter by country. 2-letter ISO code").optional(),
|
|
88
|
+
page: z.number().int().min(1).describe("Each page returns up to 50 results.").optional(),
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
name: "get_symbol_fundamentals",
|
|
93
|
+
description: "Fundamental data and statistics. Retrieve comprehensive fundamental data including company info, valuation ratios, profitability metrics, balance sheet, cash flow, income statement, and more → Returns current fundamental values. For historical fundamentals use get_fundamentals_series (get available IDs from the fundamental_series field).",
|
|
94
|
+
method: "GET",
|
|
95
|
+
pathTemplate: "/v3/symbols/{symbol}/fundamentals",
|
|
96
|
+
schema: {
|
|
97
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
98
|
+
},
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
name: "get_fundamentals_series",
|
|
102
|
+
description: "Fundamental Data in Time Series format. Retrieve historical data for specific indicators. A maximum of 5 Indicator IDs can be requested at a time. The list of available Indicator IDs is provided in the fundamental_series and technical_series fields of the /v3/symbols/fundamentals endpoint. Some parameters may not apply to certain Indicator IDs, and not all indicators are supported for every symbol. → Get available indicator IDs from get_symbol_fundamentals (fundamental_series field) or get_fundamentals_meta. Max 5 IDs per request.",
|
|
103
|
+
method: "GET",
|
|
104
|
+
pathTemplate: "/v3/symbols/{symbol}/fundamentals/series",
|
|
105
|
+
schema: {
|
|
106
|
+
symbol: z.string().describe("Symbol in Exchange:Symbol format (e.g., NASDAQ:AAPL, NYSE:TSLA). You can search for this symbol code using the /v3/symbols/search endpoint."),
|
|
107
|
+
ids: z.string().describe("(Required) Comma-separated list of indicator IDs (maximum 5). Available IDs can be retrieved from /v3/symbols/fundamentals endpoint's 'fundamental_series' and 'technical_series' fields."),
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "get_fundamentals_meta",
|
|
112
|
+
description: "Meta data for /fundamentals endpoints. Retrieve the fundamentals schema and metadata. This endpoint returns the layout and definitions only — it does not include actual data, which are provided by /v3/symbols/{symbol}/fundamentals. → Returns available indicator IDs. Use these IDs with get_fundamentals_series for historical data.",
|
|
113
|
+
method: "GET",
|
|
114
|
+
pathTemplate: "/v3/symbols/fundamentals",
|
|
115
|
+
schema: {},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: "list_options",
|
|
119
|
+
description: "List available options. Retrieve list of available option contracts for a given symbol → Returns option codes. Next: use get_options_expiration (filter by date) or get_options_strike (filter by strike) to get chain with Greeks.",
|
|
120
|
+
method: "GET",
|
|
121
|
+
pathTemplate: "/v3/options/list",
|
|
122
|
+
schema: {
|
|
123
|
+
code: z.string().describe("(Required) Symbol code in Exchange:Symbol format (e.g., NASDAQ:AAPL). Use search_symbols to find the correct code."),
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "get_options_expiration",
|
|
128
|
+
description: "Option chain by expiration. Retrieve option chain data for a specific expiration date → Returns option chain with Greeks for one expiration. Use the option codes with get_quotes for real-time prices or get_symbol_series for historical data.",
|
|
129
|
+
method: "GET",
|
|
130
|
+
pathTemplate: "/v3/options/expiration",
|
|
131
|
+
schema: {
|
|
132
|
+
code: z.string().describe("(Required) Symbol code in Exchange:Symbol format (e.g., NASDAQ:AAPL). Use search_symbols to find the correct code."),
|
|
133
|
+
expiration: z.string().describe("(Required) Expiration Date (format: YYYY-MM-DD)"),
|
|
134
|
+
sortBy: z.enum(["type", "ask_price", "bid_price", "delta", "gamma", "expiration", "implied_volatility", "rho", "strike_price", "theoretical_price", "theta", "vega"]).describe("(Optional) Sort by specified field").optional(),
|
|
135
|
+
sort: z.enum(["asc", "desc"]).describe("(Optional) Sort order").optional(),
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
name: "get_options_strike",
|
|
140
|
+
description: "Option chain by strike price. Retrieve option chain data for a specific strike price → Returns option chain with Greeks for one strike across expirations. Use option codes with get_quotes or get_symbol_series.",
|
|
141
|
+
method: "GET",
|
|
142
|
+
pathTemplate: "/v3/options/strike",
|
|
143
|
+
schema: {
|
|
144
|
+
code: z.string().describe("(Required) Symbol code in Exchange:Symbol format (e.g., NASDAQ:AAPL). Use search_symbols to find the correct code."),
|
|
145
|
+
strike: z.number().min(0).describe("(Required) Strike Price"),
|
|
146
|
+
sortBy: z.enum(["type", "ask_price", "bid_price", "delta", "gamma", "expiration", "implied_volatility", "rho", "strike_price", "theoretical_price", "theta", "vega"]).describe("(Optional) Sort by specified field").optional(),
|
|
147
|
+
sort: z.enum(["asc", "desc"]).describe("(Optional) Sort order").optional(),
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "get_dividends",
|
|
152
|
+
description: "Dividend calendar. Retrieve dividend calendar data for a specified time range → Returns list with symbol, ex-date, pay-date, amount, yield. Default: current week. Use 'w' to look ahead (w=2 for next week, w=4 for a month out). Filter by country with 'c' (e.g., 'US').",
|
|
153
|
+
method: "GET",
|
|
154
|
+
pathTemplate: "/v3/calendar/dividends",
|
|
155
|
+
schema: {
|
|
156
|
+
w: z.number().int().min(1).describe("Specifies the week range. For example, 1 means this week (starting today) through next week, 2 means next week through the following week, and so on.").optional(),
|
|
157
|
+
c: z.string().describe("(Optional) Filter by country code(s) as a comma-separated ISO 3166-1 alpha-2 string, for example `US,AR`. Invalid codes will be ignored.").optional(),
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
name: "get_earnings",
|
|
162
|
+
description: "Earnings calendar. Retrieve earnings calendar data for a specified time range → Returns list with symbol, report date, EPS estimate, EPS actual, revenue estimate, revenue actual. Default: current week. Use 'w' to look ahead. Filter by country with 'c'.",
|
|
163
|
+
method: "GET",
|
|
164
|
+
pathTemplate: "/v3/calendar/earnings",
|
|
165
|
+
schema: {
|
|
166
|
+
w: z.number().int().min(1).describe("Specifies the week range. For example, 1 means this week (starting today) through next week, 2 means next week through the following week, and so on.").optional(),
|
|
167
|
+
c: z.string().describe("(Optional) Filter by country code(s) as a comma-separated ISO 3166-1 alpha-2 string, for example `US,AR`. Invalid codes will be ignored.").optional(),
|
|
168
|
+
},
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: "get_ipos",
|
|
172
|
+
description: "IPO calendar. Retrieve IPO calendar data for a specified time range → Returns list with symbol, IPO date, price range, shares offered. Default: current week. Use 'w' to look ahead. Filter by country with 'c'.",
|
|
173
|
+
method: "GET",
|
|
174
|
+
pathTemplate: "/v3/calendar/ipos",
|
|
175
|
+
schema: {
|
|
176
|
+
w: z.number().int().min(1).describe("Specifies the week range. For example, 1 means this week (starting today) through next week, 2 means next week through the following week, and so on.").optional(),
|
|
177
|
+
c: z.string().describe("(Optional) Filter by country code(s) as a comma-separated ISO 3166-1 alpha-2 string, for example `US,AR`. Invalid codes will be ignored.").optional(),
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: "get_events",
|
|
182
|
+
description: "Economic events calendar. Retrieve economic events calendar data for a specified time range → Returns list with symbol, event date, event type, description. Default: current week. Use 'w' to look ahead. Filter by country with 'c'.",
|
|
183
|
+
method: "GET",
|
|
184
|
+
pathTemplate: "/v3/calendar/events",
|
|
185
|
+
schema: {
|
|
186
|
+
w: z.number().int().min(1).describe("Specifies the week range. For example, 1 means this week (starting today) through next week, 2 means next week through the following week, and so on.").optional(),
|
|
187
|
+
c: z.string().describe("(Optional) Filter by country code(s) as a comma-separated ISO 3166-1 alpha-2 string, for example `US,AR`. Invalid codes will be ignored.").optional(),
|
|
188
|
+
},
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: "get_newsfeed",
|
|
192
|
+
description: "News feed. Retrieve latest financial news with optional keyword filtering",
|
|
193
|
+
method: "GET",
|
|
194
|
+
pathTemplate: "/v3/newsfeed",
|
|
195
|
+
schema: {
|
|
196
|
+
keywords: z.string().describe("(Optional) Keywords to include items that match one of the keywords in the title or content, separated by a comma. e.g. apple,tesla").optional(),
|
|
197
|
+
limit: z.string().describe("(Optional) Limit the number of news items returned. Must be an integer between 1 and 500. Default is 500.").optional(),
|
|
198
|
+
page: z.number().int().min(1).describe("Page number for pagination").optional(),
|
|
199
|
+
},
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
name: "get_stock_screener_params",
|
|
203
|
+
description: "Get available stock screener parameters. Retrieve the list of available fields and parameters for stock screening → Returns available fields, exchanges, countries. Next: use screen_stocks with these fields to filter the market.",
|
|
204
|
+
method: "GET",
|
|
205
|
+
pathTemplate: "/v3/screeners/stock",
|
|
206
|
+
schema: {},
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
name: "screen_stocks",
|
|
210
|
+
description: "Stock Screener. Retrieve stock data based on specified filter criteria → WORKFLOW: 1) Call get_stock_screener_params to discover available fields, exchanges, countries. 2) POST with your chosen fields. Common fields: close, change, change_percent, volume, market_cap, high, low, open. Example: { \"fields\": [\"close\", \"change_percent\", \"volume\", \"market_cap\"], \"sortBy\": \"market_cap\", \"sortOrder\": \"desc\", \"countries\": [\"US\"] }. Returns up to 1000 results per page.",
|
|
211
|
+
method: "POST",
|
|
212
|
+
pathTemplate: "/v3/screeners/stock",
|
|
213
|
+
schema: {
|
|
214
|
+
fields: z.array(z.string()).describe("Array of field names to include in the response (1-10 fields). Discover available fields by calling the GET screener params tool first (e.g., get_stock_screener_params). Field names are case-insensitive."),
|
|
215
|
+
exchanges: z.array(z.string()).describe("Array of exchange names to filter by (e.g., [\"NYSE\", \"NASDAQ\"]). Discover available exchanges via the GET screener params tool.").optional(),
|
|
216
|
+
ignore_invalid: z.boolean().describe("If true, invalid fields, exchanges, or countries are silently filtered out instead of returning an error. Useful when you're unsure if a field exists.").optional(),
|
|
217
|
+
countries: z.array(z.string()).describe("Array of country codes to filter by (e.g., [\"US\", \"CA\"]). Not available for crypto screener. Discover available countries via the GET screener params tool.").optional(),
|
|
218
|
+
page: z.number().int().describe("Page number for pagination").optional(),
|
|
219
|
+
sortBy: z.string().describe("Field name to sort results by. Must be one of the requested fields or \"name\". Default: \"name\".").optional(),
|
|
220
|
+
sortOrder: z.enum(["asc", "desc"]).describe("Sort order: \"asc\" (ascending) or \"desc\" (descending). Default: \"asc\".").optional(),
|
|
221
|
+
},
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
name: "get_etf_screener_params",
|
|
225
|
+
description: "Get available ETF screener parameters. Retrieve the list of available fields and parameters for ETF screening → Returns available fields, exchanges, countries. Next: use screen_etfs with these fields.",
|
|
226
|
+
method: "GET",
|
|
227
|
+
pathTemplate: "/v3/screeners/etf",
|
|
228
|
+
schema: {},
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
name: "screen_etfs",
|
|
232
|
+
description: "ETF Screener. Retrieve ETF data based on specified filter criteria → WORKFLOW: 1) Call get_etf_screener_params to discover available fields. 2) POST with your chosen fields. Common fields: close, change, volume. Example: { \"fields\": [\"close\", \"volume\", \"change\"], \"exchanges\": [\"NYSE\", \"NASDAQ\"], \"sortBy\": \"volume\", \"sortOrder\": \"desc\" }.",
|
|
233
|
+
method: "POST",
|
|
234
|
+
pathTemplate: "/v3/screeners/etf",
|
|
235
|
+
schema: {
|
|
236
|
+
fields: z.array(z.string()).describe("Array of field names to include in the response (1-10 fields). Discover available fields by calling get_etf_screener_params first. Field names are case-insensitive."),
|
|
237
|
+
exchanges: z.array(z.string()).describe("Array of exchange names to filter by (e.g., [\"NYSE\", \"NASDAQ\"]). Discover available exchanges via the GET screener params tool.").optional(),
|
|
238
|
+
ignore_invalid: z.boolean().describe("If true, invalid fields, exchanges, or countries are silently filtered out instead of returning an error. Useful when you're unsure if a field exists.").optional(),
|
|
239
|
+
countries: z.array(z.string()).describe("Array of country codes to filter by (e.g., [\"US\", \"CA\"]). Not available for crypto screener. Discover available countries via the GET screener params tool.").optional(),
|
|
240
|
+
page: z.number().int().describe("Page number for pagination").optional(),
|
|
241
|
+
sortBy: z.string().describe("Field name to sort results by. Must be one of the requested fields or \"name\". Default: \"name\".").optional(),
|
|
242
|
+
sortOrder: z.enum(["asc", "desc"]).describe("Sort order: \"asc\" (ascending) or \"desc\" (descending). Default: \"asc\".").optional(),
|
|
243
|
+
},
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
name: "get_bond_screener_params",
|
|
247
|
+
description: "Get available bond screener parameters. Retrieve the list of available fields and parameters for bond screening → Returns available fields, exchanges, countries. Next: use screen_bonds with these fields.",
|
|
248
|
+
method: "GET",
|
|
249
|
+
pathTemplate: "/v3/screeners/bond",
|
|
250
|
+
schema: {},
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
name: "screen_bonds",
|
|
254
|
+
description: "Bond Screener. Retrieve bond data based on specified filter criteria → WORKFLOW: 1) Call get_bond_screener_params to discover available fields. 2) POST with your chosen fields. Example: { \"fields\": [\"close_percent\", \"yield_to_maturity\", \"volume\"], \"countries\": [\"US\"], \"sortBy\": \"yield_to_maturity\", \"sortOrder\": \"desc\" }.",
|
|
255
|
+
method: "POST",
|
|
256
|
+
pathTemplate: "/v3/screeners/bond",
|
|
257
|
+
schema: {
|
|
258
|
+
fields: z.array(z.string()).describe("Array of field names to include in the response (1-10 fields). Discover available fields by calling get_bond_screener_params first. Field names are case-insensitive."),
|
|
259
|
+
exchanges: z.array(z.string()).describe("Array of exchange names to filter by (e.g., [\"NYSE\", \"NASDAQ\"]). Discover available exchanges via the GET screener params tool.").optional(),
|
|
260
|
+
ignore_invalid: z.boolean().describe("If true, invalid fields, exchanges, or countries are silently filtered out instead of returning an error. Useful when you're unsure if a field exists.").optional(),
|
|
261
|
+
countries: z.array(z.string()).describe("Array of country codes to filter by (e.g., [\"US\", \"CA\"]). Not available for crypto screener. Discover available countries via the GET screener params tool.").optional(),
|
|
262
|
+
page: z.number().int().describe("Page number for pagination").optional(),
|
|
263
|
+
sortBy: z.string().describe("Field name to sort results by. Must be one of the requested fields or \"name\". Default: \"name\".").optional(),
|
|
264
|
+
sortOrder: z.enum(["asc", "desc"]).describe("Sort order: \"asc\" (ascending) or \"desc\" (descending). Default: \"asc\".").optional(),
|
|
265
|
+
},
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
name: "get_crypto_screener_params",
|
|
269
|
+
description: "Get available crypto screener parameters. Retrieve the list of available fields and parameters for crypto screening → Returns available fields and exchanges (no country filter for crypto). Next: use screen_crypto with these fields.",
|
|
270
|
+
method: "GET",
|
|
271
|
+
pathTemplate: "/v3/screeners/crypto",
|
|
272
|
+
schema: {},
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
name: "screen_crypto",
|
|
276
|
+
description: "Crypto Screener. Retrieve cryptocurrency data based on specified filter criteria → WORKFLOW: 1) Call get_crypto_screener_params to discover available fields. 2) POST with your chosen fields. Note: country filtering NOT supported for crypto. Example: { \"fields\": [\"close\", \"volume\", \"market_cap\"], \"sortBy\": \"market_cap\", \"sortOrder\": \"desc\" }.",
|
|
277
|
+
method: "POST",
|
|
278
|
+
pathTemplate: "/v3/screeners/crypto",
|
|
279
|
+
schema: {
|
|
280
|
+
fields: z.array(z.string()).describe("Array of field names to include in the response (1-10 fields). Discover available fields by calling get_crypto_screener_params first. Field names are case-insensitive."),
|
|
281
|
+
exchanges: z.array(z.string()).describe("Array of exchange names to filter by (e.g., [\"NYSE\", \"NASDAQ\"]). Discover available exchanges via the GET screener params tool.").optional(),
|
|
282
|
+
ignore_invalid: z.boolean().describe("If true, invalid fields, exchanges, or countries are silently filtered out instead of returning an error. Useful when you're unsure if a field exists.").optional(),
|
|
283
|
+
countries: z.array(z.string()).describe("Array of country codes to filter by (e.g., [\"US\", \"CA\"]). Not available for crypto screener. Discover available countries via the GET screener params tool.").optional(),
|
|
284
|
+
page: z.number().int().describe("Page number for pagination").optional(),
|
|
285
|
+
sortBy: z.string().describe("Field name to sort results by. Must be one of the requested fields or \"name\". Default: \"name\".").optional(),
|
|
286
|
+
sortOrder: z.enum(["asc", "desc"]).describe("Sort order: \"asc\" (ascending) or \"desc\" (descending). Default: \"asc\".").optional(),
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
name: "get_documents",
|
|
291
|
+
description: "List documents for a symbol. Retrieve a list of available documents (filings, transcripts, reports) for a given symbol → Returns document list. Use the id field with get_document to read content. Note: PDF documents return binary data.",
|
|
292
|
+
method: "GET",
|
|
293
|
+
pathTemplate: "/v3/documents",
|
|
294
|
+
schema: {
|
|
295
|
+
code: z.string().describe("(Required) Symbol code in Exchange:Symbol format"),
|
|
296
|
+
},
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
name: "get_document",
|
|
300
|
+
description: "Retrieve a specific document. Retrieve the content of a specific document. Returns JSON with title, published_at, and content for non-PDF documents, or binary PDF data for PDF documents. → Returns document text content. Get document IDs from get_documents first.",
|
|
301
|
+
method: "GET",
|
|
302
|
+
pathTemplate: "/v3/documents/{id}",
|
|
303
|
+
schema: {
|
|
304
|
+
id: z.string().describe("Document ID in format type:uniqueidentifier (e.g., transcripts:2133670 or report:2048334-36ccace7a771cb10e19ed97b7d474ca3)"),
|
|
305
|
+
code: z.string().describe("(Required) Symbol code in Exchange:Symbol format"),
|
|
306
|
+
},
|
|
307
|
+
}
|
|
308
|
+
];
|
|
309
|
+
//# sourceMappingURL=tool-definitions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tool-definitions.js","sourceRoot":"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1
|
+
{
|
|
2
|
+
"name": "@insightsentry/mcp",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "MCP server for InsightSentry financial data API - provides AI-accessible tools for market data, screening, options, and comprehensive API documentation resources",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"insightsentry-mcp": "./bin/insightsentry-mcp.js"
|
|
9
|
+
},
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"bin"
|
|
13
|
+
],
|
|
14
|
+
"scripts": {
|
|
15
|
+
"generate": "tsx scripts/generate.ts",
|
|
16
|
+
"generate:docs": "tsx scripts/generate-docs.ts",
|
|
17
|
+
"build": "npm run generate && tsc",
|
|
18
|
+
"dev": "tsx src/index.ts",
|
|
19
|
+
"prepublishOnly": "npm run build"
|
|
20
|
+
},
|
|
21
|
+
"keywords": [
|
|
22
|
+
"mcp",
|
|
23
|
+
"model-context-protocol",
|
|
24
|
+
"insightsentry",
|
|
25
|
+
"financial-data",
|
|
26
|
+
"stock-market",
|
|
27
|
+
"api",
|
|
28
|
+
"websocket",
|
|
29
|
+
"ai"
|
|
30
|
+
],
|
|
31
|
+
"license": "MIT",
|
|
32
|
+
"dependencies": {
|
|
33
|
+
"@modelcontextprotocol/sdk": "^1.12.1",
|
|
34
|
+
"zod": "^4.3.6"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@types/node": "^22.19.15",
|
|
38
|
+
"tsx": "^4.19.4",
|
|
39
|
+
"typescript": "^5.8.3"
|
|
40
|
+
},
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18"
|
|
43
|
+
}
|
|
44
|
+
}
|