Skip to content

Commit 50f2db8

Browse files
committed
fix(tools): correct wrong sysql examples
1 parent 67f2d22 commit 50f2db8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/infra/mcp/tools/tool_run_sysql.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ func (h *ToolRunSysql) RegisterInServer(s *server.MCPServer) {
5353
mcp.Description("A valid SysQL query string to execute directly."),
5454
mcp.Required(),
5555
Examples(
56-
`MATCH Vulnerability WHERE severity = 'Critical' LIMIT 10`,
57-
`MATCH KubeWorkload AS k AFFECTED_BY Vulnerability WHERE k.namespace = 'production'`,
58-
`MATCH CloudResource WHERE type = 'aws_s3_bucket' RETURN *`,
59-
`MATCH Vulnerability AS v WHERE v.name = 'CVE-2024-1234' RETURN v`,
56+
`MATCH Vulnerability WHERE Vulnerability.severity = 'Critical' RETURN Vulnerability LIMIT 10`,
57+
`MATCH KubeWorkload AFFECTED_BY Vulnerability WHERE KubeWorkload.namespaceName = 'production' RETURN KubeWorkload, Vulnerability`,
58+
`MATCH CloudResource WHERE CloudResource.type =~ '(?i).*S3 Bucket.*' RETURN DISTINCT CloudResource`,
59+
`MATCH Vulnerability WHERE Vulnerability.name =~ '(?i)CVE-2024-1234' RETURN Vulnerability`,
6060
),
6161
),
6262
mcp.WithOutputSchema[map[string]any](),

0 commit comments

Comments
 (0)