@cyanheads/secedgar-mcp-server 0.21.0 → 0.21.1
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/AGENTS.md +17 -17
- package/CLAUDE.md +17 -17
- package/README.md +8 -6
- package/changelog/0.21.x/0.21.1.md +29 -0
- package/dist/mcp-server/tools/annual-report-reads.d.ts +9 -6
- package/dist/mcp-server/tools/annual-report-reads.d.ts.map +1 -1
- package/dist/mcp-server/tools/annual-report-reads.js +10 -6
- package/dist/mcp-server/tools/annual-report-reads.js.map +1 -1
- package/dist/mcp-server/tools/blockquote.d.ts +13 -0
- package/dist/mcp-server/tools/blockquote.d.ts.map +1 -0
- package/dist/mcp-server/tools/blockquote.js +18 -0
- package/dist/mcp-server/tools/blockquote.js.map +1 -0
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts +10 -3
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js +169 -68
- package/dist/mcp-server/tools/definitions/get-beneficial-owners.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-filing.tool.js +31 -21
- package/dist/mcp-server/tools/definitions/get-filing.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts +1 -0
- package/dist/mcp-server/tools/definitions/get-financials.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-financials.tool.js +167 -95
- package/dist/mcp-server/tools/definitions/get-financials.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts +20 -0
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js +73 -8
- package/dist/mcp-server/tools/definitions/get-insider-transactions.tool.js.map +1 -1
- package/dist/mcp-server/tools/definitions/index.d.ts +439 -425
- package/dist/mcp-server/tools/definitions/index.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.d.ts.map +1 -1
- package/dist/mcp-server/tools/definitions/search-filings.tool.js +152 -42
- package/dist/mcp-server/tools/definitions/search-filings.tool.js.map +1 -1
- package/dist/mcp-server/tools/filing-dates.d.ts +2 -0
- package/dist/mcp-server/tools/filing-dates.d.ts.map +1 -1
- package/dist/mcp-server/tools/filing-dates.js +6 -0
- package/dist/mcp-server/tools/filing-dates.js.map +1 -1
- package/dist/services/edgar/call-scope.d.ts +9 -0
- package/dist/services/edgar/call-scope.d.ts.map +1 -1
- package/dist/services/edgar/call-scope.js +3 -0
- package/dist/services/edgar/call-scope.js.map +1 -1
- package/dist/services/edgar/concept-series.d.ts +47 -9
- package/dist/services/edgar/concept-series.d.ts.map +1 -1
- package/dist/services/edgar/concept-series.js +83 -11
- package/dist/services/edgar/concept-series.js.map +1 -1
- package/dist/services/edgar/edgar-api-service.d.ts +31 -15
- package/dist/services/edgar/edgar-api-service.d.ts.map +1 -1
- package/dist/services/edgar/edgar-api-service.js +170 -28
- package/dist/services/edgar/edgar-api-service.js.map +1 -1
- package/dist/services/edgar/filing-headers.d.ts +22 -10
- package/dist/services/edgar/filing-headers.d.ts.map +1 -1
- package/dist/services/edgar/filing-headers.js +98 -15
- package/dist/services/edgar/filing-headers.js.map +1 -1
- package/dist/services/edgar/fiscal-periods.d.ts +14 -1
- package/dist/services/edgar/fiscal-periods.d.ts.map +1 -1
- package/dist/services/edgar/fiscal-periods.js +47 -18
- package/dist/services/edgar/fiscal-periods.js.map +1 -1
- package/dist/services/edgar/ownership-parser.d.ts +19 -0
- package/dist/services/edgar/ownership-parser.d.ts.map +1 -1
- package/dist/services/edgar/ownership-parser.js +79 -0
- package/dist/services/edgar/ownership-parser.js.map +1 -1
- package/dist/services/edgar/types.d.ts +2 -0
- package/dist/services/edgar/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/server.json +3 -3
- package/skills/secedgar-guide/SKILL.md +6 -5
|
@@ -30,83 +30,331 @@ export interface ToolDefinitionOptions extends LimitClampOptions {
|
|
|
30
30
|
* it is present, so the manifest's tool count matches the documented surface.
|
|
31
31
|
*/
|
|
32
32
|
export declare function buildToolDefinitions(options: ToolDefinitionOptions): (import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
companies: import("zod").ZodArray<import("zod").ZodString>;
|
|
34
|
+
concepts: import("zod").ZodArray<import("zod").ZodString>;
|
|
35
|
+
taxonomy: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
36
|
+
"ifrs-full": "ifrs-full";
|
|
37
|
+
"us-gaap": "us-gaap";
|
|
38
|
+
}>>;
|
|
39
|
+
period_type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
40
|
+
annual: "annual";
|
|
41
|
+
quarterly: "quarterly";
|
|
42
|
+
}>>;
|
|
43
|
+
periods: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
37
44
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
45
|
+
period_type: import("zod").ZodString;
|
|
46
|
+
taxonomy: import("zod").ZodString;
|
|
47
|
+
periods: import("zod").ZodArray<import("zod").ZodString>;
|
|
48
|
+
companies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
49
|
+
input: import("zod").ZodString;
|
|
50
|
+
cik: import("zod").ZodString;
|
|
51
|
+
name: import("zod").ZodString;
|
|
52
|
+
ticker: import("zod").ZodOptional<import("zod").ZodString>;
|
|
53
|
+
}, import("zod/v4/core").$strip>>;
|
|
54
|
+
failed_companies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
55
|
+
input: import("zod").ZodString;
|
|
56
|
+
reason: import("zod").ZodEnum<{
|
|
57
|
+
ambiguous: "ambiguous";
|
|
58
|
+
no_company_facts: "no_company_facts";
|
|
59
|
+
not_found: "not_found";
|
|
60
|
+
}>;
|
|
61
|
+
message: import("zod").ZodString;
|
|
62
|
+
}, import("zod/v4/core").$strip>>;
|
|
63
|
+
deferred_companies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
64
|
+
concepts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
65
|
+
concept: import("zod").ZodString;
|
|
66
|
+
label: import("zod").ZodString;
|
|
67
|
+
units: import("zod").ZodArray<import("zod").ZodString>;
|
|
68
|
+
}, import("zod/v4/core").$strip>>;
|
|
69
|
+
cells: import("zod").ZodArray<import("zod").ZodObject<{
|
|
70
|
+
cik: import("zod").ZodString;
|
|
71
|
+
company: import("zod").ZodString;
|
|
72
|
+
concept: import("zod").ZodString;
|
|
73
|
+
period: import("zod").ZodString;
|
|
74
|
+
value: import("zod").ZodNumber;
|
|
75
|
+
unit: import("zod").ZodString;
|
|
76
|
+
taxonomy: import("zod").ZodString;
|
|
77
|
+
tag: import("zod").ZodString;
|
|
78
|
+
frame: import("zod").ZodString;
|
|
79
|
+
period_end: import("zod").ZodString;
|
|
80
|
+
form: import("zod").ZodString;
|
|
81
|
+
accession_number: import("zod").ZodString;
|
|
82
|
+
}, import("zod/v4/core").$strip>>;
|
|
83
|
+
gaps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
84
|
+
cik: import("zod").ZodString;
|
|
85
|
+
company: import("zod").ZodString;
|
|
86
|
+
concept: import("zod").ZodString;
|
|
87
|
+
tags_tried: import("zod").ZodArray<import("zod").ZodString>;
|
|
88
|
+
retry_taxonomy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
89
|
+
"ifrs-full": "ifrs-full";
|
|
90
|
+
"us-gaap": "us-gaap";
|
|
91
|
+
}>>;
|
|
92
|
+
retry_tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
|
+
}, import("zod/v4/core").$strip>>;
|
|
94
|
+
unknown_concepts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
95
|
+
concept: import("zod").ZodString;
|
|
96
|
+
derivation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
97
|
+
suggestions: import("zod").ZodArray<import("zod").ZodString>;
|
|
98
|
+
}, import("zod/v4/core").$strip>>;
|
|
99
|
+
deferred_concepts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
100
|
+
caveats: import("zod").ZodArray<import("zod").ZodString>;
|
|
101
|
+
dataset: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
102
|
+
name: import("zod").ZodString;
|
|
103
|
+
row_count: import("zod").ZodNumber;
|
|
104
|
+
expires_at: import("zod").ZodString;
|
|
105
|
+
}, import("zod/v4/core").$strip>>;
|
|
44
106
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
45
|
-
readonly reason: "
|
|
107
|
+
readonly reason: "no_companies_resolved";
|
|
108
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
109
|
+
readonly when: "None of the company inputs read resolved to a CIK; inputs past the caps were not read and are named in deferred_companies and deferred_concepts";
|
|
110
|
+
readonly recovery: "Use ticker symbols or 10-digit CIK numbers for exact matches.";
|
|
111
|
+
}, {
|
|
112
|
+
readonly reason: "no_comparable_data";
|
|
113
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
114
|
+
readonly when: "Companies resolved but not one of them reports any of the requested concepts for the requested period type; any company or concept inputs past the caps are named, unread, in deferred_companies and deferred_concepts";
|
|
115
|
+
readonly recovery: "Retry with the taxonomy or related tag the hint names, switch period_type, or discover reported concept names with secedgar_search_concepts.";
|
|
116
|
+
}, {
|
|
117
|
+
readonly reason: "unknown_concept";
|
|
118
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
119
|
+
readonly when: "Every requested concept is neither a supported friendly name nor shaped like an XBRL tag, so no request is sent";
|
|
120
|
+
readonly recovery: "Use a friendly name from secedgar_search_concepts or a valid raw XBRL tag.";
|
|
121
|
+
}, {
|
|
122
|
+
readonly reason: 'rate_limited';
|
|
123
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
124
|
+
readonly when: "SEC is rate-limiting this server's IP — SEC answered 429, or the call was refused without being sent while the cool-down after one runs";
|
|
125
|
+
readonly recovery: 'Wait the retryAfter seconds the error carries, then retry — SEC lifts the block only once requests stop for ten minutes.';
|
|
126
|
+
readonly retryable: true;
|
|
127
|
+
readonly thrownBy: 'service';
|
|
128
|
+
}, {
|
|
129
|
+
readonly reason: 'sec_unreachable';
|
|
46
130
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
47
|
-
readonly when: "
|
|
48
|
-
readonly recovery:
|
|
131
|
+
readonly when: "SEC EDGAR gave no complete, readable response — on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out) the connection failed, no response headers arrived within 15 seconds, or the body broke off or stalled for 15 seconds, each wait capped at what was left of that budget; a 200 body was not the JSON SEC serves; or earlier SEC failures had spent that budget, so the request was never sent";
|
|
132
|
+
readonly recovery: 'Retry the same call in a minute — SEC EDGAR did not deliver a complete, readable response, and nothing in the request needs to change.';
|
|
133
|
+
readonly retryable: true;
|
|
134
|
+
readonly thrownBy: 'service';
|
|
49
135
|
}, {
|
|
50
|
-
readonly reason:
|
|
136
|
+
readonly reason: 'sec_unavailable';
|
|
137
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
138
|
+
readonly when: "SEC EDGAR answered HTTP 500, 502, 503, or 504 on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out)";
|
|
139
|
+
readonly recovery: 'Retry the same call in a minute — SEC EDGAR failed on its side, and nothing in the request needs to change.';
|
|
140
|
+
readonly retryable: true;
|
|
141
|
+
readonly thrownBy: 'service';
|
|
142
|
+
}], {
|
|
143
|
+
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
144
|
+
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
145
|
+
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
146
|
+
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
147
|
+
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
148
|
+
company: import("zod").ZodString;
|
|
149
|
+
items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
150
|
+
[x: string]: string;
|
|
151
|
+
}>>>;
|
|
152
|
+
filed_after: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
153
|
+
filed_before: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
154
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
155
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
156
|
+
cik: import("zod").ZodString;
|
|
157
|
+
company_name: import("zod").ZodString;
|
|
158
|
+
items_filter: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
159
|
+
total_matched: import("zod").ZodNumber;
|
|
160
|
+
total_8k_scanned: import("zod").ZodNumber;
|
|
161
|
+
item_distribution: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>;
|
|
162
|
+
history_scanned_through: import("zod").ZodOptional<import("zod").ZodString>;
|
|
163
|
+
older_filings_unexamined: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
164
|
+
filings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
165
|
+
accession_number: import("zod").ZodString;
|
|
166
|
+
form: import("zod").ZodString;
|
|
167
|
+
filing_date: import("zod").ZodString;
|
|
168
|
+
report_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
169
|
+
primary_document: import("zod").ZodOptional<import("zod").ZodString>;
|
|
170
|
+
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
171
|
+
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
172
|
+
code: import("zod").ZodString;
|
|
173
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
174
|
+
regime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
175
|
+
current: "current";
|
|
176
|
+
legacy: "legacy";
|
|
177
|
+
}>>;
|
|
178
|
+
}, import("zod/v4/core").$strip>>;
|
|
179
|
+
}, import("zod/v4/core").$strip>>;
|
|
180
|
+
dataset: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
181
|
+
name: import("zod").ZodString;
|
|
182
|
+
row_count: import("zod").ZodNumber;
|
|
183
|
+
expires_at: import("zod").ZodString;
|
|
184
|
+
truncated: import("zod").ZodBoolean;
|
|
185
|
+
}, import("zod/v4/core").$strip>>;
|
|
186
|
+
}, import("zod/v4/core").$strip>, readonly [{
|
|
187
|
+
readonly reason: "no_match";
|
|
188
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
189
|
+
readonly when: "No company matches the query";
|
|
190
|
+
readonly recovery: "Use a ticker symbol or 10-digit CIK for an exact match, or find the company with secedgar_company_search.";
|
|
191
|
+
}, {
|
|
192
|
+
readonly reason: "ambiguous_company";
|
|
51
193
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
52
|
-
readonly when: "The
|
|
53
|
-
readonly recovery: "
|
|
54
|
-
readonly thrownBy: "service";
|
|
194
|
+
readonly when: "The company input resolves to multiple entities and the target is ambiguous";
|
|
195
|
+
readonly recovery: "Use a ticker symbol or 10-digit CIK from the matches list for an exact match.";
|
|
55
196
|
}, {
|
|
56
|
-
readonly reason:
|
|
57
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.
|
|
58
|
-
readonly when: "
|
|
59
|
-
readonly recovery:
|
|
60
|
-
readonly
|
|
197
|
+
readonly reason: 'rate_limited';
|
|
198
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
199
|
+
readonly when: "SEC is rate-limiting this server's IP — SEC answered 429, or the call was refused without being sent while the cool-down after one runs";
|
|
200
|
+
readonly recovery: 'Wait the retryAfter seconds the error carries, then retry — SEC lifts the block only once requests stop for ten minutes.';
|
|
201
|
+
readonly retryable: true;
|
|
202
|
+
readonly thrownBy: 'service';
|
|
61
203
|
}, {
|
|
62
|
-
readonly reason:
|
|
204
|
+
readonly reason: 'sec_unreachable';
|
|
205
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
206
|
+
readonly when: "SEC EDGAR gave no complete, readable response — on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out) the connection failed, no response headers arrived within 15 seconds, or the body broke off or stalled for 15 seconds, each wait capped at what was left of that budget; a 200 body was not the JSON SEC serves; or earlier SEC failures had spent that budget, so the request was never sent";
|
|
207
|
+
readonly recovery: 'Retry the same call in a minute — SEC EDGAR did not deliver a complete, readable response, and nothing in the request needs to change.';
|
|
208
|
+
readonly retryable: true;
|
|
209
|
+
readonly thrownBy: 'service';
|
|
210
|
+
}, {
|
|
211
|
+
readonly reason: 'sec_unavailable';
|
|
212
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
213
|
+
readonly when: "SEC EDGAR answered HTTP 500, 502, 503, or 504 on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out)";
|
|
214
|
+
readonly recovery: 'Retry the same call in a minute — SEC EDGAR failed on its side, and nothing in the request needs to change.';
|
|
215
|
+
readonly retryable: true;
|
|
216
|
+
readonly thrownBy: 'service';
|
|
217
|
+
}], {
|
|
218
|
+
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
219
|
+
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
220
|
+
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
221
|
+
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
222
|
+
readonly resolvedAs: import("zod").ZodOptional<import("zod").ZodString>;
|
|
223
|
+
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
224
|
+
query: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
225
|
+
forms: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
226
|
+
filed_after: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
227
|
+
filed_before: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
228
|
+
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
229
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
230
|
+
sort: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
231
|
+
filing_date_asc: "filing_date_asc";
|
|
232
|
+
filing_date_desc: "filing_date_desc";
|
|
233
|
+
relevance: "relevance";
|
|
234
|
+
}>>;
|
|
235
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
236
|
+
total: import("zod").ZodNumber;
|
|
237
|
+
total_is_exact: import("zod").ZodBoolean;
|
|
238
|
+
total_documents: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
239
|
+
next_offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
240
|
+
results: import("zod").ZodArray<import("zod").ZodObject<{
|
|
241
|
+
accession_number: import("zod").ZodString;
|
|
242
|
+
form: import("zod").ZodOptional<import("zod").ZodString>;
|
|
243
|
+
filing_date: import("zod").ZodString;
|
|
244
|
+
period_ending: import("zod").ZodOptional<import("zod").ZodString>;
|
|
245
|
+
company_name: import("zod").ZodString;
|
|
246
|
+
cik: import("zod").ZodString;
|
|
247
|
+
ticker: import("zod").ZodOptional<import("zod").ZodString>;
|
|
248
|
+
file_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
249
|
+
matched_documents: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
250
|
+
name: import("zod").ZodString;
|
|
251
|
+
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
252
|
+
}, import("zod/v4/core").$strip>>>;
|
|
253
|
+
items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
254
|
+
code: import("zod").ZodString;
|
|
255
|
+
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
256
|
+
regime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
257
|
+
current: "current";
|
|
258
|
+
legacy: "legacy";
|
|
259
|
+
}>>;
|
|
260
|
+
}, import("zod/v4/core").$strip>>>;
|
|
261
|
+
sic: import("zod").ZodOptional<import("zod").ZodString>;
|
|
262
|
+
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
263
|
+
source: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
264
|
+
efts: "efts";
|
|
265
|
+
"full-index": "full-index";
|
|
266
|
+
submissions: "submissions";
|
|
267
|
+
}>>;
|
|
268
|
+
}, import("zod/v4/core").$strip>>;
|
|
269
|
+
form_distribution: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>>;
|
|
270
|
+
scan: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
271
|
+
candidates: import("zod").ZodNumber;
|
|
272
|
+
scanned: import("zod").ZodNumber;
|
|
273
|
+
matched: import("zod").ZodNumber;
|
|
274
|
+
capped: import("zod").ZodBoolean;
|
|
275
|
+
}, import("zod/v4/core").$strip>>;
|
|
276
|
+
dataset: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
277
|
+
name: import("zod").ZodString;
|
|
278
|
+
row_count: import("zod").ZodNumber;
|
|
279
|
+
expires_at: import("zod").ZodString;
|
|
280
|
+
truncated: import("zod").ZodBoolean;
|
|
281
|
+
}, import("zod/v4/core").$strip>>;
|
|
282
|
+
}, import("zod/v4/core").$strip>, readonly [{
|
|
283
|
+
readonly reason: "unresolved_ticker";
|
|
63
284
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
64
|
-
readonly when: "
|
|
65
|
-
readonly recovery: "
|
|
285
|
+
readonly when: "A ticker: targeting token in the query does not resolve to a known company";
|
|
286
|
+
readonly recovery: "Verify the symbol with secedgar_company_search, or target by CIK with cik:<number> instead.";
|
|
66
287
|
readonly thrownBy: "service";
|
|
67
288
|
}, {
|
|
68
|
-
readonly reason: "
|
|
289
|
+
readonly reason: "ambiguous_company";
|
|
69
290
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
70
|
-
readonly when: "
|
|
71
|
-
readonly recovery: "
|
|
291
|
+
readonly when: "A ticker: targeting token in the query resolves to multiple companies and the target is ambiguous";
|
|
292
|
+
readonly recovery: "Use ticker: or cik: with a ticker symbol or 10-digit CIK from the matches list for an exact match.";
|
|
72
293
|
readonly thrownBy: "service";
|
|
73
294
|
}, {
|
|
74
|
-
readonly reason: "
|
|
295
|
+
readonly reason: "invalid_cik";
|
|
75
296
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
76
|
-
readonly when: "
|
|
77
|
-
readonly recovery: "
|
|
297
|
+
readonly when: "A cik: targeting token in the query is not a 1-10 digit number";
|
|
298
|
+
readonly recovery: "Pass a numeric CIK such as cik:320193 — find it with secedgar_company_search if unknown.";
|
|
78
299
|
readonly thrownBy: "service";
|
|
79
300
|
}, {
|
|
80
|
-
readonly reason: "
|
|
301
|
+
readonly reason: "unsupported_entity_scope";
|
|
81
302
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
82
|
-
readonly when: "
|
|
83
|
-
readonly recovery: "
|
|
303
|
+
readonly when: "A ticker: or cik: token in the query is led by - or a NOT term, or follows another entity token";
|
|
304
|
+
readonly recovery: "Keep one ticker: or cik: token as its own term with no - or NOT before it. To leave a company out, drop the token and skip the result rows whose cik is that company's.";
|
|
84
305
|
readonly thrownBy: "service";
|
|
85
306
|
}, {
|
|
86
|
-
readonly reason: "
|
|
87
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.
|
|
88
|
-
readonly when: "
|
|
89
|
-
readonly recovery: "
|
|
307
|
+
readonly reason: "entity_not_found";
|
|
308
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
309
|
+
readonly when: "A cik: targeting token on a pre-2001 date range names a CIK with no EDGAR submissions history";
|
|
310
|
+
readonly recovery: "Confirm the CIK with secedgar_company_search — an accession-number prefix names the filing agent, not the issuer.";
|
|
90
311
|
readonly thrownBy: "service";
|
|
91
312
|
}, {
|
|
92
|
-
readonly reason: "
|
|
313
|
+
readonly reason: "missing_criteria";
|
|
93
314
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
94
|
-
readonly when: "
|
|
95
|
-
readonly recovery: "
|
|
96
|
-
readonly thrownBy: "service";
|
|
315
|
+
readonly when: "Neither a full-text query nor a forms filter was provided (a date range cannot stand alone)";
|
|
316
|
+
readonly recovery: "Provide search terms, or browse by form type (forms: [\"S-1\"]) or entity (ticker:AAPL / cik:320193 in the query) — optionally narrowed by date.";
|
|
97
317
|
}, {
|
|
98
|
-
readonly reason: "
|
|
318
|
+
readonly reason: "pre2001_full_text_unscoped";
|
|
99
319
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
100
|
-
readonly when: "
|
|
101
|
-
readonly recovery: "
|
|
102
|
-
readonly thrownBy: "service";
|
|
320
|
+
readonly when: "A date range reaching before 2001-01-01 carries free-text terms with no entity scope — no pre-2001 full-text index exists, and nothing bounds a local scan";
|
|
321
|
+
readonly recovery: "Add ticker: or cik: entity scope to the query, drop the text terms and browse by form type (forms: [\"10-K\"]) and date, or, for a range that reaches 2001, start the range at 2001-01-01.";
|
|
103
322
|
}, {
|
|
104
|
-
readonly reason: "
|
|
323
|
+
readonly reason: "offset_out_of_range";
|
|
105
324
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
106
|
-
readonly when: "
|
|
107
|
-
readonly recovery: "
|
|
108
|
-
readonly
|
|
325
|
+
readonly when: "A sort=relevance search with no ticker:/cik: scope and no date range reaching before 2001 asks for an offset above 9900, past the deepest page EDGAR full-text search serves";
|
|
326
|
+
readonly recovery: "Use an offset of 9900 or less — a page there with limit 100 reaches EDGAR's 10,000-document cap — or narrow the search with a shorter filed_after/filed_before window, a forms filter, or more specific terms so fewer documents match.";
|
|
327
|
+
readonly retryable: false;
|
|
328
|
+
}, {
|
|
329
|
+
readonly reason: 'rate_limited';
|
|
330
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
331
|
+
readonly when: "SEC is rate-limiting this server's IP — SEC answered 429, or the call was refused without being sent while the cool-down after one runs";
|
|
332
|
+
readonly recovery: 'Wait the retryAfter seconds the error carries, then retry — SEC lifts the block only once requests stop for ten minutes.';
|
|
333
|
+
readonly retryable: true;
|
|
334
|
+
readonly thrownBy: 'service';
|
|
335
|
+
}, {
|
|
336
|
+
readonly reason: 'sec_unreachable';
|
|
337
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
338
|
+
readonly when: "SEC EDGAR gave no complete, readable response — on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out) the connection failed, no response headers arrived within 15 seconds, or the body broke off or stalled for 15 seconds, each wait capped at what was left of that budget; a 200 body was not the JSON SEC serves; or earlier SEC failures had spent that budget, so the request was never sent";
|
|
339
|
+
readonly recovery: 'Retry the same call in a minute — SEC EDGAR did not deliver a complete, readable response, and nothing in the request needs to change.';
|
|
340
|
+
readonly retryable: true;
|
|
341
|
+
readonly thrownBy: 'service';
|
|
342
|
+
}, {
|
|
343
|
+
readonly reason: 'sec_unavailable';
|
|
344
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
345
|
+
readonly when: "SEC EDGAR answered HTTP 500, 502, 503, or 504 on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out)";
|
|
346
|
+
readonly recovery: 'Retry the same call in a minute — SEC EDGAR failed on its side, and nothing in the request needs to change.';
|
|
347
|
+
readonly retryable: true;
|
|
348
|
+
readonly thrownBy: 'service';
|
|
349
|
+
}, {
|
|
350
|
+
readonly reason: 'efts_degraded_response';
|
|
351
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
352
|
+
readonly when: 'EDGAR full-text search answered without results — its search backend failed to run the search on every attempt made (a connection or timeout failure, retried like a request SEC never answered), refused the request (upstreamErrorType and upstreamErrorMessage carry its error, and the request is not retried), or sent a payload with no hit list';
|
|
353
|
+
readonly recovery: 'Retry the same call in a minute unless the error is marked not retryable; then change the request as upstreamErrorMessage indicates.';
|
|
354
|
+
readonly retryable: true;
|
|
355
|
+
readonly thrownBy: 'service';
|
|
109
356
|
}], {
|
|
357
|
+
readonly effectiveQuery: import("zod").ZodString;
|
|
110
358
|
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
111
359
|
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
112
360
|
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -168,7 +416,17 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
168
416
|
indirect: "indirect";
|
|
169
417
|
}>>;
|
|
170
418
|
ownership_nature: import("zod").ZodOptional<import("zod").ZodString>;
|
|
419
|
+
rule10b5_1: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
420
|
+
footnotes: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
421
|
+
id: import("zod").ZodString;
|
|
422
|
+
field: import("zod").ZodString;
|
|
423
|
+
}, import("zod/v4/core").$strip>>>;
|
|
171
424
|
}, import("zod/v4/core").$strip>>;
|
|
425
|
+
footnote_texts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
426
|
+
accession_number: import("zod").ZodString;
|
|
427
|
+
id: import("zod").ZodString;
|
|
428
|
+
text: import("zod").ZodString;
|
|
429
|
+
}, import("zod/v4/core").$strip>>>;
|
|
172
430
|
filings_scanned: import("zod").ZodNumber;
|
|
173
431
|
filings_other_issuer: import("zod").ZodNumber;
|
|
174
432
|
history_scanned_through: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -299,145 +557,6 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
299
557
|
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
300
558
|
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
301
559
|
readonly resolvedAs: import("zod").ZodOptional<import("zod").ZodString>;
|
|
302
|
-
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
303
|
-
query: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
304
|
-
forms: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
305
|
-
filed_after: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
306
|
-
filed_before: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
307
|
-
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
308
|
-
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
309
|
-
sort: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
310
|
-
filing_date_asc: "filing_date_asc";
|
|
311
|
-
filing_date_desc: "filing_date_desc";
|
|
312
|
-
relevance: "relevance";
|
|
313
|
-
}>>;
|
|
314
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
315
|
-
total: import("zod").ZodNumber;
|
|
316
|
-
total_is_exact: import("zod").ZodBoolean;
|
|
317
|
-
total_documents: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
318
|
-
next_offset: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
319
|
-
results: import("zod").ZodArray<import("zod").ZodObject<{
|
|
320
|
-
accession_number: import("zod").ZodString;
|
|
321
|
-
form: import("zod").ZodOptional<import("zod").ZodString>;
|
|
322
|
-
filing_date: import("zod").ZodString;
|
|
323
|
-
period_ending: import("zod").ZodOptional<import("zod").ZodString>;
|
|
324
|
-
company_name: import("zod").ZodString;
|
|
325
|
-
cik: import("zod").ZodString;
|
|
326
|
-
ticker: import("zod").ZodOptional<import("zod").ZodString>;
|
|
327
|
-
file_description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
328
|
-
matched_documents: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
329
|
-
name: import("zod").ZodString;
|
|
330
|
-
type: import("zod").ZodOptional<import("zod").ZodString>;
|
|
331
|
-
}, import("zod/v4/core").$strip>>>;
|
|
332
|
-
items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
|
333
|
-
code: import("zod").ZodString;
|
|
334
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
335
|
-
regime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
336
|
-
current: "current";
|
|
337
|
-
legacy: "legacy";
|
|
338
|
-
}>>;
|
|
339
|
-
}, import("zod/v4/core").$strip>>>;
|
|
340
|
-
sic: import("zod").ZodOptional<import("zod").ZodString>;
|
|
341
|
-
location: import("zod").ZodOptional<import("zod").ZodString>;
|
|
342
|
-
source: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
343
|
-
efts: "efts";
|
|
344
|
-
"full-index": "full-index";
|
|
345
|
-
submissions: "submissions";
|
|
346
|
-
}>>;
|
|
347
|
-
}, import("zod/v4/core").$strip>>;
|
|
348
|
-
form_distribution: import("zod").ZodOptional<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>>;
|
|
349
|
-
scan: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
350
|
-
candidates: import("zod").ZodNumber;
|
|
351
|
-
scanned: import("zod").ZodNumber;
|
|
352
|
-
matched: import("zod").ZodNumber;
|
|
353
|
-
capped: import("zod").ZodBoolean;
|
|
354
|
-
}, import("zod/v4/core").$strip>>;
|
|
355
|
-
dataset: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
356
|
-
name: import("zod").ZodString;
|
|
357
|
-
row_count: import("zod").ZodNumber;
|
|
358
|
-
expires_at: import("zod").ZodString;
|
|
359
|
-
truncated: import("zod").ZodBoolean;
|
|
360
|
-
}, import("zod/v4/core").$strip>>;
|
|
361
|
-
}, import("zod/v4/core").$strip>, readonly [{
|
|
362
|
-
readonly reason: "unresolved_ticker";
|
|
363
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
364
|
-
readonly when: "A ticker: targeting token in the query does not resolve to a known company";
|
|
365
|
-
readonly recovery: "Verify the symbol with secedgar_company_search, or target by CIK with cik:<number> instead.";
|
|
366
|
-
readonly thrownBy: "service";
|
|
367
|
-
}, {
|
|
368
|
-
readonly reason: "ambiguous_company";
|
|
369
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
370
|
-
readonly when: "A ticker: targeting token in the query resolves to multiple companies and the target is ambiguous";
|
|
371
|
-
readonly recovery: "Use ticker: or cik: with a ticker symbol or 10-digit CIK from the matches list for an exact match.";
|
|
372
|
-
readonly thrownBy: "service";
|
|
373
|
-
}, {
|
|
374
|
-
readonly reason: "invalid_cik";
|
|
375
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
376
|
-
readonly when: "A cik: targeting token in the query is not a 1-10 digit number";
|
|
377
|
-
readonly recovery: "Pass a numeric CIK such as cik:320193 — find it with secedgar_company_search if unknown.";
|
|
378
|
-
readonly thrownBy: "service";
|
|
379
|
-
}, {
|
|
380
|
-
readonly reason: "unsupported_entity_scope";
|
|
381
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
382
|
-
readonly when: "A ticker: or cik: token in the query is led by - or a NOT term, or follows another entity token";
|
|
383
|
-
readonly recovery: "Keep one ticker: or cik: token as its own term with no - or NOT before it. To leave a company out, drop the token and skip the result rows whose cik is that company's.";
|
|
384
|
-
readonly thrownBy: "service";
|
|
385
|
-
}, {
|
|
386
|
-
readonly reason: "entity_not_found";
|
|
387
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
388
|
-
readonly when: "A cik: targeting token on a pre-2001 date range names a CIK with no EDGAR submissions history";
|
|
389
|
-
readonly recovery: "Confirm the CIK with secedgar_company_search — an accession-number prefix names the filing agent, not the issuer.";
|
|
390
|
-
readonly thrownBy: "service";
|
|
391
|
-
}, {
|
|
392
|
-
readonly reason: "missing_criteria";
|
|
393
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
394
|
-
readonly when: "Neither a full-text query nor a forms filter was provided (a date range cannot stand alone)";
|
|
395
|
-
readonly recovery: "Provide search terms, or browse by form type (forms: [\"S-1\"]) or entity (ticker:AAPL / cik:320193 in the query) — optionally narrowed by date.";
|
|
396
|
-
}, {
|
|
397
|
-
readonly reason: "pre2001_full_text_unscoped";
|
|
398
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
399
|
-
readonly when: "A date range reaching before 2001-01-01 carries free-text terms with no entity scope — no pre-2001 full-text index exists, and nothing bounds a local scan";
|
|
400
|
-
readonly recovery: "Add ticker: or cik: entity scope to the query, drop the text terms and browse by form type (forms: [\"10-K\"]) and date, or, for a range that reaches 2001, start the range at 2001-01-01.";
|
|
401
|
-
}, {
|
|
402
|
-
readonly reason: "offset_out_of_range";
|
|
403
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
404
|
-
readonly when: "A sort=relevance search with no ticker:/cik: scope and no date range reaching before 2001 asks for an offset above 9900, past the deepest page EDGAR full-text search serves";
|
|
405
|
-
readonly recovery: "Use an offset of 9900 or less — a page there with limit 100 reaches EDGAR's 10,000-document cap — or narrow the search with a shorter filed_after/filed_before window, a forms filter, or more specific terms so fewer documents match.";
|
|
406
|
-
readonly retryable: false;
|
|
407
|
-
}, {
|
|
408
|
-
readonly reason: 'rate_limited';
|
|
409
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
410
|
-
readonly when: "SEC is rate-limiting this server's IP — SEC answered 429, or the call was refused without being sent while the cool-down after one runs";
|
|
411
|
-
readonly recovery: 'Wait the retryAfter seconds the error carries, then retry — SEC lifts the block only once requests stop for ten minutes.';
|
|
412
|
-
readonly retryable: true;
|
|
413
|
-
readonly thrownBy: 'service';
|
|
414
|
-
}, {
|
|
415
|
-
readonly reason: 'sec_unreachable';
|
|
416
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
417
|
-
readonly when: "SEC EDGAR gave no complete, readable response — on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out) the connection failed, no response headers arrived within 15 seconds, or the body broke off or stalled for 15 seconds, each wait capped at what was left of that budget; a 200 body was not the JSON SEC serves; or earlier SEC failures had spent that budget, so the request was never sent";
|
|
418
|
-
readonly recovery: 'Retry the same call in a minute — SEC EDGAR did not deliver a complete, readable response, and nothing in the request needs to change.';
|
|
419
|
-
readonly retryable: true;
|
|
420
|
-
readonly thrownBy: 'service';
|
|
421
|
-
}, {
|
|
422
|
-
readonly reason: 'sec_unavailable';
|
|
423
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
424
|
-
readonly when: "SEC EDGAR answered HTTP 500, 502, 503, or 504 on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out)";
|
|
425
|
-
readonly recovery: 'Retry the same call in a minute — SEC EDGAR failed on its side, and nothing in the request needs to change.';
|
|
426
|
-
readonly retryable: true;
|
|
427
|
-
readonly thrownBy: 'service';
|
|
428
|
-
}, {
|
|
429
|
-
readonly reason: 'efts_degraded_response';
|
|
430
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
431
|
-
readonly when: 'EDGAR full-text search answered without results — its search backend failed to run the search on every attempt made (a connection or timeout failure, retried like a request SEC never answered), refused the request (upstreamErrorType and upstreamErrorMessage carry its error, and the request is not retried), or sent a payload with no hit list';
|
|
432
|
-
readonly recovery: 'Retry the same call in a minute unless the error is marked not retryable; then change the request as upstreamErrorMessage indicates.';
|
|
433
|
-
readonly retryable: true;
|
|
434
|
-
readonly thrownBy: 'service';
|
|
435
|
-
}], {
|
|
436
|
-
readonly effectiveQuery: import("zod").ZodString;
|
|
437
|
-
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
438
|
-
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
439
|
-
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
440
|
-
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
441
560
|
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
442
561
|
accession_number: import("zod").ZodString;
|
|
443
562
|
cik: import("zod").ZodOptional<import("zod").ZodString>;
|
|
@@ -584,6 +703,7 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
584
703
|
all: "all";
|
|
585
704
|
annual: "annual";
|
|
586
705
|
quarterly: "quarterly";
|
|
706
|
+
ytd: "ytd";
|
|
587
707
|
}>>;
|
|
588
708
|
unit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
589
709
|
limit: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
@@ -698,132 +818,60 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
698
818
|
label: import("zod").ZodString;
|
|
699
819
|
group: import("zod").ZodString;
|
|
700
820
|
taxonomy: import("zod").ZodString;
|
|
701
|
-
tag: import("zod").ZodString;
|
|
702
|
-
unit: import("zod").ZodString;
|
|
703
|
-
annual: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
704
|
-
period: import("zod").ZodString;
|
|
705
|
-
value: import("zod").ZodNumber;
|
|
706
|
-
period_end: import("zod").ZodString;
|
|
707
|
-
form: import("zod").ZodString;
|
|
708
|
-
accession_number: import("zod").ZodString;
|
|
709
|
-
tag: import("zod").ZodString;
|
|
710
|
-
}, import("zod/v4/core").$strip>>;
|
|
711
|
-
quarterly: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
712
|
-
period: import("zod").ZodString;
|
|
713
|
-
value: import("zod").ZodNumber;
|
|
714
|
-
period_end: import("zod").ZodString;
|
|
715
|
-
form: import("zod").ZodString;
|
|
716
|
-
accession_number: import("zod").ZodString;
|
|
717
|
-
tag: import("zod").ZodString;
|
|
718
|
-
}, import("zod/v4/core").$strip>>;
|
|
719
|
-
instant: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
720
|
-
period: import("zod").ZodString;
|
|
721
|
-
value: import("zod").ZodNumber;
|
|
722
|
-
period_end: import("zod").ZodString;
|
|
723
|
-
form: import("zod").ZodString;
|
|
724
|
-
accession_number: import("zod").ZodString;
|
|
725
|
-
tag: import("zod").ZodString;
|
|
726
|
-
}, import("zod/v4/core").$strip>>;
|
|
727
|
-
}, import("zod/v4/core").$strip>>;
|
|
728
|
-
gaps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
729
|
-
concept: import("zod").ZodString;
|
|
730
|
-
label: import("zod").ZodString;
|
|
731
|
-
group: import("zod").ZodString;
|
|
732
|
-
tags_tried: import("zod").ZodArray<import("zod").ZodString>;
|
|
733
|
-
retry_taxonomy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
734
|
-
"ifrs-full": "ifrs-full";
|
|
735
|
-
"us-gaap": "us-gaap";
|
|
736
|
-
}>>;
|
|
737
|
-
retry_tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
738
|
-
}, import("zod/v4/core").$strip>>;
|
|
739
|
-
caveats: import("zod").ZodArray<import("zod").ZodString>;
|
|
740
|
-
}, import("zod/v4/core").$strip>, readonly [{
|
|
741
|
-
readonly reason: "company_not_found";
|
|
742
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
743
|
-
readonly when: "The company input does not resolve to a CIK";
|
|
744
|
-
readonly recovery: "Use a ticker symbol or 10-digit CIK number for an exact match.";
|
|
745
|
-
}, {
|
|
746
|
-
readonly reason: "ambiguous_company";
|
|
747
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
748
|
-
readonly when: "The company input resolves to multiple entities and the target is ambiguous";
|
|
749
|
-
readonly recovery: "Use a ticker symbol or 10-digit CIK from the matches list for an exact match.";
|
|
750
|
-
}, {
|
|
751
|
-
readonly reason: "no_company_facts";
|
|
752
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
753
|
-
readonly when: "The filer has no XBRL facts at all — pre-XBRL, foreign private issuer, or a non-operating registrant";
|
|
754
|
-
readonly recovery: "Check the filer files XBRL financial statements, or read the filings directly with secedgar_search_filings.";
|
|
755
|
-
}, {
|
|
756
|
-
readonly reason: 'rate_limited';
|
|
757
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
758
|
-
readonly when: "SEC is rate-limiting this server's IP — SEC answered 429, or the call was refused without being sent while the cool-down after one runs";
|
|
759
|
-
readonly recovery: 'Wait the retryAfter seconds the error carries, then retry — SEC lifts the block only once requests stop for ten minutes.';
|
|
760
|
-
readonly retryable: true;
|
|
761
|
-
readonly thrownBy: 'service';
|
|
762
|
-
}, {
|
|
763
|
-
readonly reason: 'sec_unreachable';
|
|
764
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
765
|
-
readonly when: "SEC EDGAR gave no complete, readable response — on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out) the connection failed, no response headers arrived within 15 seconds, or the body broke off or stalled for 15 seconds, each wait capped at what was left of that budget; a 200 body was not the JSON SEC serves; or earlier SEC failures had spent that budget, so the request was never sent";
|
|
766
|
-
readonly recovery: 'Retry the same call in a minute — SEC EDGAR did not deliver a complete, readable response, and nothing in the request needs to change.';
|
|
767
|
-
readonly retryable: true;
|
|
768
|
-
readonly thrownBy: 'service';
|
|
769
|
-
}, {
|
|
770
|
-
readonly reason: 'sec_unavailable';
|
|
771
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
772
|
-
readonly when: "SEC EDGAR answered HTTP 500, 502, 503, or 504 on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out)";
|
|
773
|
-
readonly recovery: 'Retry the same call in a minute — SEC EDGAR failed on its side, and nothing in the request needs to change.';
|
|
774
|
-
readonly retryable: true;
|
|
775
|
-
readonly thrownBy: 'service';
|
|
776
|
-
}], {
|
|
777
|
-
readonly resolvedAs: import("zod").ZodOptional<import("zod").ZodString>;
|
|
778
|
-
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
779
|
-
company: import("zod").ZodString;
|
|
780
|
-
items: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodEnum<{
|
|
781
|
-
[x: string]: string;
|
|
782
|
-
}>>>;
|
|
783
|
-
filed_after: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
784
|
-
filed_before: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
785
|
-
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
786
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
787
|
-
cik: import("zod").ZodString;
|
|
788
|
-
company_name: import("zod").ZodString;
|
|
789
|
-
items_filter: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
790
|
-
total_matched: import("zod").ZodNumber;
|
|
791
|
-
total_8k_scanned: import("zod").ZodNumber;
|
|
792
|
-
item_distribution: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodNumber>;
|
|
793
|
-
history_scanned_through: import("zod").ZodOptional<import("zod").ZodString>;
|
|
794
|
-
older_filings_unexamined: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
795
|
-
filings: import("zod").ZodArray<import("zod").ZodObject<{
|
|
796
|
-
accession_number: import("zod").ZodString;
|
|
797
|
-
form: import("zod").ZodString;
|
|
798
|
-
filing_date: import("zod").ZodString;
|
|
799
|
-
report_date: import("zod").ZodOptional<import("zod").ZodString>;
|
|
800
|
-
primary_document: import("zod").ZodOptional<import("zod").ZodString>;
|
|
801
|
-
description: import("zod").ZodOptional<import("zod").ZodString>;
|
|
802
|
-
items: import("zod").ZodArray<import("zod").ZodObject<{
|
|
803
|
-
code: import("zod").ZodString;
|
|
804
|
-
label: import("zod").ZodOptional<import("zod").ZodString>;
|
|
805
|
-
regime: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
806
|
-
current: "current";
|
|
807
|
-
legacy: "legacy";
|
|
808
|
-
}>>;
|
|
821
|
+
tag: import("zod").ZodString;
|
|
822
|
+
unit: import("zod").ZodString;
|
|
823
|
+
annual: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
824
|
+
period: import("zod").ZodString;
|
|
825
|
+
value: import("zod").ZodNumber;
|
|
826
|
+
period_end: import("zod").ZodString;
|
|
827
|
+
form: import("zod").ZodString;
|
|
828
|
+
accession_number: import("zod").ZodString;
|
|
829
|
+
tag: import("zod").ZodString;
|
|
830
|
+
}, import("zod/v4/core").$strip>>;
|
|
831
|
+
quarterly: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
832
|
+
period: import("zod").ZodString;
|
|
833
|
+
value: import("zod").ZodNumber;
|
|
834
|
+
period_end: import("zod").ZodString;
|
|
835
|
+
form: import("zod").ZodString;
|
|
836
|
+
accession_number: import("zod").ZodString;
|
|
837
|
+
tag: import("zod").ZodString;
|
|
838
|
+
}, import("zod/v4/core").$strip>>;
|
|
839
|
+
instant: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
840
|
+
period: import("zod").ZodString;
|
|
841
|
+
value: import("zod").ZodNumber;
|
|
842
|
+
period_end: import("zod").ZodString;
|
|
843
|
+
form: import("zod").ZodString;
|
|
844
|
+
accession_number: import("zod").ZodString;
|
|
845
|
+
tag: import("zod").ZodString;
|
|
809
846
|
}, import("zod/v4/core").$strip>>;
|
|
810
847
|
}, import("zod/v4/core").$strip>>;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
848
|
+
gaps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
849
|
+
concept: import("zod").ZodString;
|
|
850
|
+
label: import("zod").ZodString;
|
|
851
|
+
group: import("zod").ZodString;
|
|
852
|
+
tags_tried: import("zod").ZodArray<import("zod").ZodString>;
|
|
853
|
+
retry_taxonomy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
854
|
+
"ifrs-full": "ifrs-full";
|
|
855
|
+
"us-gaap": "us-gaap";
|
|
856
|
+
}>>;
|
|
857
|
+
retry_tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
816
858
|
}, import("zod/v4/core").$strip>>;
|
|
859
|
+
caveats: import("zod").ZodArray<import("zod").ZodString>;
|
|
817
860
|
}, import("zod/v4/core").$strip>, readonly [{
|
|
818
|
-
readonly reason: "
|
|
861
|
+
readonly reason: "company_not_found";
|
|
819
862
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
820
|
-
readonly when: "
|
|
821
|
-
readonly recovery: "Use a ticker symbol or 10-digit CIK for an exact match
|
|
863
|
+
readonly when: "The company input does not resolve to a CIK";
|
|
864
|
+
readonly recovery: "Use a ticker symbol or 10-digit CIK number for an exact match.";
|
|
822
865
|
}, {
|
|
823
866
|
readonly reason: "ambiguous_company";
|
|
824
867
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
825
868
|
readonly when: "The company input resolves to multiple entities and the target is ambiguous";
|
|
826
869
|
readonly recovery: "Use a ticker symbol or 10-digit CIK from the matches list for an exact match.";
|
|
870
|
+
}, {
|
|
871
|
+
readonly reason: "no_company_facts";
|
|
872
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
873
|
+
readonly when: "The filer has no XBRL facts at all — pre-XBRL, foreign private issuer, or a non-operating registrant";
|
|
874
|
+
readonly recovery: "Check the filer files XBRL financial statements, or read the filings directly with secedgar_search_filings.";
|
|
827
875
|
}, {
|
|
828
876
|
readonly reason: 'rate_limited';
|
|
829
877
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
@@ -846,10 +894,6 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
846
894
|
readonly retryable: true;
|
|
847
895
|
readonly thrownBy: 'service';
|
|
848
896
|
}], {
|
|
849
|
-
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
850
|
-
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
851
|
-
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
852
|
-
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
853
897
|
readonly resolvedAs: import("zod").ZodOptional<import("zod").ZodString>;
|
|
854
898
|
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
855
899
|
company: import("zod").ZodString;
|
|
@@ -1078,6 +1122,9 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
1078
1122
|
}>>;
|
|
1079
1123
|
include_amendments: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
1080
1124
|
limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1125
|
+
filed_after: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
1126
|
+
filed_before: import("zod").ZodOptional<import("zod").ZodUnion<readonly [import("zod").ZodLiteral<"">, import("zod").ZodString]>>;
|
|
1127
|
+
offset: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1081
1128
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1082
1129
|
issuer: import("zod").ZodString;
|
|
1083
1130
|
issuer_cik: import("zod").ZodString;
|
|
@@ -1155,7 +1202,7 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
1155
1202
|
}, {
|
|
1156
1203
|
readonly reason: "no_filings_found";
|
|
1157
1204
|
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1158
|
-
readonly when: "
|
|
1205
|
+
readonly when: "On an undated call, no structured SCHEDULE 13D/13G matching the form filters sits on either side of the recent filings — none about the company and none it filed";
|
|
1159
1206
|
readonly recovery: "Use secedgar_search_filings with forms [\"SC 13D\",\"SC 13G\"] to reach the pre-2024-12-18 text filings, then read them with secedgar_get_filing.";
|
|
1160
1207
|
}, {
|
|
1161
1208
|
readonly reason: 'rate_limited';
|
|
@@ -1376,121 +1423,6 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
1376
1423
|
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1377
1424
|
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1378
1425
|
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1379
|
-
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
1380
|
-
companies: import("zod").ZodArray<import("zod").ZodString>;
|
|
1381
|
-
concepts: import("zod").ZodArray<import("zod").ZodString>;
|
|
1382
|
-
taxonomy: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
1383
|
-
"ifrs-full": "ifrs-full";
|
|
1384
|
-
"us-gaap": "us-gaap";
|
|
1385
|
-
}>>;
|
|
1386
|
-
period_type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
1387
|
-
annual: "annual";
|
|
1388
|
-
quarterly: "quarterly";
|
|
1389
|
-
}>>;
|
|
1390
|
-
periods: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1391
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1392
|
-
period_type: import("zod").ZodString;
|
|
1393
|
-
taxonomy: import("zod").ZodString;
|
|
1394
|
-
periods: import("zod").ZodArray<import("zod").ZodString>;
|
|
1395
|
-
companies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1396
|
-
input: import("zod").ZodString;
|
|
1397
|
-
cik: import("zod").ZodString;
|
|
1398
|
-
name: import("zod").ZodString;
|
|
1399
|
-
ticker: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1400
|
-
}, import("zod/v4/core").$strip>>;
|
|
1401
|
-
failed_companies: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1402
|
-
input: import("zod").ZodString;
|
|
1403
|
-
reason: import("zod").ZodEnum<{
|
|
1404
|
-
ambiguous: "ambiguous";
|
|
1405
|
-
no_company_facts: "no_company_facts";
|
|
1406
|
-
not_found: "not_found";
|
|
1407
|
-
}>;
|
|
1408
|
-
message: import("zod").ZodString;
|
|
1409
|
-
}, import("zod/v4/core").$strip>>;
|
|
1410
|
-
deferred_companies: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1411
|
-
concepts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1412
|
-
concept: import("zod").ZodString;
|
|
1413
|
-
label: import("zod").ZodString;
|
|
1414
|
-
units: import("zod").ZodArray<import("zod").ZodString>;
|
|
1415
|
-
}, import("zod/v4/core").$strip>>;
|
|
1416
|
-
cells: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1417
|
-
cik: import("zod").ZodString;
|
|
1418
|
-
company: import("zod").ZodString;
|
|
1419
|
-
concept: import("zod").ZodString;
|
|
1420
|
-
period: import("zod").ZodString;
|
|
1421
|
-
value: import("zod").ZodNumber;
|
|
1422
|
-
unit: import("zod").ZodString;
|
|
1423
|
-
taxonomy: import("zod").ZodString;
|
|
1424
|
-
tag: import("zod").ZodString;
|
|
1425
|
-
frame: import("zod").ZodString;
|
|
1426
|
-
period_end: import("zod").ZodString;
|
|
1427
|
-
form: import("zod").ZodString;
|
|
1428
|
-
accession_number: import("zod").ZodString;
|
|
1429
|
-
}, import("zod/v4/core").$strip>>;
|
|
1430
|
-
gaps: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1431
|
-
cik: import("zod").ZodString;
|
|
1432
|
-
company: import("zod").ZodString;
|
|
1433
|
-
concept: import("zod").ZodString;
|
|
1434
|
-
tags_tried: import("zod").ZodArray<import("zod").ZodString>;
|
|
1435
|
-
retry_taxonomy: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
1436
|
-
"ifrs-full": "ifrs-full";
|
|
1437
|
-
"us-gaap": "us-gaap";
|
|
1438
|
-
}>>;
|
|
1439
|
-
retry_tag: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1440
|
-
}, import("zod/v4/core").$strip>>;
|
|
1441
|
-
unknown_concepts: import("zod").ZodArray<import("zod").ZodObject<{
|
|
1442
|
-
concept: import("zod").ZodString;
|
|
1443
|
-
derivation: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1444
|
-
suggestions: import("zod").ZodArray<import("zod").ZodString>;
|
|
1445
|
-
}, import("zod/v4/core").$strip>>;
|
|
1446
|
-
deferred_concepts: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
1447
|
-
caveats: import("zod").ZodArray<import("zod").ZodString>;
|
|
1448
|
-
dataset: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
1449
|
-
name: import("zod").ZodString;
|
|
1450
|
-
row_count: import("zod").ZodNumber;
|
|
1451
|
-
expires_at: import("zod").ZodString;
|
|
1452
|
-
}, import("zod/v4/core").$strip>>;
|
|
1453
|
-
}, import("zod/v4/core").$strip>, readonly [{
|
|
1454
|
-
readonly reason: "no_companies_resolved";
|
|
1455
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1456
|
-
readonly when: "None of the company inputs read resolved to a CIK; inputs past the caps were not read and are named in deferred_companies and deferred_concepts";
|
|
1457
|
-
readonly recovery: "Use ticker symbols or 10-digit CIK numbers for exact matches.";
|
|
1458
|
-
}, {
|
|
1459
|
-
readonly reason: "no_comparable_data";
|
|
1460
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1461
|
-
readonly when: "Companies resolved but not one of them reports any of the requested concepts for the requested period type; any company or concept inputs past the caps are named, unread, in deferred_companies and deferred_concepts";
|
|
1462
|
-
readonly recovery: "Retry with the taxonomy or related tag the hint names, switch period_type, or discover reported concept names with secedgar_search_concepts.";
|
|
1463
|
-
}, {
|
|
1464
|
-
readonly reason: "unknown_concept";
|
|
1465
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1466
|
-
readonly when: "Every requested concept is neither a supported friendly name nor shaped like an XBRL tag, so no request is sent";
|
|
1467
|
-
readonly recovery: "Use a friendly name from secedgar_search_concepts or a valid raw XBRL tag.";
|
|
1468
|
-
}, {
|
|
1469
|
-
readonly reason: 'rate_limited';
|
|
1470
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.RateLimited;
|
|
1471
|
-
readonly when: "SEC is rate-limiting this server's IP — SEC answered 429, or the call was refused without being sent while the cool-down after one runs";
|
|
1472
|
-
readonly recovery: 'Wait the retryAfter seconds the error carries, then retry — SEC lifts the block only once requests stop for ten minutes.';
|
|
1473
|
-
readonly retryable: true;
|
|
1474
|
-
readonly thrownBy: 'service';
|
|
1475
|
-
}, {
|
|
1476
|
-
readonly reason: 'sec_unreachable';
|
|
1477
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
1478
|
-
readonly when: "SEC EDGAR gave no complete, readable response — on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out) the connection failed, no response headers arrived within 15 seconds, or the body broke off or stalled for 15 seconds, each wait capped at what was left of that budget; a 200 body was not the JSON SEC serves; or earlier SEC failures had spent that budget, so the request was never sent";
|
|
1479
|
-
readonly recovery: 'Retry the same call in a minute — SEC EDGAR did not deliver a complete, readable response, and nothing in the request needs to change.';
|
|
1480
|
-
readonly retryable: true;
|
|
1481
|
-
readonly thrownBy: 'service';
|
|
1482
|
-
}, {
|
|
1483
|
-
readonly reason: 'sec_unavailable';
|
|
1484
|
-
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
1485
|
-
readonly when: "SEC EDGAR answered HTTP 500, 502, 503, or 504 on the last attempt made (the third, or an earlier one once this call's 40-second budget for SEC failures ran out)";
|
|
1486
|
-
readonly recovery: 'Retry the same call in a minute — SEC EDGAR failed on its side, and nothing in the request needs to change.';
|
|
1487
|
-
readonly retryable: true;
|
|
1488
|
-
readonly thrownBy: 'service';
|
|
1489
|
-
}], {
|
|
1490
|
-
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1491
|
-
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1492
|
-
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1493
|
-
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1494
1426
|
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
1495
1427
|
search: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1496
1428
|
group: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1562,6 +1494,88 @@ export declare function buildToolDefinitions(options: ToolDefinitionOptions): (i
|
|
|
1562
1494
|
readonly recovery: "Pass the exact df_XXXXX_XXXXX name the producing tool returned in its `dataset` field, or the register_as name you chose; this deployment does not list dataframes.";
|
|
1563
1495
|
readonly severity: "notice";
|
|
1564
1496
|
}], undefined> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
1497
|
+
sql: import("zod").ZodString;
|
|
1498
|
+
register_as: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1499
|
+
preview: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1500
|
+
row_limit: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
1501
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1502
|
+
columns: import("zod").ZodArray<import("zod").ZodString>;
|
|
1503
|
+
row_count: import("zod").ZodNumber;
|
|
1504
|
+
row_count_capped: import("zod").ZodBoolean;
|
|
1505
|
+
rows: import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnknown>>;
|
|
1506
|
+
registered_as: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1507
|
+
expires_at: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1508
|
+
}, import("zod/v4/core").$strip>, readonly [{
|
|
1509
|
+
readonly reason: "canvas_unavailable";
|
|
1510
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ServiceUnavailable;
|
|
1511
|
+
readonly when: "The DataCanvas service is not configured for this deployment";
|
|
1512
|
+
readonly recovery: "Dataframes need the DuckDB canvas. On an npm or Docker install, set CANVAS_PROVIDER_TYPE=duckdb (the default when unset) and restart the server; the MCPB bundle ships without DuckDB, so there the data tools return their results inline and stage no dataframe.";
|
|
1513
|
+
}, {
|
|
1514
|
+
readonly reason: "system_catalog_access";
|
|
1515
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1516
|
+
readonly when: "The SQL query references a denied DuckDB system catalog (information_schema, pg_catalog, sqlite_master, duckdb_*), or names a column alias, table alias, or CTE spelled like one";
|
|
1517
|
+
readonly recovery: "Query only the df_<id> tables, by the name the producing tool returned in its `dataset` field; a column alias, table alias, or CTE named like a DuckDB metadata view (the name the message gives) is refused too, so rename it.";
|
|
1518
|
+
readonly thrownBy: "service";
|
|
1519
|
+
}, {
|
|
1520
|
+
readonly reason: "missing_table";
|
|
1521
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.NotFound;
|
|
1522
|
+
readonly when: "The SQL query references a df_<id> table that does not exist or has expired";
|
|
1523
|
+
readonly recovery: "Reference the df_<id> name the producing tool returned in its `dataset` field, or a register_as name, and re-run that tool if the table expired. secedgar_dataframe_describe without a name lists the active dataframes, except over HTTP with auth none, where that listing is refused.";
|
|
1524
|
+
readonly thrownBy: "service";
|
|
1525
|
+
}, {
|
|
1526
|
+
readonly reason: "invalid_sql";
|
|
1527
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1528
|
+
readonly when: "The SELECT fails to prepare — an unknown column or an invalid expression — or hits an engine error no more specific reason covers";
|
|
1529
|
+
readonly recovery: "Check SQL syntax, column names, and table references against secedgar_dataframe_describe.";
|
|
1530
|
+
readonly thrownBy: "service";
|
|
1531
|
+
}, {
|
|
1532
|
+
readonly reason: "sql_execution_error";
|
|
1533
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1534
|
+
readonly when: "The SELECT prepared but failed on the data it read — a cast or conversion that does not fit, an out-of-range value, or invalid input to a function";
|
|
1535
|
+
readonly recovery: "Wrap the failing cast in TRY_CAST, or filter out the rows the error message names before converting them.";
|
|
1536
|
+
readonly thrownBy: "service";
|
|
1537
|
+
}, {
|
|
1538
|
+
readonly reason: "register_as_clash";
|
|
1539
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1540
|
+
readonly when: "The register_as target name already exists on the canvas";
|
|
1541
|
+
readonly recovery: "Drop the existing dataframe with secedgar_dataframe_drop (when enabled), choose a different df_XXXXX_XXXXX name, or omit register_as.";
|
|
1542
|
+
readonly thrownBy: "service";
|
|
1543
|
+
}, {
|
|
1544
|
+
readonly reason: "non_select_statement";
|
|
1545
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1546
|
+
readonly when: "The SQL is not a SELECT (DROP, INSERT, UPDATE, DDL, PRAGMA, EXPLAIN, etc.) or does not parse — only read-only SELECTs run against dataframes";
|
|
1547
|
+
readonly recovery: "Rewrite as one read-only SELECT over the df_<id> tables; writes, DDL, and other statements that are not a SELECT are refused.";
|
|
1548
|
+
readonly thrownBy: "service";
|
|
1549
|
+
}, {
|
|
1550
|
+
readonly reason: "multi_statement";
|
|
1551
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1552
|
+
readonly when: "The SQL holds more than one statement";
|
|
1553
|
+
readonly recovery: "Send exactly one SELECT statement per call, and split multi-statement SQL into separate calls.";
|
|
1554
|
+
readonly thrownBy: "service";
|
|
1555
|
+
}, {
|
|
1556
|
+
readonly reason: "denied_function";
|
|
1557
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1558
|
+
readonly when: "The SQL calls a file-reading or external-data table function (read_csv, read_parquet, glob), a function that reads an engine setting (current_setting, current_schema — an unqualified current_schema is refused even where it names a column, which reads qualified as <table>.current_schema), or one that runs SQL or names a table from a string (query_table, or query() over anything but a single string literal)";
|
|
1559
|
+
readonly recovery: "Remove the function the message names, or qualify a column it names with its table, and query only the df_<id> tables the data tools returned.";
|
|
1560
|
+
readonly thrownBy: "service";
|
|
1561
|
+
}, {
|
|
1562
|
+
readonly reason: "sql_read_only";
|
|
1563
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1564
|
+
readonly when: "The SQL names a file as a table (FROM 'data.csv') — the dataframe engine reads no files";
|
|
1565
|
+
readonly recovery: "Query only the df_<id> tables, by the name the producing tool returned in its `dataset` field, referenced by bare name; this surface reads no files and cannot create, alter, or drop anything.";
|
|
1566
|
+
readonly thrownBy: "service";
|
|
1567
|
+
}, {
|
|
1568
|
+
readonly reason: "plan_operator_not_allowed";
|
|
1569
|
+
readonly code: import("@cyanheads/mcp-ts-core/errors").JsonRpcErrorCode.ValidationError;
|
|
1570
|
+
readonly when: "The query plan uses an operator outside the read-only allowlist, such as range() or generate_series() given a column or subquery argument instead of constants";
|
|
1571
|
+
readonly recovery: "Rewrite with read-only SELECT constructs — joins, aggregates, window functions, CTEs, unnest(), and range() or generate_series() over constant arguments are supported.";
|
|
1572
|
+
readonly thrownBy: "service";
|
|
1573
|
+
}], {
|
|
1574
|
+
readonly notice: import("zod").ZodOptional<import("zod").ZodString>;
|
|
1575
|
+
readonly truncated: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
1576
|
+
readonly shown: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1577
|
+
readonly cap: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
1578
|
+
}> | import("@cyanheads/mcp-ts-core").ToolDefinition<import("zod").ZodObject<{
|
|
1565
1579
|
name: import("zod").ZodString;
|
|
1566
1580
|
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
1567
1581
|
name: import("zod").ZodString;
|