@rad-security/mcp-server 0.0.47-2.gb9dd8b4 → 0.0.47

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 CHANGED
@@ -4,6 +4,7 @@ import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js"
4
4
  import cors from "cors";
5
5
  import { SSEServerTransport } from "@modelcontextprotocol/sdk/server/sse.js";
6
6
  import { StreamableHTTPServerTransport } from "@modelcontextprotocol/sdk/server/streamableHttp.js";
7
+ import { zodToJsonSchema } from "zod-to-json-schema";
7
8
  import { z } from "zod";
8
9
  import { CallToolRequestSchema, ListToolsRequestSchema, } from "@modelcontextprotocol/sdk/types.js";
9
10
  import express from "express";
@@ -25,19 +26,6 @@ import * as dashboards from "./operations/dashboards.js";
25
26
  import * as integrations from "./operations/integrations.js";
26
27
  import { VERSION } from "./version.js";
27
28
  import { logger } from "./logger.js";
28
- // Tool input schemas: what clients may send, so fields with defaults stay optional.
29
- // Objects stay closed (additionalProperties: false), as they were with zod-to-json-schema.
30
- function toolInputSchema(schema) {
31
- return z.toJSONSchema(schema, {
32
- target: "draft-7",
33
- io: "input",
34
- override: (ctx) => {
35
- if (ctx.jsonSchema.type === "object" && ctx.jsonSchema.additionalProperties === undefined) {
36
- ctx.jsonSchema.additionalProperties = false;
37
- }
38
- },
39
- });
40
- }
41
29
  // Parse toolkit filters from environment variables
42
30
  function parseToolkitFilters() {
43
31
  const includeEnv = process.env.INCLUDE_TOOLKITS;
@@ -119,13 +107,13 @@ async function newServer(client, toolkitFilters) {
119
107
  name: "list_containers",
120
108
  annotations: { title: "List Containers", readOnlyHint: true },
121
109
  description: "List containers secured by RAD Security with optional filtering by image name, image digest, namespace, cluster_id, or free text search",
122
- inputSchema: toolInputSchema(containers.ListContainersSchema),
110
+ inputSchema: zodToJsonSchema(containers.ListContainersSchema),
123
111
  },
124
112
  {
125
113
  name: "get_container_details",
126
114
  annotations: { title: "Get Container Details", readOnlyHint: true },
127
115
  description: "Get detailed information about a container secured by RAD Security",
128
- inputSchema: toolInputSchema(containers.GetContainerDetailsSchema),
116
+ inputSchema: zodToJsonSchema(containers.GetContainerDetailsSchema),
129
117
  },
130
118
  ]
131
119
  : []),
@@ -136,13 +124,13 @@ async function newServer(client, toolkitFilters) {
136
124
  name: "list_clusters",
137
125
  annotations: { title: "List Clusters", readOnlyHint: true },
138
126
  description: "List Kubernetes clusters managed by RAD Security",
139
- inputSchema: toolInputSchema(clusters.ListClustersSchema),
127
+ inputSchema: zodToJsonSchema(clusters.ListClustersSchema),
140
128
  },
141
129
  {
142
130
  name: "get_cluster_details",
143
131
  annotations: { title: "Get Cluster Details", readOnlyHint: true },
144
132
  description: "Get detailed information about a specific Kubernetes cluster managed by RAD Security",
145
- inputSchema: toolInputSchema(clusters.GetClusterDetailsSchema),
133
+ inputSchema: zodToJsonSchema(clusters.GetClusterDetailsSchema),
146
134
  },
147
135
  ]
148
136
  : []),
@@ -153,7 +141,7 @@ async function newServer(client, toolkitFilters) {
153
141
  name: "who_shelled_into_pod",
154
142
  annotations: { title: "Who Shelled Into Pod", readOnlyHint: true },
155
143
  description: "Get k8s audit logs with information about users who shelled into a pod",
156
- inputSchema: toolInputSchema(audit.WhoShelledIntoPodSchema),
144
+ inputSchema: zodToJsonSchema(audit.WhoShelledIntoPodSchema),
157
145
  },
158
146
  ]
159
147
  : []),
@@ -164,43 +152,43 @@ async function newServer(client, toolkitFilters) {
164
152
  name: "list_images",
165
153
  annotations: { title: "List Images", readOnlyHint: true },
166
154
  description: "List container images with optional filtering by page, page size, sort, and search query",
167
- inputSchema: toolInputSchema(images.ListImagesSchema),
155
+ inputSchema: zodToJsonSchema(images.ListImagesSchema),
168
156
  },
169
157
  {
170
158
  name: "list_image_vulnerabilities",
171
159
  annotations: { title: "List Image Vulnerabilities", readOnlyHint: true },
172
160
  description: "List vulnerabilities in a container image with optional filtering by severity",
173
- inputSchema: toolInputSchema(images.ListImageVulnerabilitiesSchema),
161
+ inputSchema: zodToJsonSchema(images.ListImageVulnerabilitiesSchema),
174
162
  },
175
163
  {
176
164
  name: "get_top_vulnerable_images",
177
165
  annotations: { title: "Get Top Vulnerable Images", readOnlyHint: true },
178
166
  description: "Get the most vulnerable images from your account",
179
- inputSchema: toolInputSchema(z.object({})),
167
+ inputSchema: zodToJsonSchema(z.object({})),
180
168
  },
181
169
  {
182
170
  name: "get_image_sbom",
183
171
  annotations: { title: "Get Image SBOM", readOnlyHint: true },
184
172
  description: "Get the SBOM of a container image",
185
- inputSchema: toolInputSchema(images.GetImageSBOMSchema),
173
+ inputSchema: zodToJsonSchema(images.GetImageSBOMSchema),
186
174
  },
187
175
  {
188
176
  name: "ignore_cve",
189
177
  annotations: { title: "Ignore CVE", readOnlyHint: false, destructiveHint: false },
190
178
  description: "Ignore a CVE for this account so it no longer appears in vulnerability reporting. Use for confirmed false positives, accepted risks, or won't-fix decisions. Do NOT use for remediated CVEs — those drop off automatically on the next scan.",
191
- inputSchema: toolInputSchema(cveDispositions.ignoreCveSchema),
179
+ inputSchema: zodToJsonSchema(cveDispositions.ignoreCveSchema),
192
180
  },
193
181
  {
194
182
  name: "unignore_cve",
195
183
  annotations: { title: "Unignore CVE", readOnlyHint: false, destructiveHint: true },
196
184
  description: "Remove an account-wide CVE disposition, restoring the CVE to vulnerability reporting.",
197
- inputSchema: toolInputSchema(cveDispositions.unignoreCveSchema),
185
+ inputSchema: zodToJsonSchema(cveDispositions.unignoreCveSchema),
198
186
  },
199
187
  {
200
188
  name: "list_cve_dispositions",
201
189
  annotations: { title: "List CVE Dispositions", readOnlyHint: true },
202
190
  description: "List active CVE dispositions (ignored / false positive) for this account, with reason and author.",
203
- inputSchema: toolInputSchema(cveDispositions.listCveDispositionsSchema),
191
+ inputSchema: zodToJsonSchema(cveDispositions.listCveDispositionsSchema),
204
192
  },
205
193
  ]
206
194
  : []),
@@ -211,13 +199,13 @@ async function newServer(client, toolkitFilters) {
211
199
  name: "get_k8s_resource_details",
212
200
  annotations: { title: "Get Kubernetes Resource Details", readOnlyHint: true },
213
201
  description: "Get the latest manifest of a Kubernetes resource",
214
- inputSchema: toolInputSchema(kubeobject.GetKubernetesResourceDetailsSchema),
202
+ inputSchema: zodToJsonSchema(kubeobject.GetKubernetesResourceDetailsSchema),
215
203
  },
216
204
  {
217
205
  name: "list_k8s_resources",
218
206
  annotations: { title: "List Kubernetes Resources", readOnlyHint: true },
219
207
  description: "List Kubernetes resources with optional filtering by namespace, resource types, and cluster",
220
- inputSchema: toolInputSchema(kubeobject.ListKubernetesResourcesSchema),
208
+ inputSchema: zodToJsonSchema(kubeobject.ListKubernetesResourcesSchema),
221
209
  },
222
210
  ]
223
211
  : []),
@@ -228,19 +216,19 @@ async function newServer(client, toolkitFilters) {
228
216
  name: "get_containers_process_trees",
229
217
  annotations: { title: "Get Container Process Trees", readOnlyHint: true },
230
218
  description: "Get process trees for multiple containers",
231
- inputSchema: toolInputSchema(runtime.GetContainersProcessTreesSchema),
219
+ inputSchema: zodToJsonSchema(runtime.GetContainersProcessTreesSchema),
232
220
  },
233
221
  {
234
222
  name: "get_containers_baselines",
235
223
  annotations: { title: "Get Container Baselines", readOnlyHint: true },
236
224
  description: "Get runtime baselines for multiple containers",
237
- inputSchema: toolInputSchema(runtime.GetContainersBaselinesSchema),
225
+ inputSchema: zodToJsonSchema(runtime.GetContainersBaselinesSchema),
238
226
  },
239
227
  {
240
228
  name: "get_container_llm_analysis",
241
229
  annotations: { title: "Get Container LLM Analysis", readOnlyHint: true },
242
230
  description: "Get LLM analysis of a container's process tree",
243
- inputSchema: toolInputSchema(runtime.GetContainerLLMAnalysisSchema),
231
+ inputSchema: zodToJsonSchema(runtime.GetContainerLLMAnalysisSchema),
244
232
  },
245
233
  ]
246
234
  : []),
@@ -251,13 +239,13 @@ async function newServer(client, toolkitFilters) {
251
239
  name: "list_security_findings",
252
240
  annotations: { title: "List Security Findings", readOnlyHint: true },
253
241
  description: "List security findings with optional filtering by types, severities, sources, and status",
254
- inputSchema: toolInputSchema(findings.listFindingsSchema),
242
+ inputSchema: zodToJsonSchema(findings.listFindingsSchema),
255
243
  },
256
244
  {
257
245
  name: "update_security_finding_status",
258
246
  annotations: { title: "Update Security Finding Status", readOnlyHint: false, destructiveHint: false },
259
247
  description: "Update the status of a security finding",
260
- inputSchema: toolInputSchema(findings.updateFindingStatusSchema),
248
+ inputSchema: zodToJsonSchema(findings.updateFindingStatusSchema),
261
249
  },
262
250
  ]
263
251
  : []),
@@ -268,19 +256,19 @@ async function newServer(client, toolkitFilters) {
268
256
  name: "mark_inbox_item_as_false_positive",
269
257
  annotations: { title: "Mark Inbox Item as False Positive", readOnlyHint: false, destructiveHint: false },
270
258
  description: "Mark an inbox item as a false positive with a reason",
271
- inputSchema: toolInputSchema(inbox.MarkInboxItemAsFalsePositiveSchema),
259
+ inputSchema: zodToJsonSchema(inbox.MarkInboxItemAsFalsePositiveSchema),
272
260
  },
273
261
  {
274
262
  name: "list_inbox_items",
275
263
  annotations: { title: "List Inbox Items", readOnlyHint: true },
276
264
  description: "List inbox items with optional filtering by any field. Multiple filters can be combined eg. 'search:cve-2024-12345 and severity:high'",
277
- inputSchema: toolInputSchema(inbox.ListInboxItemsSchema),
265
+ inputSchema: zodToJsonSchema(inbox.ListInboxItemsSchema),
278
266
  },
279
267
  {
280
268
  name: "get_inbox_item_details",
281
269
  annotations: { title: "Get Inbox Item Details", readOnlyHint: true },
282
270
  description: "Get detailed information about a specific inbox item",
283
- inputSchema: toolInputSchema(inbox.GetInboxItemDetailsSchema),
271
+ inputSchema: zodToJsonSchema(inbox.GetInboxItemDetailsSchema),
284
272
  },
285
273
  ]
286
274
  : []),
@@ -291,37 +279,37 @@ async function newServer(client, toolkitFilters) {
291
279
  name: "list_workflows",
292
280
  annotations: { title: "List Workflows", readOnlyHint: true },
293
281
  description: "List all workflows",
294
- inputSchema: toolInputSchema(workflows.ListWorkflowsSchema),
282
+ inputSchema: zodToJsonSchema(workflows.ListWorkflowsSchema),
295
283
  },
296
284
  {
297
285
  name: "get_workflow",
298
286
  annotations: { title: "Get Workflow", readOnlyHint: true },
299
287
  description: "Get detailed information about a specific workflow by ID. It contains the workflow definition, default arguments, and schema how to run the workflow",
300
- inputSchema: toolInputSchema(workflows.GetWorkflowSchema),
288
+ inputSchema: zodToJsonSchema(workflows.GetWorkflowSchema),
301
289
  },
302
290
  {
303
291
  name: "list_workflow_runs",
304
292
  annotations: { title: "List Workflow Runs", readOnlyHint: true },
305
293
  description: "List workflow runs with optional filtering by workflow ID",
306
- inputSchema: toolInputSchema(workflows.ListWorkflowRunsSchema),
294
+ inputSchema: zodToJsonSchema(workflows.ListWorkflowRunsSchema),
307
295
  },
308
296
  {
309
297
  name: "get_workflow_run",
310
298
  annotations: { title: "Get Workflow Run", readOnlyHint: true },
311
299
  description: "Get detailed information about a specific workflow run",
312
- inputSchema: toolInputSchema(workflows.GetWorkflowRunSchema),
300
+ inputSchema: zodToJsonSchema(workflows.GetWorkflowRunSchema),
313
301
  },
314
302
  {
315
303
  name: "run_workflow",
316
304
  annotations: { title: "Run Workflow", readOnlyHint: false, destructiveHint: true },
317
305
  description: "Run a workflow with optional argument overrides",
318
- inputSchema: toolInputSchema(workflows.RunWorkflowSchema),
306
+ inputSchema: zodToJsonSchema(workflows.RunWorkflowSchema),
319
307
  },
320
308
  {
321
309
  name: "list_workflow_schedules",
322
310
  annotations: { title: "List Workflow Schedules", readOnlyHint: true },
323
311
  description: "List workflow schedules with optional filtering by workflow ID",
324
- inputSchema: toolInputSchema(workflows.ListWorkflowSchedulesSchema),
312
+ inputSchema: zodToJsonSchema(workflows.ListWorkflowSchedulesSchema),
325
313
  },
326
314
  ]
327
315
  : []),
@@ -337,13 +325,13 @@ async function newServer(client, toolkitFilters) {
337
325
  name: "create_custom_workflow",
338
326
  annotations: { title: "Create Automation", readOnlyHint: false, destructiveHint: false },
339
327
  description: "Create a new automation (a Windmill workflow) from a YAML definition. Pass the YAML document itself as a string, not a file path. It is validated server-side before deployment; on failure nothing is deployed and the errors are returned. Returns the new automation WITHOUT echoing the definition back — use `id` from the result when referring to it, and `get_workflow` if you need to read the definition.",
340
- inputSchema: toolInputSchema(customWorkflows.CreateCustomWorkflowSchema),
328
+ inputSchema: zodToJsonSchema(customWorkflows.CreateCustomWorkflowSchema),
341
329
  },
342
330
  {
343
331
  name: "update_custom_workflow",
344
332
  annotations: { title: "Update Automation", readOnlyHint: false, destructiveHint: false },
345
333
  description: "Update an existing automation with new YAML. Only automations created via create_custom_workflow can be updated. Returns the updated automation without echoing the definition back.",
346
- inputSchema: toolInputSchema(customWorkflows.UpdateCustomWorkflowSchema),
334
+ inputSchema: zodToJsonSchema(customWorkflows.UpdateCustomWorkflowSchema),
347
335
  },
348
336
  {
349
337
  name: "add_workflow_schedule",
@@ -351,21 +339,21 @@ async function newServer(client, toolkitFilters) {
351
339
  description: "Add a cron-based schedule to an automation so it runs automatically at the specified times. " +
352
340
  "This ADDS a schedule; to change when an automation runs, use update_workflow_schedule instead, " +
353
341
  "or the automation will fire at both the old time and the new one.",
354
- inputSchema: toolInputSchema(customWorkflows.AddWorkflowScheduleSchema),
342
+ inputSchema: zodToJsonSchema(customWorkflows.AddWorkflowScheduleSchema),
355
343
  },
356
344
  {
357
345
  name: "update_workflow_schedule",
358
346
  annotations: { title: "Update Automation Schedule", readOnlyHint: false, destructiveHint: false },
359
347
  description: "Change an existing schedule's cron expression or timezone. Use this to move when an " +
360
348
  "automation runs. Get the schedule_id from list_workflow_schedules.",
361
- inputSchema: toolInputSchema(customWorkflows.UpdateWorkflowScheduleSchema),
349
+ inputSchema: zodToJsonSchema(customWorkflows.UpdateWorkflowScheduleSchema),
362
350
  },
363
351
  {
364
352
  name: "delete_workflow_schedule",
365
353
  annotations: { title: "Delete Automation Schedule", readOnlyHint: false, destructiveHint: true },
366
354
  description: "Remove a schedule from an automation so it stops running on that cadence. The automation " +
367
355
  "itself is not deleted. Get the schedule_id from list_workflow_schedules.",
368
- inputSchema: toolInputSchema(customWorkflows.DeleteWorkflowScheduleSchema),
356
+ inputSchema: zodToJsonSchema(customWorkflows.DeleteWorkflowScheduleSchema),
369
357
  },
370
358
  ]
371
359
  : []),
@@ -376,37 +364,37 @@ async function newServer(client, toolkitFilters) {
376
364
  name: "search_knowledge_base",
377
365
  annotations: { title: "Search Knowledge Base", readOnlyHint: true },
378
366
  description: "Search your organization's knowledge base to find relevant uploaded documents, procedures, reports, and other content using natural language queries",
379
- inputSchema: toolInputSchema(knowledgeBase.SearchKnowledgeBaseSchema),
367
+ inputSchema: zodToJsonSchema(knowledgeBase.SearchKnowledgeBaseSchema),
380
368
  },
381
369
  {
382
370
  name: "list_knowledge_base_collections",
383
371
  annotations: { title: "List Knowledge Base Collections", readOnlyHint: true },
384
372
  description: "List all collections in your organization's knowledge base. Collections are used to organize and categorize documents",
385
- inputSchema: toolInputSchema(knowledgeBase.ListCollectionsSchema),
373
+ inputSchema: zodToJsonSchema(knowledgeBase.ListCollectionsSchema),
386
374
  },
387
375
  {
388
376
  name: "list_knowledge_base_documents",
389
377
  annotations: { title: "List Knowledge Base Documents", readOnlyHint: true },
390
378
  description: "List documents in your organization's knowledge base with optional filtering by collections, file type, or status",
391
- inputSchema: toolInputSchema(knowledgeBase.ListDocumentsSchema),
379
+ inputSchema: zodToJsonSchema(knowledgeBase.ListDocumentsSchema),
392
380
  },
393
381
  {
394
382
  name: "query_knowledge_base_document",
395
383
  annotations: { title: "Query Knowledge Base Document", readOnlyHint: true },
396
384
  description: "Query a CSV document from the knowledge base using natural language. IMPORTANT: This tool ONLY works with CSV documents. Use list_knowledge_base_documents with filters='file_type:csv' to find CSV document IDs (search_knowledge_base results also contain document IDs). Results are returned as a markdown table",
397
- inputSchema: toolInputSchema(knowledgeBase.StructuredQueryDocumentSchema),
385
+ inputSchema: zodToJsonSchema(knowledgeBase.StructuredQueryDocumentSchema),
398
386
  },
399
387
  {
400
388
  name: "get_knowledge_base_document_content",
401
389
  annotations: { title: "Get Knowledge Base Document Content", readOnlyHint: true },
402
390
  description: "Get the FULL text content of a knowledge base document (extracted text for PDF/DOCX, the raw file for markdown/plaintext/CSV). Use this to read or analyze a whole document rather than the excerpts search_knowledge_base returns. Find document IDs via list_knowledge_base_documents or search_knowledge_base results",
403
- inputSchema: toolInputSchema(knowledgeBase.GetDocumentContentSchema),
391
+ inputSchema: zodToJsonSchema(knowledgeBase.GetDocumentContentSchema),
404
392
  },
405
393
  {
406
394
  name: "get_knowledge_base_document_download_url",
407
395
  annotations: { title: "Get Knowledge Base Document Download URL", readOnlyHint: true },
408
396
  description: "Get a time-limited download URL for the ORIGINAL document file (any format, including PDF/DOCX binaries). Use when you need the original file itself — e.g. to fetch it into a sandbox for structural parsing (tables, layout), or when get_knowledge_base_document_content reports no text available. For reading text, prefer get_knowledge_base_document_content",
409
- inputSchema: toolInputSchema(knowledgeBase.GetDocumentDownloadUrlSchema),
397
+ inputSchema: zodToJsonSchema(knowledgeBase.GetDocumentDownloadUrlSchema),
410
398
  },
411
399
  ]
412
400
  : []),
@@ -417,19 +405,19 @@ async function newServer(client, toolkitFilters) {
417
405
  name: "radql_list_data_types",
418
406
  annotations: { title: "RadQL: List Data Types", readOnlyHint: true },
419
407
  description: "List all available RadQL data types (discovery). ALWAYS call this FIRST before using other RadQL tools to discover what data is available to query. Returns data types like 'containers', 'kubernetes_resources', 'inbox_items', 'cloud_resources', 'cloud_benchmarks', 'cloud_benchmark_summaries', etc. with descriptions.",
420
- inputSchema: toolInputSchema(radql.RadQLListDataTypesSchema),
408
+ inputSchema: zodToJsonSchema(radql.RadQLListDataTypesSchema),
421
409
  },
422
410
  {
423
411
  name: "radql_get_type_metadata",
424
412
  annotations: { title: "RadQL: Get Type Metadata", readOnlyHint: true },
425
413
  description: "Get schema/metadata for a specific RadQL data type. Shows available fields, data types, which fields can be filtered/searched, and provides query examples. Call this AFTER radql_list_data_types to understand how to query a specific data type.",
426
- inputSchema: toolInputSchema(radql.RadQLGetTypeMetadataSchema),
414
+ inputSchema: zodToJsonSchema(radql.RadQLGetTypeMetadataSchema),
427
415
  },
428
416
  {
429
417
  name: "radql_list_filter_values",
430
418
  annotations: { title: "RadQL: List Filter Values", readOnlyHint: true },
431
419
  description: "List possible values for a filter field (e.g., namespace list, cluster list, severity values). Useful for building dynamic filters when you need to know available enum-like values. Call this when constructing filters that need specific values.",
432
- inputSchema: toolInputSchema(radql.RadQLListFilterValuesSchema),
420
+ inputSchema: zodToJsonSchema(radql.RadQLListFilterValuesSchema),
433
421
  },
434
422
  {
435
423
  name: "radql_query",
@@ -478,19 +466,19 @@ OK to leave unquoted:
478
466
  - Simple wildcards: name:nginx*
479
467
 
480
468
  For complete schema: call radql_get_type_metadata with target data_type`,
481
- inputSchema: toolInputSchema(radql.RadQLQuerySchema),
469
+ inputSchema: zodToJsonSchema(radql.RadQLQuerySchema),
482
470
  },
483
471
  {
484
472
  name: "radql_query_builder",
485
473
  annotations: { title: "RadQL: Query Builder", readOnlyHint: true },
486
474
  description: "Helper tool to build RadQL queries programmatically from structured conditions. Useful when you need to construct complex filter or stats queries from structured inputs.",
487
- inputSchema: toolInputSchema(radql.RadQLQueryBuilderSchema),
475
+ inputSchema: zodToJsonSchema(radql.RadQLQueryBuilderSchema),
488
476
  },
489
477
  {
490
478
  name: "radql_batch_query",
491
479
  annotations: { title: "RadQL: Batch Query", readOnlyHint: true },
492
480
  description: "Execute multiple RadQL queries in parallel for efficiency. Useful for fetching related data from different data types simultaneously (e.g., container details + vulnerabilities + network connections).",
493
- inputSchema: toolInputSchema(radql.RadQLBatchQuerySchema),
481
+ inputSchema: zodToJsonSchema(radql.RadQLBatchQuerySchema),
494
482
  },
495
483
  ]
496
484
  : []),
@@ -501,13 +489,13 @@ For complete schema: call radql_get_type_metadata with target data_type`,
501
489
  name: "list_widget_templates",
502
490
  annotations: { title: "List Widget Templates", readOnlyHint: true },
503
491
  description: "List widget templates with optional filtering by visualization type and category",
504
- inputSchema: toolInputSchema(dashboards.ListWidgetTemplatesSchema),
492
+ inputSchema: zodToJsonSchema(dashboards.ListWidgetTemplatesSchema),
505
493
  },
506
494
  {
507
495
  name: "get_widget_template",
508
496
  annotations: { title: "Get Widget Template", readOnlyHint: true },
509
497
  description: "Get detailed information about a specific widget template",
510
- inputSchema: toolInputSchema(dashboards.GetWidgetTemplateSchema),
498
+ inputSchema: zodToJsonSchema(dashboards.GetWidgetTemplateSchema),
511
499
  },
512
500
  {
513
501
  name: "list_dashboard_templates",
@@ -516,37 +504,37 @@ For complete schema: call radql_get_type_metadata with target data_type`,
516
504
  "given area (containers, images, runtime, compliance, findings). Returns id, " +
517
505
  "title, description and category WITHOUT the rows — call get_dashboard_template " +
518
506
  "with the id to read a definition and copy its widgets and queries.",
519
- inputSchema: toolInputSchema(dashboards.ListDashboardTemplatesSchema),
507
+ inputSchema: zodToJsonSchema(dashboards.ListDashboardTemplatesSchema),
520
508
  },
521
509
  {
522
510
  name: "get_dashboard_template",
523
511
  annotations: { title: "Get Dashboard Template", readOnlyHint: true },
524
512
  description: "Get detailed information about a specific dashboard template",
525
- inputSchema: toolInputSchema(dashboards.GetDashboardTemplateSchema),
513
+ inputSchema: zodToJsonSchema(dashboards.GetDashboardTemplateSchema),
526
514
  },
527
515
  {
528
516
  name: "list_dashboards",
529
517
  annotations: { title: "List Dashboards", readOnlyHint: true },
530
518
  description: "List dashboards for the account",
531
- inputSchema: toolInputSchema(dashboards.ListDashboardsSchema),
519
+ inputSchema: zodToJsonSchema(dashboards.ListDashboardsSchema),
532
520
  },
533
521
  {
534
522
  name: "get_dashboard",
535
523
  annotations: { title: "Get Dashboard", readOnlyHint: true },
536
524
  description: "Get detailed information about a specific dashboard",
537
- inputSchema: toolInputSchema(dashboards.GetDashboardSchema),
525
+ inputSchema: zodToJsonSchema(dashboards.GetDashboardSchema),
538
526
  },
539
527
  {
540
528
  name: "create_dashboard",
541
529
  annotations: { title: "Create Dashboard", readOnlyHint: false, destructiveHint: false },
542
530
  description: "Create a dashboard for the account. Build `rows` from the widget templates (list_widget_templates / get_widget_template) so the visualization and query shapes are valid.",
543
- inputSchema: toolInputSchema(dashboards.CreateDashboardSchema),
531
+ inputSchema: zodToJsonSchema(dashboards.CreateDashboardSchema),
544
532
  },
545
533
  {
546
534
  name: "update_dashboard",
547
535
  annotations: { title: "Update Dashboard", readOnlyHint: false, destructiveHint: false },
548
536
  description: "Update an existing dashboard. Omitted fields are left unchanged, so a small edit (a title, one row) does not require resending the whole dashboard.",
549
- inputSchema: toolInputSchema(dashboards.UpdateDashboardSchema),
537
+ inputSchema: zodToJsonSchema(dashboards.UpdateDashboardSchema),
550
538
  },
551
539
  ]
552
540
  : []),
@@ -557,7 +545,7 @@ For complete schema: call radql_get_type_metadata with target data_type`,
557
545
  name: "list_external_integrations",
558
546
  annotations: { title: "List External Integrations", readOnlyHint: true },
559
547
  description: "List external integrations configured for the tenant (e.g., Slack, AWS CloudTrail, Okta). Returns integration details including capabilities, configuration, mcp support and sync status.",
560
- inputSchema: toolInputSchema(integrations.ListExternalIntegrationsSchema),
548
+ inputSchema: zodToJsonSchema(integrations.ListExternalIntegrationsSchema),
561
549
  },
562
550
  ]
563
551
  : []),