debreu-mcp-admin 3.187.0 → 3.188.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/dist/index.js +8 -6
- package/dist/index.js.map +1 -1
- package/dist/transactionTools.d.ts +457 -0
- package/dist/transactionTools.js +144 -0
- package/dist/transactionTools.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
export declare const TRANSACTION_TOOLS: ({
|
|
2
|
+
name: string;
|
|
3
|
+
description: string;
|
|
4
|
+
inputSchema: {
|
|
5
|
+
type: "object";
|
|
6
|
+
properties: {
|
|
7
|
+
search: {
|
|
8
|
+
type: string;
|
|
9
|
+
description: string;
|
|
10
|
+
};
|
|
11
|
+
company_id: {
|
|
12
|
+
type: string;
|
|
13
|
+
};
|
|
14
|
+
company_name: {
|
|
15
|
+
type: string;
|
|
16
|
+
};
|
|
17
|
+
role: {
|
|
18
|
+
type: string;
|
|
19
|
+
enum: string[];
|
|
20
|
+
};
|
|
21
|
+
side: {
|
|
22
|
+
type: string;
|
|
23
|
+
enum: string[];
|
|
24
|
+
};
|
|
25
|
+
transaction_type: {
|
|
26
|
+
type: string;
|
|
27
|
+
items: {
|
|
28
|
+
type: string;
|
|
29
|
+
enum: string[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
status: {
|
|
33
|
+
type: string;
|
|
34
|
+
items: {
|
|
35
|
+
type: string;
|
|
36
|
+
enum: string[];
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
date_from: {
|
|
40
|
+
type: string;
|
|
41
|
+
description: string;
|
|
42
|
+
};
|
|
43
|
+
date_to: {
|
|
44
|
+
type: string;
|
|
45
|
+
description: string;
|
|
46
|
+
};
|
|
47
|
+
min_value: {
|
|
48
|
+
type: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
max_value: {
|
|
52
|
+
type: string;
|
|
53
|
+
description: string;
|
|
54
|
+
};
|
|
55
|
+
sort_by: {
|
|
56
|
+
type: string;
|
|
57
|
+
enum: string[];
|
|
58
|
+
};
|
|
59
|
+
sort_order: {
|
|
60
|
+
type: string;
|
|
61
|
+
enum: string[];
|
|
62
|
+
};
|
|
63
|
+
limit: {
|
|
64
|
+
type: string;
|
|
65
|
+
minimum: number;
|
|
66
|
+
maximum: number;
|
|
67
|
+
description: string;
|
|
68
|
+
};
|
|
69
|
+
offset: {
|
|
70
|
+
type: string;
|
|
71
|
+
minimum: number;
|
|
72
|
+
};
|
|
73
|
+
uuid?: undefined;
|
|
74
|
+
transactions?: undefined;
|
|
75
|
+
};
|
|
76
|
+
required?: undefined;
|
|
77
|
+
};
|
|
78
|
+
} | {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
inputSchema: {
|
|
82
|
+
type: "object";
|
|
83
|
+
properties: {
|
|
84
|
+
uuid: {
|
|
85
|
+
type: string;
|
|
86
|
+
};
|
|
87
|
+
search?: undefined;
|
|
88
|
+
company_id?: undefined;
|
|
89
|
+
company_name?: undefined;
|
|
90
|
+
role?: undefined;
|
|
91
|
+
side?: undefined;
|
|
92
|
+
transaction_type?: undefined;
|
|
93
|
+
status?: undefined;
|
|
94
|
+
date_from?: undefined;
|
|
95
|
+
date_to?: undefined;
|
|
96
|
+
min_value?: undefined;
|
|
97
|
+
max_value?: undefined;
|
|
98
|
+
sort_by?: undefined;
|
|
99
|
+
sort_order?: undefined;
|
|
100
|
+
limit?: undefined;
|
|
101
|
+
offset?: undefined;
|
|
102
|
+
transactions?: undefined;
|
|
103
|
+
};
|
|
104
|
+
required: string[];
|
|
105
|
+
};
|
|
106
|
+
} | {
|
|
107
|
+
name: string;
|
|
108
|
+
description: string;
|
|
109
|
+
inputSchema: {
|
|
110
|
+
type: "object";
|
|
111
|
+
properties: {
|
|
112
|
+
transactions: {
|
|
113
|
+
type: string;
|
|
114
|
+
minItems: number;
|
|
115
|
+
maxItems: number;
|
|
116
|
+
items: {
|
|
117
|
+
type: string;
|
|
118
|
+
properties: {
|
|
119
|
+
parties: {
|
|
120
|
+
type: string;
|
|
121
|
+
items: {
|
|
122
|
+
type: string;
|
|
123
|
+
properties: {
|
|
124
|
+
company_id: {
|
|
125
|
+
type: string;
|
|
126
|
+
description: string;
|
|
127
|
+
};
|
|
128
|
+
company_name: {
|
|
129
|
+
type: string;
|
|
130
|
+
description: string;
|
|
131
|
+
};
|
|
132
|
+
website: {
|
|
133
|
+
type: string;
|
|
134
|
+
description: string;
|
|
135
|
+
};
|
|
136
|
+
role: {
|
|
137
|
+
type: string;
|
|
138
|
+
enum: string[];
|
|
139
|
+
description: string;
|
|
140
|
+
};
|
|
141
|
+
is_primary: {
|
|
142
|
+
type: string;
|
|
143
|
+
description: string;
|
|
144
|
+
};
|
|
145
|
+
notes: {
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
required: string[];
|
|
150
|
+
};
|
|
151
|
+
};
|
|
152
|
+
multiples: {
|
|
153
|
+
type: string;
|
|
154
|
+
items: {
|
|
155
|
+
type: string;
|
|
156
|
+
properties: {
|
|
157
|
+
metric: {
|
|
158
|
+
type: string;
|
|
159
|
+
enum: string[];
|
|
160
|
+
};
|
|
161
|
+
value: {
|
|
162
|
+
type: string;
|
|
163
|
+
description: string;
|
|
164
|
+
};
|
|
165
|
+
basis: {
|
|
166
|
+
type: string;
|
|
167
|
+
description: string;
|
|
168
|
+
};
|
|
169
|
+
label: {
|
|
170
|
+
type: string;
|
|
171
|
+
description: string;
|
|
172
|
+
};
|
|
173
|
+
};
|
|
174
|
+
required: string[];
|
|
175
|
+
};
|
|
176
|
+
};
|
|
177
|
+
sources: {
|
|
178
|
+
type: string;
|
|
179
|
+
items: {
|
|
180
|
+
type: string;
|
|
181
|
+
properties: {
|
|
182
|
+
source_kind: {
|
|
183
|
+
type: string;
|
|
184
|
+
enum: string[];
|
|
185
|
+
};
|
|
186
|
+
project_id: {
|
|
187
|
+
type: string;
|
|
188
|
+
};
|
|
189
|
+
file_id: {
|
|
190
|
+
type: string;
|
|
191
|
+
};
|
|
192
|
+
email_id: {
|
|
193
|
+
type: string;
|
|
194
|
+
};
|
|
195
|
+
url: {
|
|
196
|
+
type: string;
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
required: string[];
|
|
200
|
+
description: string;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
name: {
|
|
204
|
+
type: string[];
|
|
205
|
+
description: string;
|
|
206
|
+
};
|
|
207
|
+
transaction_type: {
|
|
208
|
+
type: string;
|
|
209
|
+
enum: string[];
|
|
210
|
+
};
|
|
211
|
+
status: {
|
|
212
|
+
type: string;
|
|
213
|
+
enum: string[];
|
|
214
|
+
description: string;
|
|
215
|
+
};
|
|
216
|
+
announced_date: {
|
|
217
|
+
type: string[];
|
|
218
|
+
description: string;
|
|
219
|
+
};
|
|
220
|
+
closed_date: {
|
|
221
|
+
type: string[];
|
|
222
|
+
description: string;
|
|
223
|
+
};
|
|
224
|
+
deal_value: {
|
|
225
|
+
type: string[];
|
|
226
|
+
description: string;
|
|
227
|
+
};
|
|
228
|
+
deal_value_currency: {
|
|
229
|
+
type: string[];
|
|
230
|
+
description: string;
|
|
231
|
+
};
|
|
232
|
+
tev: {
|
|
233
|
+
type: string[];
|
|
234
|
+
description: string;
|
|
235
|
+
};
|
|
236
|
+
tev_currency: {
|
|
237
|
+
type: string[];
|
|
238
|
+
description: string;
|
|
239
|
+
};
|
|
240
|
+
equity_value: {
|
|
241
|
+
type: string[];
|
|
242
|
+
description: string;
|
|
243
|
+
};
|
|
244
|
+
equity_value_currency: {
|
|
245
|
+
type: string[];
|
|
246
|
+
description: string;
|
|
247
|
+
};
|
|
248
|
+
stake_pct: {
|
|
249
|
+
type: string[];
|
|
250
|
+
description: string;
|
|
251
|
+
};
|
|
252
|
+
consideration_cash_pct: {
|
|
253
|
+
type: string[];
|
|
254
|
+
description: string;
|
|
255
|
+
};
|
|
256
|
+
consideration_stock_pct: {
|
|
257
|
+
type: string[];
|
|
258
|
+
description: string;
|
|
259
|
+
};
|
|
260
|
+
notes: {
|
|
261
|
+
type: string[];
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
required: string[];
|
|
265
|
+
};
|
|
266
|
+
};
|
|
267
|
+
search?: undefined;
|
|
268
|
+
company_id?: undefined;
|
|
269
|
+
company_name?: undefined;
|
|
270
|
+
role?: undefined;
|
|
271
|
+
side?: undefined;
|
|
272
|
+
transaction_type?: undefined;
|
|
273
|
+
status?: undefined;
|
|
274
|
+
date_from?: undefined;
|
|
275
|
+
date_to?: undefined;
|
|
276
|
+
min_value?: undefined;
|
|
277
|
+
max_value?: undefined;
|
|
278
|
+
sort_by?: undefined;
|
|
279
|
+
sort_order?: undefined;
|
|
280
|
+
limit?: undefined;
|
|
281
|
+
offset?: undefined;
|
|
282
|
+
uuid?: undefined;
|
|
283
|
+
};
|
|
284
|
+
required: string[];
|
|
285
|
+
};
|
|
286
|
+
} | {
|
|
287
|
+
name: string;
|
|
288
|
+
description: string;
|
|
289
|
+
inputSchema: {
|
|
290
|
+
type: "object";
|
|
291
|
+
properties: {
|
|
292
|
+
parties: {
|
|
293
|
+
type: string;
|
|
294
|
+
items: {
|
|
295
|
+
type: string;
|
|
296
|
+
properties: {
|
|
297
|
+
company_id: {
|
|
298
|
+
type: string;
|
|
299
|
+
description: string;
|
|
300
|
+
};
|
|
301
|
+
company_name: {
|
|
302
|
+
type: string;
|
|
303
|
+
description: string;
|
|
304
|
+
};
|
|
305
|
+
website: {
|
|
306
|
+
type: string;
|
|
307
|
+
description: string;
|
|
308
|
+
};
|
|
309
|
+
role: {
|
|
310
|
+
type: string;
|
|
311
|
+
enum: string[];
|
|
312
|
+
description: string;
|
|
313
|
+
};
|
|
314
|
+
is_primary: {
|
|
315
|
+
type: string;
|
|
316
|
+
description: string;
|
|
317
|
+
};
|
|
318
|
+
notes: {
|
|
319
|
+
type: string;
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
required: string[];
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
multiples: {
|
|
326
|
+
type: string;
|
|
327
|
+
items: {
|
|
328
|
+
type: string;
|
|
329
|
+
properties: {
|
|
330
|
+
metric: {
|
|
331
|
+
type: string;
|
|
332
|
+
enum: string[];
|
|
333
|
+
};
|
|
334
|
+
value: {
|
|
335
|
+
type: string;
|
|
336
|
+
description: string;
|
|
337
|
+
};
|
|
338
|
+
basis: {
|
|
339
|
+
type: string;
|
|
340
|
+
description: string;
|
|
341
|
+
};
|
|
342
|
+
label: {
|
|
343
|
+
type: string;
|
|
344
|
+
description: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
347
|
+
required: string[];
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
sources: {
|
|
351
|
+
type: string;
|
|
352
|
+
items: {
|
|
353
|
+
type: string;
|
|
354
|
+
properties: {
|
|
355
|
+
source_kind: {
|
|
356
|
+
type: string;
|
|
357
|
+
enum: string[];
|
|
358
|
+
};
|
|
359
|
+
project_id: {
|
|
360
|
+
type: string;
|
|
361
|
+
};
|
|
362
|
+
file_id: {
|
|
363
|
+
type: string;
|
|
364
|
+
};
|
|
365
|
+
email_id: {
|
|
366
|
+
type: string;
|
|
367
|
+
};
|
|
368
|
+
url: {
|
|
369
|
+
type: string;
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
required: string[];
|
|
373
|
+
description: string;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
name: {
|
|
377
|
+
type: string[];
|
|
378
|
+
description: string;
|
|
379
|
+
};
|
|
380
|
+
transaction_type: {
|
|
381
|
+
type: string;
|
|
382
|
+
enum: string[];
|
|
383
|
+
};
|
|
384
|
+
status: {
|
|
385
|
+
type: string;
|
|
386
|
+
enum: string[];
|
|
387
|
+
description: string;
|
|
388
|
+
};
|
|
389
|
+
announced_date: {
|
|
390
|
+
type: string[];
|
|
391
|
+
description: string;
|
|
392
|
+
};
|
|
393
|
+
closed_date: {
|
|
394
|
+
type: string[];
|
|
395
|
+
description: string;
|
|
396
|
+
};
|
|
397
|
+
deal_value: {
|
|
398
|
+
type: string[];
|
|
399
|
+
description: string;
|
|
400
|
+
};
|
|
401
|
+
deal_value_currency: {
|
|
402
|
+
type: string[];
|
|
403
|
+
description: string;
|
|
404
|
+
};
|
|
405
|
+
tev: {
|
|
406
|
+
type: string[];
|
|
407
|
+
description: string;
|
|
408
|
+
};
|
|
409
|
+
tev_currency: {
|
|
410
|
+
type: string[];
|
|
411
|
+
description: string;
|
|
412
|
+
};
|
|
413
|
+
equity_value: {
|
|
414
|
+
type: string[];
|
|
415
|
+
description: string;
|
|
416
|
+
};
|
|
417
|
+
equity_value_currency: {
|
|
418
|
+
type: string[];
|
|
419
|
+
description: string;
|
|
420
|
+
};
|
|
421
|
+
stake_pct: {
|
|
422
|
+
type: string[];
|
|
423
|
+
description: string;
|
|
424
|
+
};
|
|
425
|
+
consideration_cash_pct: {
|
|
426
|
+
type: string[];
|
|
427
|
+
description: string;
|
|
428
|
+
};
|
|
429
|
+
consideration_stock_pct: {
|
|
430
|
+
type: string[];
|
|
431
|
+
description: string;
|
|
432
|
+
};
|
|
433
|
+
notes: {
|
|
434
|
+
type: string[];
|
|
435
|
+
};
|
|
436
|
+
uuid: {
|
|
437
|
+
type: string;
|
|
438
|
+
};
|
|
439
|
+
search?: undefined;
|
|
440
|
+
company_id?: undefined;
|
|
441
|
+
company_name?: undefined;
|
|
442
|
+
role?: undefined;
|
|
443
|
+
side?: undefined;
|
|
444
|
+
date_from?: undefined;
|
|
445
|
+
date_to?: undefined;
|
|
446
|
+
min_value?: undefined;
|
|
447
|
+
max_value?: undefined;
|
|
448
|
+
sort_by?: undefined;
|
|
449
|
+
sort_order?: undefined;
|
|
450
|
+
limit?: undefined;
|
|
451
|
+
offset?: undefined;
|
|
452
|
+
transactions?: undefined;
|
|
453
|
+
};
|
|
454
|
+
required: string[];
|
|
455
|
+
};
|
|
456
|
+
})[];
|
|
457
|
+
export declare const TRANSACTION_TOOL_NAMES: Set<string>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// Transactions (M&A precedent deals). Shapes mirror the backend ext handlers in
|
|
2
|
+
// app/services/agentic_chat/transaction_handlers.py, which validate again. Listed
|
|
3
|
+
// for every admin; the backend checks view_transactions for the acting user.
|
|
4
|
+
const TYPES = [
|
|
5
|
+
"acquisition", "merger", "lbo", "add_on", "take_private", "carve_out",
|
|
6
|
+
"minority_stake", "growth_equity", "recapitalization", "ipo", "private_placement", "other",
|
|
7
|
+
];
|
|
8
|
+
const STATUSES = ["announced", "closed", "terminated", "rumored"];
|
|
9
|
+
const ROLES = [
|
|
10
|
+
"target", "buyer", "seller", "sponsor", "lead_investor", "co_investor",
|
|
11
|
+
"buy_side_advisor", "sell_side_advisor", "legal_counsel", "lender", "other",
|
|
12
|
+
];
|
|
13
|
+
const METRICS = ["ev_revenue", "ev_ebitda", "ev_arr", "ev_ebit", "p_e", "other"];
|
|
14
|
+
const CURRENCY = { type: ["string", "null"], description: "USD (default), EUR, GBP or CAD." };
|
|
15
|
+
const party = {
|
|
16
|
+
type: "object",
|
|
17
|
+
properties: {
|
|
18
|
+
company_id: { type: "string", description: "Company UUID. Or give company_name (and optionally website) and it is matched to an existing company." },
|
|
19
|
+
company_name: { type: "string", description: "Company name, matched exactly or by alias. An unclear name fails that transaction and returns candidates; it never creates a company (use create_company first)." },
|
|
20
|
+
website: { type: "string", description: "Company website, used to match before the name." },
|
|
21
|
+
role: { type: "string", enum: ROLES, description: "The company's role in the deal. Sides are derived: target/seller/sell_side_advisor = sell side; buyer/sponsor/lead_investor/co_investor/buy_side_advisor/lender = buy side." },
|
|
22
|
+
is_primary: { type: "boolean", description: "The main target and main buyer (they name the deal: 'Buyer / Target')." },
|
|
23
|
+
notes: { type: "string" },
|
|
24
|
+
},
|
|
25
|
+
required: ["role"],
|
|
26
|
+
};
|
|
27
|
+
const multiple = {
|
|
28
|
+
type: "object",
|
|
29
|
+
properties: {
|
|
30
|
+
metric: { type: "string", enum: METRICS },
|
|
31
|
+
value: { type: "number", description: "The multiple, e.g. 12.5 for 12.5x." },
|
|
32
|
+
basis: { type: "string", description: "Period the multiple is on: LTM, NTM, FY2025, FY27E, Q3 2026, H1 2026, Mon YYYY." },
|
|
33
|
+
label: { type: "string", description: "Name of the multiple, only when metric is 'other'." },
|
|
34
|
+
},
|
|
35
|
+
required: ["metric", "value"],
|
|
36
|
+
};
|
|
37
|
+
const source = {
|
|
38
|
+
type: "object",
|
|
39
|
+
properties: {
|
|
40
|
+
source_kind: { type: "string", enum: ["project", "file", "email", "url"] },
|
|
41
|
+
project_id: { type: "string" },
|
|
42
|
+
file_id: { type: "string" },
|
|
43
|
+
email_id: { type: "string" },
|
|
44
|
+
url: { type: "string" },
|
|
45
|
+
},
|
|
46
|
+
required: ["source_kind"],
|
|
47
|
+
description: "Where the deal came from: give exactly the one id/url matching source_kind.",
|
|
48
|
+
};
|
|
49
|
+
const dealFields = {
|
|
50
|
+
name: { type: ["string", "null"], description: "Optional display name; defaults to 'Buyer / Target'." },
|
|
51
|
+
transaction_type: { type: "string", enum: TYPES },
|
|
52
|
+
status: { type: "string", enum: STATUSES, description: "Default closed." },
|
|
53
|
+
announced_date: { type: ["string", "null"], description: "YYYY-MM-DD. At least one of announced_date / closed_date is required." },
|
|
54
|
+
closed_date: { type: ["string", "null"], description: "YYYY-MM-DD." },
|
|
55
|
+
deal_value: { type: ["number", "null"], description: "Headline deal size in $M (millions of deal_value_currency)." },
|
|
56
|
+
deal_value_currency: CURRENCY,
|
|
57
|
+
tev: { type: ["number", "null"], description: "Total enterprise value in $M." },
|
|
58
|
+
tev_currency: CURRENCY,
|
|
59
|
+
equity_value: { type: ["number", "null"], description: "Equity value in $M." },
|
|
60
|
+
equity_value_currency: CURRENCY,
|
|
61
|
+
stake_pct: { type: ["number", "null"], description: "Share acquired, 0-1 (0.35 = 35%)." },
|
|
62
|
+
consideration_cash_pct: { type: ["number", "null"], description: "Cash share of consideration, 0-1." },
|
|
63
|
+
consideration_stock_pct: { type: ["number", "null"], description: "Stock share of consideration, 0-1." },
|
|
64
|
+
notes: { type: ["string", "null"] },
|
|
65
|
+
};
|
|
66
|
+
export const TRANSACTION_TOOLS = [
|
|
67
|
+
{
|
|
68
|
+
name: "query_transactions",
|
|
69
|
+
description: "Search the team's Transactions: M&A precedent deals (buyer, target, advisors, date, size, multiples). " +
|
|
70
|
+
"Filter by company (company_id or company_name) with an optional role or side (buy / sell), type, status, closed-date range and deal value range ($M). " +
|
|
71
|
+
"Newest first; paginated: pass next_offset back as offset until has_more is false. Each row has parties with roles, multiples with basis, sources and a url.",
|
|
72
|
+
inputSchema: {
|
|
73
|
+
type: "object",
|
|
74
|
+
properties: {
|
|
75
|
+
search: { type: "string", description: "Matches the deal name, notes and party company names." },
|
|
76
|
+
company_id: { type: "string" },
|
|
77
|
+
company_name: { type: "string" },
|
|
78
|
+
role: { type: "string", enum: ROLES },
|
|
79
|
+
side: { type: "string", enum: ["buy", "sell", "neutral"] },
|
|
80
|
+
transaction_type: { type: "array", items: { type: "string", enum: TYPES } },
|
|
81
|
+
status: { type: "array", items: { type: "string", enum: STATUSES } },
|
|
82
|
+
date_from: { type: "string", description: "Closed on or after, YYYY-MM-DD." },
|
|
83
|
+
date_to: { type: "string", description: "Closed on or before, YYYY-MM-DD." },
|
|
84
|
+
min_value: { type: "number", description: "Deal value at least, $M." },
|
|
85
|
+
max_value: { type: "number", description: "Deal value at most, $M." },
|
|
86
|
+
sort_by: { type: "string", enum: ["closed_date", "announced_date", "deal_value", "tev", "ev_ebitda", "ev_revenue", "display_name", "created_at"] },
|
|
87
|
+
sort_order: { type: "string", enum: ["asc", "desc"] },
|
|
88
|
+
limit: { type: "integer", minimum: 1, maximum: 100, description: "Default 25." },
|
|
89
|
+
offset: { type: "integer", minimum: 0 },
|
|
90
|
+
},
|
|
91
|
+
},
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "get_transaction",
|
|
95
|
+
description: "One transaction by UUID with all parties, multiples and sources.",
|
|
96
|
+
inputSchema: { type: "object", properties: { uuid: { type: "string" } }, required: ["uuid"] },
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "create_transactions",
|
|
100
|
+
description: "Log one or more M&A precedent deals (up to 100 per call, e.g. every row of a banker's precedent-transactions table). " +
|
|
101
|
+
"Each transaction needs transaction_type and announced_date or closed_date; parties link to existing companies by company_id or company_name. " +
|
|
102
|
+
"Money is in $M with a currency per field; multiples carry their basis (LTM, FY2025...). Returns one result per transaction (created with uuid/url, or the error) " +
|
|
103
|
+
"and possible_duplicates when the same target and buyer already have a deal within 30 days.",
|
|
104
|
+
inputSchema: {
|
|
105
|
+
type: "object",
|
|
106
|
+
properties: {
|
|
107
|
+
transactions: {
|
|
108
|
+
type: "array",
|
|
109
|
+
minItems: 1,
|
|
110
|
+
maxItems: 100,
|
|
111
|
+
items: {
|
|
112
|
+
type: "object",
|
|
113
|
+
properties: {
|
|
114
|
+
...dealFields,
|
|
115
|
+
parties: { type: "array", items: party },
|
|
116
|
+
multiples: { type: "array", items: multiple },
|
|
117
|
+
sources: { type: "array", items: source },
|
|
118
|
+
},
|
|
119
|
+
required: ["transaction_type"],
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
},
|
|
123
|
+
required: ["transactions"],
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: "update_transaction",
|
|
128
|
+
description: "Update a transaction by UUID. Only provided fields change; parties, multiples or sources, when sent, replace that whole list. " +
|
|
129
|
+
"Delete with delete_record(record_type='transaction').",
|
|
130
|
+
inputSchema: {
|
|
131
|
+
type: "object",
|
|
132
|
+
properties: {
|
|
133
|
+
uuid: { type: "string" },
|
|
134
|
+
...dealFields,
|
|
135
|
+
parties: { type: "array", items: party },
|
|
136
|
+
multiples: { type: "array", items: multiple },
|
|
137
|
+
sources: { type: "array", items: source },
|
|
138
|
+
},
|
|
139
|
+
required: ["uuid"],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
];
|
|
143
|
+
export const TRANSACTION_TOOL_NAMES = new Set(TRANSACTION_TOOLS.map((tool) => tool.name));
|
|
144
|
+
//# sourceMappingURL=transactionTools.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transactionTools.js","sourceRoot":"","sources":["../src/transactionTools.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,kFAAkF;AAClF,6EAA6E;AAE7E,MAAM,KAAK,GAAG;IACZ,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,WAAW;IACrE,gBAAgB,EAAE,eAAe,EAAE,kBAAkB,EAAE,KAAK,EAAE,mBAAmB,EAAE,OAAO;CAC3F,CAAC;AACF,MAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC;AAClE,MAAM,KAAK,GAAG;IACZ,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,aAAa;IACtE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,QAAQ,EAAE,OAAO;CAC5E,CAAC;AACF,MAAM,OAAO,GAAG,CAAC,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;AACjF,MAAM,QAAQ,GAAG,EAAE,IAAI,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,EAAE,WAAW,EAAE,iCAAiC,EAAE,CAAC;AAE9F,MAAM,KAAK,GAAG;IACZ,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,uGAAuG,EAAE;QACpJ,YAAY,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,EAAE,kKAAkK,EAAE;QACjN,OAAO,EAAE,EAAE,IAAI,EAAE,QA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