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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TOOLS = [
2
+ {
3
+ "type": "function",
4
+ "function": {
5
+ "name": "teams_list_my_teams",
6
+ "description": "List all Microsoft Teams that the authenticated user is a member of",
7
+ "parameters": {
8
+ "type": "object",
9
+ "properties": {}
10
+ }
11
+ }
12
+ },
13
+ {
14
+ "type": "function",
15
+ "function": {
16
+ "name": "teams_list_channels",
17
+ "description": "List all channels within a specific Microsoft Team by team_id",
18
+ "parameters": {
19
+ "type": "object",
20
+ "properties": {
21
+ "team_id": {"type": "string", "description": "The ID of the Team"}
22
+ },
23
+ "required": ["team_id"]
24
+ }
25
+ }
26
+ },
27
+ {
28
+ "type": "function",
29
+ "function": {
30
+ "name": "teams_create_channel",
31
+ "description": "Create a new channel in a Microsoft Team",
32
+ "parameters": {
33
+ "type": "object",
34
+ "properties": {
35
+ "team_id": {"type": "string", "description": "The ID of the Team"},
36
+ "display_name": {"type": "string", "description": "The channel name"},
37
+ "description": {"type": "string", "description": "Channel description"}
38
+ },
39
+ "required": ["team_id", "display_name"]
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "type": "function",
45
+ "function": {
46
+ "name": "teams_list_channel_messages",
47
+ "description": "List recent messages from a channel in Microsoft Teams",
48
+ "parameters": {
49
+ "type": "object",
50
+ "properties": {
51
+ "team_id": {"type": "string", "description": "The ID of the Team"},
52
+ "channel_id": {"type": "string", "description": "The ID of the Channel"},
53
+ "top": {"type": "integer", "description": "Number of messages to retrieve, default 10"}
54
+ },
55
+ "required": ["team_id", "channel_id"]
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "type": "function",
61
+ "function": {
62
+ "name": "teams_send_channel_message",
63
+ "description": "Send a message to a specific Microsoft Teams channel",
64
+ "parameters": {
65
+ "type": "object",
66
+ "properties": {
67
+ "team_id": {"type": "string", "description": "The ID of the Team"},
68
+ "channel_id": {"type": "string", "description": "The ID of the Channel"},
69
+ "content": {"type": "string", "description": "The message body text or HTML content"}
70
+ },
71
+ "required": ["team_id", "channel_id", "content"]
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "type": "function",
77
+ "function": {
78
+ "name": "teams_reply_channel_message",
79
+ "description": "Reply to an existing message thread in a Microsoft Teams channel",
80
+ "parameters": {
81
+ "type": "object",
82
+ "properties": {
83
+ "team_id": {"type": "string", "description": "The ID of the Team"},
84
+ "channel_id": {"type": "string", "description": "The ID of the Channel"},
85
+ "message_id": {"type": "string", "description": "The ID of the parent message to reply to"},
86
+ "content": {"type": "string", "description": "The reply message body text"}
87
+ },
88
+ "required": ["team_id", "channel_id", "message_id", "content"]
89
+ }
90
+ }
91
+ },
92
+ {
93
+ "type": "function",
94
+ "function": {
95
+ "name": "teams_list_chats",
96
+ "description": "List 1-on-1 and group chats of the user in Microsoft Teams",
97
+ "parameters": {
98
+ "type": "object",
99
+ "properties": {
100
+ "top": {"type": "integer", "description": "Number of chats to fetch, default 10"}
101
+ }
102
+ }
103
+ }
104
+ },
105
+ {
106
+ "type": "function",
107
+ "function": {
108
+ "name": "teams_get_chat_messages",
109
+ "description": "Get messages from a specific 1-on-1 or group chat by chat_id",
110
+ "parameters": {
111
+ "type": "object",
112
+ "properties": {
113
+ "chat_id": {"type": "string", "description": "The ID of the chat"},
114
+ "top": {"type": "integer", "description": "Number of messages, default 10"}
115
+ },
116
+ "required": ["chat_id"]
117
+ }
118
+ }
119
+ },
120
+ {
121
+ "type": "function",
122
+ "function": {
123
+ "name": "teams_send_chat_message",
124
+ "description": "Send a message to a 1-on-1 or group chat in Microsoft Teams",
125
+ "parameters": {
126
+ "type": "object",
127
+ "properties": {
128
+ "chat_id": {"type": "string", "description": "The ID of the chat"},
129
+ "content": {"type": "string", "description": "The message body text or HTML content"}
130
+ },
131
+ "required": ["chat_id", "content"]
132
+ }
133
+ }
134
+ },
135
+ {
136
+ "type": "function",
137
+ "function": {
138
+ "name": "teams_create_chat",
139
+ "description": "Create a new 1-on-1 or group chat in Microsoft Teams with target user emails/IDs",
140
+ "parameters": {
141
+ "type": "object",
142
+ "properties": {
143
+ "user_principal_names": {"type": "string", "description": "Comma-separated email addresses of the users to include in the chat"},
144
+ "topic": {"type": "string", "description": "Optional title for a group chat"}
145
+ },
146
+ "required": ["user_principal_names"]
147
+ }
148
+ }
149
+ },
150
+ {
151
+ "type": "function",
152
+ "function": {
153
+ "name": "teams_create_online_meeting",
154
+ "description": "Create or schedule a Microsoft Teams online meeting with join URL and conference ID",
155
+ "parameters": {
156
+ "type": "object",
157
+ "properties": {
158
+ "subject": {"type": "string", "description": "Subject/Title of the online meeting"},
159
+ "start_datetime": {"type": "string", "description": "ISO start datetime string e.g. '2026-08-20T14:00:00Z'"},
160
+ "end_datetime": {"type": "string", "description": "ISO end datetime string e.g. '2026-08-20T15:00:00Z'"}
161
+ },
162
+ "required": ["subject", "start_datetime", "end_datetime"]
163
+ }
164
+ }
165
+ },
166
+ {
167
+ "type": "function",
168
+ "function": {
169
+ "name": "teams_get_meeting_details",
170
+ "description": "Get details of an online meeting in Microsoft Teams by meeting_id",
171
+ "parameters": {
172
+ "type": "object",
173
+ "properties": {
174
+ "meeting_id": {"type": "string", "description": "The ID of the online meeting"}
175
+ },
176
+ "required": ["meeting_id"]
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "type": "function",
182
+ "function": {
183
+ "name": "teams_get_meeting_transcripts",
184
+ "description": "Retrieve the transcript content of a Microsoft Teams meeting to summarize or analyze",
185
+ "parameters": {
186
+ "type": "object",
187
+ "properties": {
188
+ "meeting_id": {"type": "string", "description": "The ID of the online meeting"}
189
+ },
190
+ "required": ["meeting_id"]
191
+ }
192
+ }
193
+ },
194
+ {
195
+ "type": "function",
196
+ "function": {
197
+ "name": "teams_get_user_presence",
198
+ "description": "Get the presence/availability status (Available, Busy, Away, DoNotDisturb) of the user or a target user ID",
199
+ "parameters": {
200
+ "type": "object",
201
+ "properties": {
202
+ "target_user_id": {"type": "string", "description": "Optional user ID (if omitted, checks current user presence)"}
203
+ }
204
+ }
205
+ }
206
+ },
207
+ {
208
+ "type": "function",
209
+ "function": {
210
+ "name": "teams_list_team_members",
211
+ "description": "List all members and their roles in a specific Microsoft Team",
212
+ "parameters": {
213
+ "type": "object",
214
+ "properties": {
215
+ "team_id": {"type": "string", "description": "The ID of the Team"}
216
+ },
217
+ "required": ["team_id"]
218
+ }
219
+ }
220
+ },
221
+ {
222
+ "type": "function",
223
+ "function": {
224
+ "name": "teams_add_team_member",
225
+ "description": "Add a new member to a Microsoft Team by user ID",
226
+ "parameters": {
227
+ "type": "object",
228
+ "properties": {
229
+ "team_id": {"type": "string", "description": "The ID of the Team"},
230
+ "user_id_to_add": {"type": "string", "description": "The Microsoft Azure AD / Graph user ID"},
231
+ "roles": {"type": "string", "description": "Roles e.g. 'owner' or empty for default member"}
232
+ },
233
+ "required": ["team_id", "user_id_to_add"]
234
+ }
235
+ }
236
+ },
237
+ {
238
+ "type": "function",
239
+ "function": {
240
+ "name": "teams_api_request",
241
+ "description": "Execute any generic Microsoft Graph REST API endpoint for Teams or Microsoft 365",
242
+ "parameters": {
243
+ "type": "object",
244
+ "properties": {
245
+ "endpoint": {"type": "string", "description": "Relative endpoint path starting with /v1.0/ or /beta/ e.g. '/v1.0/me/joinedTeams'"},
246
+ "method": {"type": "string", "description": "HTTP method: GET, POST, PATCH, PUT, DELETE. Default: GET"},
247
+ "body_json": {"type": "string", "description": "JSON string body for POST/PATCH/PUT requests"}
248
+ },
249
+ "required": ["endpoint"]
250
+ }
251
+ }
252
+ },
253
+ {
254
+ "type": "function",
255
+ "function": {
256
+ "name": "gmail_search_emails",
257
+ "description": "Search or list emails in user's Gmail inbox using a query",
258
+ "parameters": {
259
+ "type": "object",
260
+ "properties": {
261
+ "query": {"type": "string", "description": "Search query e.g. 'from:boss', 'is:unread', 'subject:meeting' or empty for recent"},
262
+ "max_results": {"type": "integer", "description": "Number of emails to fetch, default 5"}
263
+ }
264
+ }
265
+ }
266
+ },
267
+ {
268
+ "type": "function",
269
+ "function": {
270
+ "name": "gmail_get_email_detail",
271
+ "description": "Get full details and content of a specific email by message_id",
272
+ "parameters": {
273
+ "type": "object",
274
+ "properties": {
275
+ "message_id": {"type": "string", "description": "The ID of the email message"}
276
+ },
277
+ "required": ["message_id"]
278
+ }
279
+ }
280
+ },
281
+ {
282
+ "type": "function",
283
+ "function": {
284
+ "name": "gmail_create_draft",
285
+ "description": "Create a new draft email in user's Gmail",
286
+ "parameters": {
287
+ "type": "object",
288
+ "properties": {
289
+ "to": {"type": "string", "description": "Recipient email address"},
290
+ "subject": {"type": "string", "description": "Email subject line"},
291
+ "body": {"type": "string", "description": "Email body content"}
292
+ },
293
+ "required": ["to", "subject", "body"]
294
+ }
295
+ }
296
+ },
297
+ {
298
+ "type": "function",
299
+ "function": {
300
+ "name": "gmail_send_email",
301
+ "description": "Send an email immediately from user's Gmail account",
302
+ "parameters": {
303
+ "type": "object",
304
+ "properties": {
305
+ "to": {"type": "string", "description": "Recipient email address"},
306
+ "subject": {"type": "string", "description": "Email subject line"},
307
+ "body": {"type": "string", "description": "Email body content"}
308
+ },
309
+ "required": ["to", "subject", "body"]
310
+ }
311
+ }
312
+ },
313
+ {
314
+ "type": "function",
315
+ "function": {
316
+ "name": "gmail_delete_email",
317
+ "description": "Delete an email by its message_id",
318
+ "parameters": {
319
+ "type": "object",
320
+ "properties": {
321
+ "message_id": {"type": "string", "description": "The ID of the email message to delete"}
322
+ },
323
+ "required": ["message_id"]
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "type": "function",
329
+ "function": {
330
+ "name": "gmail_delete_draft",
331
+ "description": "Delete or discard a draft email by subject or draft_id",
332
+ "parameters": {
333
+ "type": "object",
334
+ "properties": {
335
+ "draft_id": {"type": "string", "description": "The ID of the draft to delete"},
336
+ "query": {"type": "string", "description": "Search text or subject to find the draft"}
337
+ }
338
+ }
339
+ }
340
+ },
341
+ {
342
+ "type": "function",
343
+ "function": {
344
+ "name": "calendar_list_events",
345
+ "description": "Fetch upcoming or schedule events from Google Calendar",
346
+ "parameters": {
347
+ "type": "object",
348
+ "properties": {
349
+ "max_results": {"type": "integer", "description": "Number of events to fetch, default 10"}
350
+ }
351
+ }
352
+ }
353
+ },
354
+ {
355
+ "type": "function",
356
+ "function": {
357
+ "name": "calendar_create_event",
358
+ "description": "Create a new event/meeting in Google Calendar",
359
+ "parameters": {
360
+ "type": "object",
361
+ "properties": {
362
+ "summary": {"type": "string", "description": "Event title or summary"},
363
+ "start_time": {"type": "string", "description": "Start ISO datetime string e.g. 2026-08-15T09:00:00Z"},
364
+ "end_time": {"type": "string", "description": "End ISO datetime string e.g. 2026-08-15T10:00:00Z"},
365
+ "description": {"type": "string", "description": "Optional event description"},
366
+ "location": {"type": "string", "description": "Optional event location"}
367
+ },
368
+ "required": ["summary", "start_time", "end_time"]
369
+ }
370
+ }
371
+ },
372
+ {
373
+ "type": "function",
374
+ "function": {
375
+ "name": "calendar_update_event",
376
+ "description": "Update an existing event in Google Calendar",
377
+ "parameters": {
378
+ "type": "object",
379
+ "properties": {
380
+ "event_id": {"type": "string", "description": "The ID of the event to update"},
381
+ "summary": {"type": "string", "description": "New event title"},
382
+ "start_time": {"type": "string", "description": "New start ISO datetime"},
383
+ "end_time": {"type": "string", "description": "New end ISO datetime"},
384
+ "description": {"type": "string", "description": "New description"}
385
+ },
386
+ "required": ["event_id"]
387
+ }
388
+ }
389
+ },
390
+ {
391
+ "type": "function",
392
+ "function": {
393
+ "name": "calendar_delete_event",
394
+ "description": "Delete an event from Google Calendar by event_id",
395
+ "parameters": {
396
+ "type": "object",
397
+ "properties": {
398
+ "event_id": {"type": "string", "description": "The ID of the event to delete"}
399
+ },
400
+ "required": ["event_id"]
401
+ }
402
+ }
403
+ },
404
+ {
405
+ "type": "function",
406
+ "function": {
407
+ "name": "drive_search_files",
408
+ "description": "Search files in Google Drive by name or type",
409
+ "parameters": {
410
+ "type": "object",
411
+ "properties": {
412
+ "query": {"type": "string", "description": "Search text or filename query"}
413
+ }
414
+ }
415
+ }
416
+ },
417
+ {
418
+ "type": "function",
419
+ "function": {
420
+ "name": "drive_read_file",
421
+ "description": "Read text contents of a file in Google Drive by file_id",
422
+ "parameters": {
423
+ "type": "object",
424
+ "properties": {
425
+ "file_id": {"type": "string", "description": "The ID of the file in Drive"}
426
+ },
427
+ "required": ["file_id"]
428
+ }
429
+ }
430
+ },
431
+ {
432
+ "type": "function",
433
+ "function": {
434
+ "name": "drive_create_file",
435
+ "description": "Create a new text or doc file in Google Drive",
436
+ "parameters": {
437
+ "type": "object",
438
+ "properties": {
439
+ "name": {"type": "string", "description": "File name"},
440
+ "content": {"type": "string", "description": "Text content for the file"}
441
+ },
442
+ "required": ["name", "content"]
443
+ }
444
+ }
445
+ },
446
+ {
447
+ "type": "function",
448
+ "function": {
449
+ "name": "drive_delete_file",
450
+ "description": "Delete a file from Google Drive by file_id",
451
+ "parameters": {
452
+ "type": "object",
453
+ "properties": {
454
+ "file_id": {"type": "string", "description": "The ID of the file to delete"}
455
+ },
456
+ "required": ["file_id"]
457
+ }
458
+ }
459
+ },
460
+ {
461
+ "type": "function",
462
+ "function": {
463
+ "name": "drive_update_file",
464
+ "description": "Update text content of an existing file in Google Drive",
465
+ "parameters": {
466
+ "type": "object",
467
+ "properties": {
468
+ "file_id": {"type": "string", "description": "The ID of the file to update"},
469
+ "content": {"type": "string", "description": "New text content"}
470
+ },
471
+ "required": ["file_id", "content"]
472
+ }
473
+ }
474
+ },
475
+ {
476
+ "type": "function",
477
+ "function": {
478
+ "name": "notion_search",
479
+ "description": "Search Notion pages, databases, or documents by query",
480
+ "parameters": {
481
+ "type": "object",
482
+ "properties": {
483
+ "query": {"type": "string", "description": "Search keyword or empty to list recent pages"},
484
+ "max_results": {"type": "integer", "description": "Number of results to fetch, default 5"}
485
+ }
486
+ }
487
+ }
488
+ },
489
+ {
490
+ "type": "function",
491
+ "function": {
492
+ "name": "notion_get_page_content",
493
+ "description": "Read text content and blocks of a specific Notion page by page_id",
494
+ "parameters": {
495
+ "type": "object",
496
+ "properties": {
497
+ "page_id": {"type": "string", "description": "The ID of the Notion page"}
498
+ },
499
+ "required": ["page_id"]
500
+ }
501
+ }
502
+ },
503
+ {
504
+ "type": "function",
505
+ "function": {
506
+ "name": "notion_create_page",
507
+ "description": "Create a new page in Notion inside a parent page or database",
508
+ "parameters": {
509
+ "type": "object",
510
+ "properties": {
511
+ "parent_id": {"type": "string", "description": "Optional parent page or database ID"},
512
+ "title": {"type": "string", "description": "Title of the new Notion page"},
513
+ "content": {"type": "string", "description": "Initial text content for the page"}
514
+ },
515
+ "required": ["title"]
516
+ }
517
+ }
518
+ },
519
+ {
520
+ "type": "function",
521
+ "function": {
522
+ "name": "notion_update_page",
523
+ "description": "Update or edit content/title of an existing Notion page by page_id. Set replace_content to true when replacing page content.",
524
+ "parameters": {
525
+ "type": "object",
526
+ "properties": {
527
+ "page_id": {"type": "string", "description": "The ID of the existing Notion page"},
528
+ "title": {"type": "string", "description": "Optional new title for the page"},
529
+ "content": {"type": "string", "description": "New content to insert or replace"},
530
+ "replace_content": {"type": "boolean", "description": "Set true to delete old blocks and replace with new content"}
531
+ },
532
+ "required": ["page_id"]
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "type": "function",
538
+ "function": {
539
+ "name": "notion_delete_page",
540
+ "description": "Delete or archive an existing Notion page by page_id",
541
+ "parameters": {
542
+ "type": "object",
543
+ "properties": {
544
+ "page_id": {"type": "string", "description": "The ID of the Notion page to delete or archive"}
545
+ },
546
+ "required": ["page_id"]
547
+ }
548
+ }
549
+ },
550
+ {
551
+ "type": "function",
552
+ "function": {
553
+ "name": "notion_append_block_children",
554
+ "description": "Append text or paragraph blocks to an existing Notion page by page_id",
555
+ "parameters": {
556
+ "type": "object",
557
+ "properties": {
558
+ "page_id": {"type": "string", "description": "The ID of the Notion page"},
559
+ "content": {"type": "string", "description": "Text content to append to the page"}
560
+ },
561
+ "required": ["page_id", "content"]
562
+ }
563
+ }
564
+ },
565
+ {
566
+ "type": "function",
567
+ "function": {
568
+ "name": "github_list_repos",
569
+ "description": "List GitHub repositories for the authenticated user",
570
+ "parameters": {
571
+ "type": "object",
572
+ "properties": {
573
+ "sort": {"type": "string", "description": "Sort by: created, updated, pushed, full_name. Default: updated"},
574
+ "per_page": {"type": "integer", "description": "Number of repositories to return, default 10"}
575
+ }
576
+ }
577
+ }
578
+ },
579
+ {
580
+ "type": "function",
581
+ "function": {
582
+ "name": "github_get_repo",
583
+ "description": "Get detailed information about a GitHub repository",
584
+ "parameters": {
585
+ "type": "object",
586
+ "properties": {
587
+ "owner": {"type": "string", "description": "The account owner of the repository"},
588
+ "repo": {"type": "string", "description": "The name of the repository"}
589
+ },
590
+ "required": ["owner", "repo"]
591
+ }
592
+ }
593
+ },
594
+ {
595
+ "type": "function",
596
+ "function": {
597
+ "name": "github_create_repo",
598
+ "description": "Create a new repository for the authenticated user",
599
+ "parameters": {
600
+ "type": "object",
601
+ "properties": {
602
+ "name": {"type": "string", "description": "The name of the new repository"},
603
+ "description": {"type": "string", "description": "A short description of the repository"},
604
+ "private": {"type": "boolean", "description": "Whether the repository is private. Default: false"},
605
+ "auto_init": {"type": "boolean", "description": "Initialize repository with a README. Default: true"}
606
+ },
607
+ "required": ["name"]
608
+ }
609
+ }
610
+ },
611
+ {
612
+ "type": "function",
613
+ "function": {
614
+ "name": "github_delete_repo",
615
+ "description": "Delete a repository owned by the authenticated user",
616
+ "parameters": {
617
+ "type": "object",
618
+ "properties": {
619
+ "owner": {"type": "string", "description": "The account owner of the repository"},
620
+ "repo": {"type": "string", "description": "The name of the repository to delete"}
621
+ },
622
+ "required": ["owner", "repo"]
623
+ }
624
+ }
625
+ },
626
+ {
627
+ "type": "function",
628
+ "function": {
629
+ "name": "github_get_file_contents",
630
+ "description": "Get contents or directory listing of a file or folder in a repository",
631
+ "parameters": {
632
+ "type": "object",
633
+ "properties": {
634
+ "owner": {"type": "string", "description": "The account owner of the repository"},
635
+ "repo": {"type": "string", "description": "The name of the repository"},
636
+ "path": {"type": "string", "description": "The content path (e.g., 'src/index.js' or '' for root)"},
637
+ "ref": {"type": "string", "description": "The name of the commit/branch/tag"}
638
+ },
639
+ "required": ["owner", "repo", "path"]
640
+ }
641
+ }
642
+ },
643
+ {
644
+ "type": "function",
645
+ "function": {
646
+ "name": "github_create_or_update_file",
647
+ "description": "Create or update a file in a GitHub repository",
648
+ "parameters": {
649
+ "type": "object",
650
+ "properties": {
651
+ "owner": {"type": "string", "description": "The account owner of the repository"},
652
+ "repo": {"type": "string", "description": "The name of the repository"},
653
+ "path": {"type": "string", "description": "The path to the file e.g. 'README.md' or 'src/app.py'"},
654
+ "message": {"type": "string", "description": "The commit message"},
655
+ "content": {"type": "string", "description": "The text content of the file"},
656
+ "branch": {"type": "string", "description": "The branch name to commit to (optional)"},
657
+ "sha": {"type": "string", "description": "The blob SHA of the file being replaced (required when updating existing file)"}
658
+ },
659
+ "required": ["owner", "repo", "path", "message", "content"]
660
+ }
661
+ }
662
+ },
663
+ {
664
+ "type": "function",
665
+ "function": {
666
+ "name": "github_delete_file",
667
+ "description": "Delete a file in a GitHub repository",
668
+ "parameters": {
669
+ "type": "object",
670
+ "properties": {
671
+ "owner": {"type": "string", "description": "The account owner of the repository"},
672
+ "repo": {"type": "string", "description": "The name of the repository"},
673
+ "path": {"type": "string", "description": "The path to the file"},
674
+ "message": {"type": "string", "description": "The commit message"},
675
+ "sha": {"type": "string", "description": "The blob SHA of the file being deleted"},
676
+ "branch": {"type": "string", "description": "The branch name"}
677
+ },
678
+ "required": ["owner", "repo", "path", "message", "sha"]
679
+ }
680
+ }
681
+ },
682
+ {
683
+ "type": "function",
684
+ "function": {
685
+ "name": "github_list_branches",
686
+ "description": "List branches in a GitHub repository",
687
+ "parameters": {
688
+ "type": "object",
689
+ "properties": {
690
+ "owner": {"type": "string", "description": "The account owner of the repository"},
691
+ "repo": {"type": "string", "description": "The name of the repository"}
692
+ },
693
+ "required": ["owner", "repo"]
694
+ }
695
+ }
696
+ },
697
+ {
698
+ "type": "function",
699
+ "function": {
700
+ "name": "github_create_branch",
701
+ "description": "Create a new branch from an existing branch or commit SHA",
702
+ "parameters": {
703
+ "type": "object",
704
+ "properties": {
705
+ "owner": {"type": "string", "description": "The account owner of the repository"},
706
+ "repo": {"type": "string", "description": "The name of the repository"},
707
+ "branch": {"type": "string", "description": "The name of the new branch"},
708
+ "from_branch": {"type": "string", "description": "The source branch name or commit SHA to branch from"}
709
+ },
710
+ "required": ["owner", "repo", "branch"]
711
+ }
712
+ }
713
+ },
714
+ {
715
+ "type": "function",
716
+ "function": {
717
+ "name": "github_list_commits",
718
+ "description": "List commits on a repository branch",
719
+ "parameters": {
720
+ "type": "object",
721
+ "properties": {
722
+ "owner": {"type": "string", "description": "The account owner of the repository"},
723
+ "repo": {"type": "string", "description": "The name of the repository"},
724
+ "branch": {"type": "string", "description": "Branch name or SHA"},
725
+ "per_page": {"type": "integer", "description": "Number of commits to return, default 5"}
726
+ },
727
+ "required": ["owner", "repo"]
728
+ }
729
+ }
730
+ },
731
+ {
732
+ "type": "function",
733
+ "function": {
734
+ "name": "github_list_pull_requests",
735
+ "description": "List pull requests in a repository",
736
+ "parameters": {
737
+ "type": "object",
738
+ "properties": {
739
+ "owner": {"type": "string", "description": "The account owner of the repository"},
740
+ "repo": {"type": "string", "description": "The name of the repository"},
741
+ "state": {"type": "string", "description": "State: open, closed, all. Default: open"}
742
+ },
743
+ "required": ["owner", "repo"]
744
+ }
745
+ }
746
+ },
747
+ {
748
+ "type": "function",
749
+ "function": {
750
+ "name": "github_create_pull_request",
751
+ "description": "Create a new pull request in a GitHub repository",
752
+ "parameters": {
753
+ "type": "object",
754
+ "properties": {
755
+ "owner": {"type": "string", "description": "The account owner of the repository"},
756
+ "repo": {"type": "string", "description": "The name of the repository"},
757
+ "title": {"type": "string", "description": "The title of the new pull request"},
758
+ "head": {"type": "string", "description": "The name of the branch where your changes are implemented"},
759
+ "base": {"type": "string", "description": "The name of the branch you want the changes pulled into (e.g. main)"},
760
+ "body": {"type": "string", "description": "The contents of the pull request"}
761
+ },
762
+ "required": ["owner", "repo", "title", "head", "base"]
763
+ }
764
+ }
765
+ },
766
+ {
767
+ "type": "function",
768
+ "function": {
769
+ "name": "github_merge_pull_request",
770
+ "description": "Merge a pull request in a GitHub repository",
771
+ "parameters": {
772
+ "type": "object",
773
+ "properties": {
774
+ "owner": {"type": "string", "description": "The account owner of the repository"},
775
+ "repo": {"type": "string", "description": "The name of the repository"},
776
+ "pull_number": {"type": "integer", "description": "The number of the pull request"},
777
+ "commit_title": {"type": "string", "description": "Title for the merge commit"},
778
+ "merge_method": {"type": "string", "description": "Merge method: merge, squash, rebase. Default: merge"}
779
+ },
780
+ "required": ["owner", "repo", "pull_number"]
781
+ }
782
+ }
783
+ },
784
+ {
785
+ "type": "function",
786
+ "function": {
787
+ "name": "github_list_issues",
788
+ "description": "List issues in a repository",
789
+ "parameters": {
790
+ "type": "object",
791
+ "properties": {
792
+ "owner": {"type": "string", "description": "The account owner of the repository"},
793
+ "repo": {"type": "string", "description": "The name of the repository"},
794
+ "state": {"type": "string", "description": "State: open, closed, all. Default: open"}
795
+ },
796
+ "required": ["owner", "repo"]
797
+ }
798
+ }
799
+ },
800
+ {
801
+ "type": "function",
802
+ "function": {
803
+ "name": "github_create_issue",
804
+ "description": "Create a new issue in a GitHub repository",
805
+ "parameters": {
806
+ "type": "object",
807
+ "properties": {
808
+ "owner": {"type": "string", "description": "The account owner of the repository"},
809
+ "repo": {"type": "string", "description": "The name of the repository"},
810
+ "title": {"type": "string", "description": "The title of the issue"},
811
+ "body": {"type": "string", "description": "The contents of the issue"}
812
+ },
813
+ "required": ["owner", "repo", "title"]
814
+ }
815
+ }
816
+ },
817
+ {
818
+ "type": "function",
819
+ "function": {
820
+ "name": "github_add_issue_comment",
821
+ "description": "Add a comment to an issue or pull request",
822
+ "parameters": {
823
+ "type": "object",
824
+ "properties": {
825
+ "owner": {"type": "string", "description": "The account owner of the repository"},
826
+ "repo": {"type": "string", "description": "The name of the repository"},
827
+ "issue_number": {"type": "integer", "description": "The number of the issue or PR"},
828
+ "body": {"type": "string", "description": "The comment text"}
829
+ },
830
+ "required": ["owner", "repo", "issue_number", "body"]
831
+ }
832
+ }
833
+ },
834
+ {
835
+ "type": "function",
836
+ "function": {
837
+ "name": "github_search",
838
+ "description": "Search GitHub repositories, code, issues, commits or users",
839
+ "parameters": {
840
+ "type": "object",
841
+ "properties": {
842
+ "type": {"type": "string", "description": "Search type: repositories, code, issues, commits, users"},
843
+ "query": {"type": "string", "description": "Search query keyword or qualifiers"}
844
+ },
845
+ "required": ["type", "query"]
846
+ }
847
+ }
848
+ },
849
+ {
850
+ "type": "function",
851
+ "function": {
852
+ "name": "github_api_request",
853
+ "description": "Execute any generic GitHub REST API endpoint",
854
+ "parameters": {
855
+ "type": "object",
856
+ "properties": {
857
+ "endpoint": {"type": "string", "description": "Relative endpoint path starting with / e.g. '/user'"},
858
+ "method": {"type": "string", "description": "HTTP method: GET, POST, PATCH, PUT, DELETE. Default: GET"},
859
+ "body_json": {"type": "string", "description": "JSON string body for POST/PATCH/PUT requests"}
860
+ },
861
+ "required": ["endpoint"]
862
+ }
863
+ }
864
+ },
865
+ {
866
+ "type": "function",
867
+ "function": {
868
+ "name": "figma_get_file",
869
+ "description": "Get full document JSON tree of a Figma file",
870
+ "parameters": {
871
+ "type": "object",
872
+ "properties": {
873
+ "file_key": {"type": "string", "description": "The key of the Figma file"},
874
+ "depth": {"type": "integer", "description": "Tree traversal depth, default: 2"}
875
+ },
876
+ "required": ["file_key"]
877
+ }
878
+ }
879
+ },
880
+ {
881
+ "type": "function",
882
+ "function": {
883
+ "name": "figma_get_file_nodes",
884
+ "description": "Get detailed node properties and layout information for specific node IDs in a Figma file",
885
+ "parameters": {
886
+ "type": "object",
887
+ "properties": {
888
+ "file_key": {"type": "string", "description": "The key of the Figma file"},
889
+ "node_ids": {"type": "string", "description": "Comma-separated list of node IDs"}
890
+ },
891
+ "required": ["file_key", "node_ids"]
892
+ }
893
+ }
894
+ },
895
+ {
896
+ "type": "function",
897
+ "function": {
898
+ "name": "figma_get_images",
899
+ "description": "Render and export nodes/frames from a Figma file as image URLs",
900
+ "parameters": {
901
+ "type": "object",
902
+ "properties": {
903
+ "file_key": {"type": "string", "description": "The key of the Figma file"},
904
+ "node_ids": {"type": "string", "description": "Comma-separated list of node IDs"},
905
+ "format": {"type": "string", "description": "Image format: png, jpg, svg, pdf. Default: png"},
906
+ "scale": {"type": "number", "description": "Export scale factor from 0.01 to 4. Default: 2"}
907
+ },
908
+ "required": ["file_key", "node_ids"]
909
+ }
910
+ }
911
+ },
912
+ {
913
+ "type": "function",
914
+ "function": {
915
+ "name": "figma_get_comments",
916
+ "description": "List all comments on a Figma file",
917
+ "parameters": {
918
+ "type": "object",
919
+ "properties": {
920
+ "file_key": {"type": "string", "description": "The key of the Figma file"}
921
+ },
922
+ "required": ["file_key"]
923
+ }
924
+ }
925
+ },
926
+ {
927
+ "type": "function",
928
+ "function": {
929
+ "name": "figma_post_comment",
930
+ "description": "Post a new comment on a Figma file or specific node location",
931
+ "parameters": {
932
+ "type": "object",
933
+ "properties": {
934
+ "file_key": {"type": "string", "description": "The key of the Figma file"},
935
+ "message": {"type": "string", "description": "The comment message text"},
936
+ "node_id": {"type": "string", "description": "Optional node ID"}
937
+ },
938
+ "required": ["file_key", "message"]
939
+ }
940
+ }
941
+ },
942
+ {
943
+ "type": "function",
944
+ "function": {
945
+ "name": "canva_search_designs",
946
+ "description": "Search docs, presentations, videos, whiteboards, and other designs in Canva",
947
+ "parameters": {
948
+ "type": "object",
949
+ "properties": {
950
+ "query": {"type": "string", "description": "Optional search term to filter designs by title or content"},
951
+ "limit": {"type": "integer", "description": "Maximum number of designs to return, default 10"},
952
+ "ownership": {"type": "string", "enum": ["any", "owned", "shared"], "description": "Filter by ownership"},
953
+ "sort_by": {"type": "string", "enum": ["relevance", "modified_descending", "modified_ascending", "title_descending", "title_ascending"], "description": "Sort order"}
954
+ }
955
+ }
956
+ }
957
+ },
958
+ {
959
+ "type": "function",
960
+ "function": {
961
+ "name": "canva_get_design",
962
+ "description": "Get detailed metadata, title, page count, and edit/view URLs of a Canva design by design_id",
963
+ "parameters": {
964
+ "type": "object",
965
+ "properties": {
966
+ "design_id": {"type": "string", "description": "The ID of the design starting with D"}
967
+ },
968
+ "required": ["design_id"]
969
+ }
970
+ }
971
+ },
972
+ {
973
+ "type": "function",
974
+ "function": {
975
+ "name": "canva_get_design_pages",
976
+ "description": "Get list of pages, slide indices, and thumbnails in a Canva design",
977
+ "parameters": {
978
+ "type": "object",
979
+ "properties": {
980
+ "design_id": {"type": "string", "description": "The ID of the design"},
981
+ "limit": {"type": "integer", "description": "Number of pages to return, default 50"},
982
+ "offset": {"type": "integer", "description": "Page index start (1-based), default 1"}
983
+ },
984
+ "required": ["design_id"]
985
+ }
986
+ }
987
+ },
988
+ {
989
+ "type": "function",
990
+ "function": {
991
+ "name": "canva_create_design",
992
+ "description": "Create a new Canva design with preset types (presentation, doc, whiteboard, poster, flyer, instagram_post, etc.) or custom dimensions",
993
+ "parameters": {
994
+ "type": "object",
995
+ "properties": {
996
+ "title": {"type": "string", "description": "Design title"},
997
+ "design_type": {"type": "string", "enum": ["presentation", "whiteboard", "doc", "poster", "flyer", "instagram_post", "facebook_post", "custom"], "description": "Preset design type. Default: presentation"},
998
+ "width": {"type": "integer", "description": "Width in pixels (required if design_type is custom)"},
999
+ "height": {"type": "integer", "description": "Height in pixels (required if design_type is custom)"},
1000
+ "asset_id": {"type": "string", "description": "Optional asset ID to insert"}
1001
+ }
1002
+ }
1003
+ }
1004
+ },
1005
+ {
1006
+ "type": "function",
1007
+ "function": {
1008
+ "name": "canva_export_design",
1009
+ "description": "Export a Canva design to PDF, PNG, JPG, PPTX, GIF, or MP4 and get download URL",
1010
+ "parameters": {
1011
+ "type": "object",
1012
+ "properties": {
1013
+ "design_id": {"type": "string", "description": "The ID of the design to export"},
1014
+ "format_type": {"type": "string", "enum": ["pdf", "png", "jpg", "pptx", "gif", "mp4"], "description": "Target export format"},
1015
+ "quality": {"type": "string", "enum": ["regular", "pro"], "description": "Export quality. Default: regular"}
1016
+ },
1017
+ "required": ["design_id", "format_type"]
1018
+ }
1019
+ }
1020
+ },
1021
+ {
1022
+ "type": "function",
1023
+ "function": {
1024
+ "name": "canva_get_export_status",
1025
+ "description": "Check the progress and download URLs of a Canva export job by export_id",
1026
+ "parameters": {
1027
+ "type": "object",
1028
+ "properties": {
1029
+ "export_id": {"type": "string", "description": "The ID of the export job"}
1030
+ },
1031
+ "required": ["export_id"]
1032
+ }
1033
+ }
1034
+ },
1035
+ {
1036
+ "type": "function",
1037
+ "function": {
1038
+ "name": "canva_upload_asset_from_url",
1039
+ "description": "Upload an external image or media asset from a URL directly into user's Canva account",
1040
+ "parameters": {
1041
+ "type": "object",
1042
+ "properties": {
1043
+ "name": {"type": "string", "description": "Name for the uploaded asset"},
1044
+ "url": {"type": "string", "description": "Public HTTPS link to the file"}
1045
+ },
1046
+ "required": ["name", "url"]
1047
+ }
1048
+ }
1049
+ },
1050
+ {
1051
+ "type": "function",
1052
+ "function": {
1053
+ "name": "canva_search_brand_templates",
1054
+ "description": "Search available brand templates in Canva",
1055
+ "parameters": {
1056
+ "type": "object",
1057
+ "properties": {
1058
+ "query": {"type": "string", "description": "Optional search term for templates"},
1059
+ "dataset": {"type": "string", "enum": ["any", "non_empty"], "description": "Filter by fillable dataset"}
1060
+ }
1061
+ }
1062
+ }
1063
+ },
1064
+ {
1065
+ "type": "function",
1066
+ "function": {
1067
+ "name": "canva_get_brand_template_dataset",
1068
+ "description": "Get dynamic autofill dataset schema of a Canva brand template by template_id",
1069
+ "parameters": {
1070
+ "type": "object",
1071
+ "properties": {
1072
+ "template_id": {"type": "string", "description": "The ID of the brand template"}
1073
+ },
1074
+ "required": ["template_id"]
1075
+ }
1076
+ }
1077
+ },
1078
+ {
1079
+ "type": "function",
1080
+ "function": {
1081
+ "name": "canva_autofill_design",
1082
+ "description": "Autofill dynamic text, images, and charts into a Canva brand template to generate a complete design",
1083
+ "parameters": {
1084
+ "type": "object",
1085
+ "properties": {
1086
+ "brand_template_id": {"type": "string", "description": "The ID of the brand template"},
1087
+ "data_json": {"type": "string", "description": "JSON string mapping dataset field keys to data values"},
1088
+ "title": {"type": "string", "description": "Optional title for the new design"}
1089
+ },
1090
+ "required": ["brand_template_id", "data_json"]
1091
+ }
1092
+ }
1093
+ },
1094
+ {
1095
+ "type": "function",
1096
+ "function": {
1097
+ "name": "canva_search_folders",
1098
+ "description": "Search folders in Canva by name or tags",
1099
+ "parameters": {
1100
+ "type": "object",
1101
+ "properties": {
1102
+ "query": {"type": "string", "description": "Folder search query"},
1103
+ "limit": {"type": "integer", "description": "Max results, default 10"}
1104
+ }
1105
+ }
1106
+ }
1107
+ },
1108
+ {
1109
+ "type": "function",
1110
+ "function": {
1111
+ "name": "canva_list_folder_items",
1112
+ "description": "List items (designs, folders, images) inside a Canva folder",
1113
+ "parameters": {
1114
+ "type": "object",
1115
+ "properties": {
1116
+ "folder_id": {"type": "string", "description": "The folder ID or 'root'"},
1117
+ "item_types": {"type": "string", "description": "Comma-separated item types e.g. 'design,folder,image'"}
1118
+ },
1119
+ "required": ["folder_id"]
1120
+ }
1121
+ }
1122
+ },
1123
+ {
1124
+ "type": "function",
1125
+ "function": {
1126
+ "name": "canva_create_folder",
1127
+ "description": "Create a new folder in Canva at root level or inside a parent folder",
1128
+ "parameters": {
1129
+ "type": "object",
1130
+ "properties": {
1131
+ "name": {"type": "string", "description": "Folder name"},
1132
+ "parent_folder_id": {"type": "string", "description": "Parent folder ID or 'root'"}
1133
+ },
1134
+ "required": ["name"]
1135
+ }
1136
+ }
1137
+ },
1138
+ {
1139
+ "type": "function",
1140
+ "function": {
1141
+ "name": "canva_move_item_to_folder",
1142
+ "description": "Move a design, image, or folder into a destination folder in Canva",
1143
+ "parameters": {
1144
+ "type": "object",
1145
+ "properties": {
1146
+ "item_id": {"type": "string", "description": "The ID of the item to move"},
1147
+ "to_folder_id": {"type": "string", "description": "The destination folder ID or 'root'"}
1148
+ },
1149
+ "required": ["item_id", "to_folder_id"]
1150
+ }
1151
+ }
1152
+ },
1153
+ {
1154
+ "type": "function",
1155
+ "function": {
1156
+ "name": "canva_list_comments",
1157
+ "description": "List comments and threads on a Canva design",
1158
+ "parameters": {
1159
+ "type": "object",
1160
+ "properties": {
1161
+ "design_id": {"type": "string", "description": "The ID of the design"}
1162
+ },
1163
+ "required": ["design_id"]
1164
+ }
1165
+ }
1166
+ },
1167
+ {
1168
+ "type": "function",
1169
+ "function": {
1170
+ "name": "canva_comment_on_design",
1171
+ "description": "Add a comment on a Canva design",
1172
+ "parameters": {
1173
+ "type": "object",
1174
+ "properties": {
1175
+ "design_id": {"type": "string", "description": "The ID of the design"},
1176
+ "message_plaintext": {"type": "string", "description": "Comment text"}
1177
+ },
1178
+ "required": ["design_id", "message_plaintext"]
1179
+ }
1180
+ }
1181
+ },
1182
+ {
1183
+ "type": "function",
1184
+ "function": {
1185
+ "name": "canva_list_replies",
1186
+ "description": "List replies to a specific comment on a Canva design",
1187
+ "parameters": {
1188
+ "type": "object",
1189
+ "properties": {
1190
+ "design_id": {"type": "string", "description": "The ID of the design"},
1191
+ "comment_id": {"type": "string", "description": "The ID of the comment"}
1192
+ },
1193
+ "required": ["design_id", "comment_id"]
1194
+ }
1195
+ }
1196
+ },
1197
+ {
1198
+ "type": "function",
1199
+ "function": {
1200
+ "name": "canva_reply_to_comment",
1201
+ "description": "Reply to an existing comment on a Canva design",
1202
+ "parameters": {
1203
+ "type": "object",
1204
+ "properties": {
1205
+ "design_id": {"type": "string", "description": "The ID of the design"},
1206
+ "comment_id": {"type": "string", "description": "The ID of the comment"},
1207
+ "message_plaintext": {"type": "string", "description": "Reply message text"}
1208
+ },
1209
+ "required": ["design_id", "comment_id", "message_plaintext"]
1210
+ }
1211
+ }
1212
+ },
1213
+ {
1214
+ "type": "function",
1215
+ "function": {
1216
+ "name": "canva_get_user_profile",
1217
+ "description": "Get current user profile and account details from Canva",
1218
+ "parameters": {
1219
+ "type": "object",
1220
+ "properties": {}
1221
+ }
1222
+ }
1223
+ },
1224
+ {
1225
+ "type": "function",
1226
+ "function": {
1227
+ "name": "canva_api_request",
1228
+ "description": "Execute any generic Canva Connect REST API endpoint",
1229
+ "parameters": {
1230
+ "type": "object",
1231
+ "properties": {
1232
+ "endpoint": {"type": "string", "description": "Relative endpoint path starting with /v1/ e.g. '/v1/designs'"},
1233
+ "method": {"type": "string", "description": "HTTP method: GET, POST, DELETE, PATCH, PUT. Default: GET"},
1234
+ "body_json": {"type": "string", "description": "JSON string body for POST/PATCH/PUT requests"}
1235
+ },
1236
+ "required": ["endpoint"]
1237
+ }
1238
+ }
1239
+ },
1240
+ {
1241
+ "type": "function",
1242
+ "function": {
1243
+ "name": "vercel_search_documentation",
1244
+ "description": "Search official Vercel documentation, deployment guides, SDKs, and framework integration best practices",
1245
+ "parameters": {
1246
+ "type": "object",
1247
+ "properties": {
1248
+ "query": {"type": "string", "description": "Technical search query or topic related to Vercel"}
1249
+ },
1250
+ "required": ["query"]
1251
+ }
1252
+ }
1253
+ },
1254
+ {
1255
+ "type": "function",
1256
+ "function": {
1257
+ "name": "vercel_list_projects",
1258
+ "description": "List all Vercel projects belonging to the user or team",
1259
+ "parameters": {
1260
+ "type": "object",
1261
+ "properties": {
1262
+ "limit": {"type": "integer", "description": "Maximum number of projects to return, default 20"},
1263
+ "search": {"type": "string", "description": "Search query to filter projects by name"},
1264
+ "team_id": {"type": "string", "description": "Optional team ID"}
1265
+ }
1266
+ }
1267
+ }
1268
+ },
1269
+ {
1270
+ "type": "function",
1271
+ "function": {
1272
+ "name": "vercel_get_project",
1273
+ "description": "Get detailed metadata, framework settings, and build configuration of a Vercel project by name or ID",
1274
+ "parameters": {
1275
+ "type": "object",
1276
+ "properties": {
1277
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1278
+ "team_id": {"type": "string", "description": "Optional team ID"}
1279
+ },
1280
+ "required": ["project_id_or_name"]
1281
+ }
1282
+ }
1283
+ },
1284
+ {
1285
+ "type": "function",
1286
+ "function": {
1287
+ "name": "vercel_create_project",
1288
+ "description": "Create a new project in Vercel",
1289
+ "parameters": {
1290
+ "type": "object",
1291
+ "properties": {
1292
+ "name": {"type": "string", "description": "The name of the project"},
1293
+ "framework": {"type": "string", "description": "Framework preset e.g. 'nextjs', 'vite', 'remix', 'nuxtjs', 'sveltekit', 'astro'"},
1294
+ "build_command": {"type": "string", "description": "Custom build command"},
1295
+ "output_directory": {"type": "string", "description": "Output directory for build artifacts"},
1296
+ "root_directory": {"type": "string", "description": "Root directory path"},
1297
+ "team_id": {"type": "string", "description": "Optional team ID"}
1298
+ },
1299
+ "required": ["name"]
1300
+ }
1301
+ }
1302
+ },
1303
+ {
1304
+ "type": "function",
1305
+ "function": {
1306
+ "name": "vercel_update_project",
1307
+ "description": "Update settings, framework, or build commands of an existing Vercel project",
1308
+ "parameters": {
1309
+ "type": "object",
1310
+ "properties": {
1311
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1312
+ "framework": {"type": "string", "description": "Framework preset"},
1313
+ "node_version": {"type": "string", "description": "Node.js version e.g. '20.x'"},
1314
+ "build_command": {"type": "string", "description": "Custom build command"},
1315
+ "output_directory": {"type": "string", "description": "Output directory"},
1316
+ "root_directory": {"type": "string", "description": "Root directory path"},
1317
+ "team_id": {"type": "string", "description": "Optional team ID"}
1318
+ },
1319
+ "required": ["project_id_or_name"]
1320
+ }
1321
+ }
1322
+ },
1323
+ {
1324
+ "type": "function",
1325
+ "function": {
1326
+ "name": "vercel_delete_project",
1327
+ "description": "Delete a Vercel project by project_id_or_name",
1328
+ "parameters": {
1329
+ "type": "object",
1330
+ "properties": {
1331
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project to delete"},
1332
+ "team_id": {"type": "string", "description": "Optional team ID"}
1333
+ },
1334
+ "required": ["project_id_or_name"]
1335
+ }
1336
+ }
1337
+ },
1338
+ {
1339
+ "type": "function",
1340
+ "function": {
1341
+ "name": "vercel_pause_project",
1342
+ "description": "Pause a Vercel project to stop incoming traffic and serverless execution",
1343
+ "parameters": {
1344
+ "type": "object",
1345
+ "properties": {
1346
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1347
+ "team_id": {"type": "string", "description": "Optional team ID"}
1348
+ },
1349
+ "required": ["project_id_or_name"]
1350
+ }
1351
+ }
1352
+ },
1353
+ {
1354
+ "type": "function",
1355
+ "function": {
1356
+ "name": "vercel_unpause_project",
1357
+ "description": "Unpause a paused Vercel project to resume normal traffic",
1358
+ "parameters": {
1359
+ "type": "object",
1360
+ "properties": {
1361
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1362
+ "team_id": {"type": "string", "description": "Optional team ID"}
1363
+ },
1364
+ "required": ["project_id_or_name"]
1365
+ }
1366
+ }
1367
+ },
1368
+ {
1369
+ "type": "function",
1370
+ "function": {
1371
+ "name": "vercel_list_deployments",
1372
+ "description": "List recent deployments for an account or specific project with status",
1373
+ "parameters": {
1374
+ "type": "object",
1375
+ "properties": {
1376
+ "project_id_or_name": {"type": "string", "description": "Optional project name or ID to filter deployments"},
1377
+ "limit": {"type": "integer", "description": "Number of deployments to return, default 10"},
1378
+ "state": {"type": "string", "enum": ["BUILDING", "ERROR", "INITIALIZING", "QUEUED", "READY", "CANCELED"], "description": "Filter by deployment state"},
1379
+ "target": {"type": "string", "enum": ["production", "staging"], "description": "Filter by environment target"},
1380
+ "team_id": {"type": "string", "description": "Optional team ID"}
1381
+ }
1382
+ }
1383
+ }
1384
+ },
1385
+ {
1386
+ "type": "function",
1387
+ "function": {
1388
+ "name": "vercel_get_deployment",
1389
+ "description": "Get detailed status, URLs, commit metadata, and execution details of a specific deployment",
1390
+ "parameters": {
1391
+ "type": "object",
1392
+ "properties": {
1393
+ "deployment_id_or_url": {"type": "string", "description": "The ID or URL host of the deployment"},
1394
+ "team_id": {"type": "string", "description": "Optional team ID"}
1395
+ },
1396
+ "required": ["deployment_id_or_url"]
1397
+ }
1398
+ }
1399
+ },
1400
+ {
1401
+ "type": "function",
1402
+ "function": {
1403
+ "name": "vercel_get_deployment_events",
1404
+ "description": "Get build logs, runtime error logs, and execution lifecycle events of a deployment",
1405
+ "parameters": {
1406
+ "type": "object",
1407
+ "properties": {
1408
+ "deployment_id": {"type": "string", "description": "The ID of the deployment"},
1409
+ "limit": {"type": "integer", "description": "Maximum number of events/logs, default 50"},
1410
+ "team_id": {"type": "string", "description": "Optional team ID"}
1411
+ },
1412
+ "required": ["deployment_id"]
1413
+ }
1414
+ }
1415
+ },
1416
+ {
1417
+ "type": "function",
1418
+ "function": {
1419
+ "name": "vercel_create_deployment",
1420
+ "description": "Create a new deployment on Vercel for a project",
1421
+ "parameters": {
1422
+ "type": "object",
1423
+ "properties": {
1424
+ "name": {"type": "string", "description": "Project name for deployment"},
1425
+ "git_source_json": {"type": "string", "description": "JSON string containing gitSource info e.g. '{\"type\":\"github\",\"ref\":\"main\",\"repoId\":\"123\"}'"},
1426
+ "target": {"type": "string", "enum": ["production", "staging"], "description": "Deployment target. Default: production"},
1427
+ "team_id": {"type": "string", "description": "Optional team ID"}
1428
+ },
1429
+ "required": ["name"]
1430
+ }
1431
+ }
1432
+ },
1433
+ {
1434
+ "type": "function",
1435
+ "function": {
1436
+ "name": "vercel_cancel_deployment",
1437
+ "description": "Cancel an in-progress or queued Vercel deployment",
1438
+ "parameters": {
1439
+ "type": "object",
1440
+ "properties": {
1441
+ "deployment_id": {"type": "string", "description": "The ID of the deployment to cancel"},
1442
+ "team_id": {"type": "string", "description": "Optional team ID"}
1443
+ },
1444
+ "required": ["deployment_id"]
1445
+ }
1446
+ }
1447
+ },
1448
+ {
1449
+ "type": "function",
1450
+ "function": {
1451
+ "name": "vercel_delete_deployment",
1452
+ "description": "Delete a deployment from Vercel by deployment_id",
1453
+ "parameters": {
1454
+ "type": "object",
1455
+ "properties": {
1456
+ "deployment_id": {"type": "string", "description": "The ID of the deployment to delete"},
1457
+ "team_id": {"type": "string", "description": "Optional team ID"}
1458
+ },
1459
+ "required": ["deployment_id"]
1460
+ }
1461
+ }
1462
+ },
1463
+ {
1464
+ "type": "function",
1465
+ "function": {
1466
+ "name": "vercel_list_env_variables",
1467
+ "description": "List all Environment Variables configured in a Vercel project",
1468
+ "parameters": {
1469
+ "type": "object",
1470
+ "properties": {
1471
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1472
+ "team_id": {"type": "string", "description": "Optional team ID"}
1473
+ },
1474
+ "required": ["project_id_or_name"]
1475
+ }
1476
+ }
1477
+ },
1478
+ {
1479
+ "type": "function",
1480
+ "function": {
1481
+ "name": "vercel_create_env_variable",
1482
+ "description": "Create a new Environment Variable in a Vercel project",
1483
+ "parameters": {
1484
+ "type": "object",
1485
+ "properties": {
1486
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1487
+ "key": {"type": "string", "description": "The variable name/key e.g. 'DATABASE_URL'"},
1488
+ "value": {"type": "string", "description": "The variable value"},
1489
+ "target": {"type": "string", "description": "Comma-separated target environments: 'production', 'preview', 'development'. Default: 'production,preview,development'"},
1490
+ "type": {"type": "string", "enum": ["plain", "secret", "encrypted", "sensitive"], "description": "Variable type. Default: 'encrypted'"},
1491
+ "team_id": {"type": "string", "description": "Optional team ID"}
1492
+ },
1493
+ "required": ["project_id_or_name", "key", "value"]
1494
+ }
1495
+ }
1496
+ },
1497
+ {
1498
+ "type": "function",
1499
+ "function": {
1500
+ "name": "vercel_update_env_variable",
1501
+ "description": "Update value or target environments of an existing Vercel Environment Variable",
1502
+ "parameters": {
1503
+ "type": "object",
1504
+ "properties": {
1505
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1506
+ "env_id": {"type": "string", "description": "The ID of the environment variable"},
1507
+ "value": {"type": "string", "description": "The new variable value"},
1508
+ "target": {"type": "string", "description": "Comma-separated environments: 'production', 'preview', 'development'"},
1509
+ "team_id": {"type": "string", "description": "Optional team ID"}
1510
+ },
1511
+ "required": ["project_id_or_name", "env_id", "value"]
1512
+ }
1513
+ }
1514
+ },
1515
+ {
1516
+ "type": "function",
1517
+ "function": {
1518
+ "name": "vercel_delete_env_variable",
1519
+ "description": "Delete an Environment Variable from a Vercel project",
1520
+ "parameters": {
1521
+ "type": "object",
1522
+ "properties": {
1523
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1524
+ "env_id": {"type": "string", "description": "The ID of the environment variable to delete"},
1525
+ "team_id": {"type": "string", "description": "Optional team ID"}
1526
+ },
1527
+ "required": ["project_id_or_name", "env_id"]
1528
+ }
1529
+ }
1530
+ },
1531
+ {
1532
+ "type": "function",
1533
+ "function": {
1534
+ "name": "vercel_list_domains",
1535
+ "description": "List custom domains associated with a Vercel project",
1536
+ "parameters": {
1537
+ "type": "object",
1538
+ "properties": {
1539
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1540
+ "team_id": {"type": "string", "description": "Optional team ID"}
1541
+ },
1542
+ "required": ["project_id_or_name"]
1543
+ }
1544
+ }
1545
+ },
1546
+ {
1547
+ "type": "function",
1548
+ "function": {
1549
+ "name": "vercel_add_domain",
1550
+ "description": "Add a new custom domain to a Vercel project",
1551
+ "parameters": {
1552
+ "type": "object",
1553
+ "properties": {
1554
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1555
+ "domain": {"type": "string", "description": "The domain name e.g. 'app.example.com'"},
1556
+ "redirect": {"type": "string", "description": "Optional target domain to redirect to"},
1557
+ "team_id": {"type": "string", "description": "Optional team ID"}
1558
+ },
1559
+ "required": ["project_id_or_name", "domain"]
1560
+ }
1561
+ }
1562
+ },
1563
+ {
1564
+ "type": "function",
1565
+ "function": {
1566
+ "name": "vercel_verify_domain",
1567
+ "description": "Trigger DNS verification for a domain configured on a project",
1568
+ "parameters": {
1569
+ "type": "object",
1570
+ "properties": {
1571
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1572
+ "domain": {"type": "string", "description": "The domain name to verify"},
1573
+ "team_id": {"type": "string", "description": "Optional team ID"}
1574
+ },
1575
+ "required": ["project_id_or_name", "domain"]
1576
+ }
1577
+ }
1578
+ },
1579
+ {
1580
+ "type": "function",
1581
+ "function": {
1582
+ "name": "vercel_remove_domain",
1583
+ "description": "Remove a custom domain from a Vercel project",
1584
+ "parameters": {
1585
+ "type": "object",
1586
+ "properties": {
1587
+ "project_id_or_name": {"type": "string", "description": "The ID or name of the project"},
1588
+ "domain": {"type": "string", "description": "The domain name to remove"},
1589
+ "team_id": {"type": "string", "description": "Optional team ID"}
1590
+ },
1591
+ "required": ["project_id_or_name", "domain"]
1592
+ }
1593
+ }
1594
+ },
1595
+ {
1596
+ "type": "function",
1597
+ "function": {
1598
+ "name": "vercel_list_aliases",
1599
+ "description": "List all domain aliases in the user's Vercel account or project",
1600
+ "parameters": {
1601
+ "type": "object",
1602
+ "properties": {
1603
+ "project_id": {"type": "string", "description": "Optional project ID filter"},
1604
+ "limit": {"type": "integer", "description": "Max aliases to return, default 20"},
1605
+ "team_id": {"type": "string", "description": "Optional team ID"}
1606
+ }
1607
+ }
1608
+ }
1609
+ },
1610
+ {
1611
+ "type": "function",
1612
+ "function": {
1613
+ "name": "vercel_assign_alias",
1614
+ "description": "Assign a custom alias domain to a specific deployment",
1615
+ "parameters": {
1616
+ "type": "object",
1617
+ "properties": {
1618
+ "deployment_id": {"type": "string", "description": "The ID of the deployment"},
1619
+ "alias": {"type": "string", "description": "The alias domain name"},
1620
+ "team_id": {"type": "string", "description": "Optional team ID"}
1621
+ },
1622
+ "required": ["deployment_id", "alias"]
1623
+ }
1624
+ }
1625
+ },
1626
+ {
1627
+ "type": "function",
1628
+ "function": {
1629
+ "name": "vercel_list_teams",
1630
+ "description": "List all Vercel teams the authenticated user belongs to",
1631
+ "parameters": {
1632
+ "type": "object",
1633
+ "properties": {
1634
+ "limit": {"type": "integer", "description": "Max teams to return, default 20"}
1635
+ }
1636
+ }
1637
+ }
1638
+ },
1639
+ {
1640
+ "type": "function",
1641
+ "function": {
1642
+ "name": "vercel_get_team",
1643
+ "description": "Get details of a specific Vercel team by team_id",
1644
+ "parameters": {
1645
+ "type": "object",
1646
+ "properties": {
1647
+ "team_id": {"type": "string", "description": "The ID of the team"}
1648
+ },
1649
+ "required": ["team_id"]
1650
+ }
1651
+ }
1652
+ },
1653
+ {
1654
+ "type": "function",
1655
+ "function": {
1656
+ "name": "vercel_get_user",
1657
+ "description": "Get current Vercel authenticated user profile, username, email, and billing plan tier",
1658
+ "parameters": {
1659
+ "type": "object",
1660
+ "properties": {}
1661
+ }
1662
+ }
1663
+ },
1664
+ {
1665
+ "type": "function",
1666
+ "function": {
1667
+ "name": "vercel_api_request",
1668
+ "description": "Execute any generic Vercel REST API endpoint",
1669
+ "parameters": {
1670
+ "type": "object",
1671
+ "properties": {
1672
+ "endpoint": {"type": "string", "description": "Relative API path e.g. '/v9/projects' or '/v6/deployments'"},
1673
+ "method": {"type": "string", "description": "HTTP method: GET, POST, PATCH, PUT, DELETE. Default: GET"},
1674
+ "body_json": {"type": "string", "description": "JSON string body for POST/PATCH/PUT requests"},
1675
+ "team_id": {"type": "string", "description": "Optional team ID query param"}
1676
+ },
1677
+ "required": ["endpoint"]
1678
+ }
1679
+ }
1680
+ }
1681
+ ]