Skip to content

feat(tool/postgres): add postgres-execute-sql-many and postgres-sql-many#3083

Open
duwenxin99 wants to merge 6 commits intomainfrom
generic-execute-sql
Open

feat(tool/postgres): add postgres-execute-sql-many and postgres-sql-many#3083
duwenxin99 wants to merge 6 commits intomainfrom
generic-execute-sql

Conversation

@duwenxin99
Copy link
Copy Markdown
Contributor

@duwenxin99 duwenxin99 commented Apr 16, 2026

Add 2 new tools using the Cloud SQL Admin instances.executeSql API to enable SQL execution against instances provided at runtime:

  • postgres-execute-sql-many: Allows execution of arbitrary SQL statements on a specific database provided at runtime.
  • postgres-sql-many: Allows execution of prepared SQL statement on a specific instance provided at runtime.

Add prebuilt config for the postgres-execute-sql-many tool to cloud-sql-postgres-admin.

@duwenxin99 duwenxin99 requested a review from a team as a code owner April 16, 2026 21:17
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the postgres-execute-sql-many and postgres-sql-many tools and adds an ExecuteSql method to the Cloud SQL Admin source. Review feedback identifies several improvement opportunities, including the removal of the unused region parameter in both tools and the cleanup of the postgressqlmany configuration by removing the unsupported Parameters field and its associated runtime checks.

Comment thread internal/tools/postgres/postgressqlmany/postgressqlmany.go
Comment thread internal/tools/postgres/postgressqlmany/postgressqlmany.go
Comment thread internal/tools/postgres/postgressqlmany/postgressqlmany.go
Comment thread internal/tools/postgres/postgressqlmany/postgressqlmany.go Outdated
@duwenxin99
Copy link
Copy Markdown
Contributor Author

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces the postgres-execute-sql-many and postgres-sql-many tools, enabling SQL execution on Cloud SQL Postgres instances provided at runtime. The changes encompass tool implementations, documentation, prebuilt configuration updates, and integration tests. Review feedback suggests appending " Tool" to the documentation titles for both tools to maintain consistency.

Comment thread docs/en/integrations/postgres/tools/postgres-execute-sql-many.md
Comment thread docs/en/integrations/postgres/tools/postgres-sql-many.md
@averikitsch averikitsch self-assigned this Apr 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants