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
schema.Properties["service_id"].Description="The unique identifier of the service (10-character alphanumeric string). Use service_list to find service IDs."
32
+
schema.Properties["service_id"].Description="Unique identifier of the service (10-character alphanumeric string). Use service_list to find service IDs."
schema.Properties["query"].Description="PostgreSQL query to execute"
37
37
38
-
schema.Properties["parameters"].Description="Query parameters for parameterized queries. Values are substituted for $1, $2, etc. placeholders in the query."
38
+
schema.Properties["parameters"].Description="Query parameters. Values are substituted for $1, $2, etc. placeholders in the query."
schema.Properties["columns"].Description="Column metadata from the query result including name and PostgreSQL type. Omitted for commands that don't return rows (INSERT, UPDATE, DELETE, etc.)"
schema.Properties["result_sets"].Description="Array of result sets returned. For single-statement queries, this array will contain one element. For multi-statement queries, this array will contain one element per statement."
resultSetSchema.Properties["columns"].Description="Column metadata including name and PostgreSQL type. Omitted for commands that don't return rows (INSERT, UPDATE, DELETE, etc.)"
resultSetSchema.Properties["rows"].Description="Result rows as arrays of values. Omitted for commands that don't return rows (INSERT, UPDATE, DELETE, etc.)"
schema.Properties["rows_affected"].Description="Number of rows affected by the query. For SELECT, this is the number of rows returned. For INSERT/UPDATE/DELETE, this is the number of rows modified. Returns 0 for statements that don't return or modify rows (e.g. CREATE TABLE)."
resultSetSchema.Properties["rows_affected"].Description="Number of rows affected. For SELECT, this is the number of rows returned. For INSERT/UPDATE/DELETE, this is the number of rows modified. Returns 0 for statements that don't return or modify rows (e.g. CREATE TABLE)."
@@ -97,11 +111,11 @@ func (s *Server) registerDatabaseTools() {
97
111
Title: "Execute SQL Query",
98
112
Description: `Execute SQL queries against a service database.
99
113
100
-
This tool connects to a PostgreSQL database service in Tiger Cloud and executes the provided SQL query, returning the results with column names, row data, and execution metadata.
114
+
Connects to a PostgreSQL database service in Tiger Cloud and executes the provided SQL query, returning the results with column information, row data, and execution metadata.
101
115
102
-
Multi-statement queries are supported when no parameters are provided. When executing multiple statements separated by semicolons, all statements are executed in a single transaction, and only the results from the final statement are returned. Multi-statement queries with parameters are not supported and will return an error.
116
+
Multi-statement queries (semicolon-separated) are supported when no parameters are provided. All result sets are returned. By default, statements execute in an implicit transaction that automatically commits on success or rolls back on error. Explicit transactions (opened with BEGIN) must be explicitly committed with COMMIT, or they roll back when the connection closes.
103
117
104
-
WARNING: Use with caution - this tool can execute any SQL statement including INSERT, UPDATE, DELETE, and DDL commands. Always review queries before execution.`,
118
+
WARNING: Can execute any SQL statement including INSERT, UPDATE, DELETE, and DDL commands. Always review queries before execution.`,
schema.Properties["service_id"].Description="The unique identifier of the service (10-character alphanumeric string). Use service_list to find service IDs."
80
+
schema.Properties["service_id"].Description="Unique identifier of the service (10-character alphanumeric string). Use service_list to find service IDs."
0 commit comments