You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -13,6 +14,7 @@ class ExecuteSqlTool implements ToolInterface
13
14
publicfunction__construct(
14
15
privatereadonlyResourceConnection$resource,
15
16
privatereadonlySqlSandbox$sandbox,
17
+
privatereadonlyLoggerInterface$logger,
16
18
) {
17
19
}
18
20
@@ -23,7 +25,7 @@ public function getName(): string
23
25
24
26
publicfunctiongetDescription(): string
25
27
{
26
-
return'Execute a read-only SELECT query on the Magento MySQL database. Returns up to 100 rows. Use describe_database to explore table/column names first. Blocked tables: admin_user, oauth_token, authorization_role. Blocked columns: password_hash.';
28
+
return'Execute a read-only SELECT query on the Magento MySQL database. Returns up to 100 rows. Use describe_database to explore table/column names first. Many tables and columns are blocked for security (admin_user, oauth_token, authorization_role, integration, vault_payment_token, etc). UNION, subqueries into blocked tables, and SQL comments are not allowed.';
27
29
}
28
30
29
31
publicfunctiongetParametersSchema(): array
@@ -48,9 +50,15 @@ public function execute(array $arguments): string
48
50
returnjson_encode(['error' => 'Query cannot be empty.']);
0 commit comments