8000 feat(prebuilt/alloydb-postgres-advisor): add prebuilt config and get_index_recommendations tool by lavishgulati-google · Pull Request #4398 · googleapis/mcp-toolbox · GitHub
[go: up one dir, main page]

Skip to content 8000

feat(prebuilt/alloydb-postgres-advisor): add prebuilt config and get_index_recommendations tool - #4398

Open
lavishgulati-google wants to merge 2 commits into
googleapis:mainfrom
lavishgulati-google:feat/alloydb-get-index-recommendations
Open

lavishgulati-google wants to merge 2 commits into
googleapis:mainfrom
lavishgulati-google:feat/alloydb-get-index-recommendations

Conversation

@lavishgulati-google
@lavishgulati-google lavishgulati-google commented Nov 2, 2026 •
Copy link
Copy Markdown

Description

Introduces a dedicated alloydb-postgres-advisor prebuilt configuration for AlloyDB advisor tools and adds the read-only get_index_recommendations tool so AI assistants can directly fetch ADD index recommendations from the in-database AlloyDB Index Advisor.

Security Considerations

  • SQL injection: get_index_recommendations executes a static, parameterless SELECT statement with no user-supplied query inputs.
  • Credentials and secrets: Connection settings and credentials are sourced exclusively from environment variables and never hardcoded or echoed.

Fixes #4397 🦕

@gemini-code-assist gemini-code-assist Bot left a comment
Copy link
Copy Markdown
Contributor

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 a new tool get_index_recommendations for the AlloyDB Postgres prebuilt configuration. The tool queries the AlloyDB Index Advisor to retrieve recommendations for adding indexes, parsing details such as schema, relation, columns, index configuration, and estimated storage size. The changes include adding the tool definition in alloydb-postgres.yaml, updating the relevant documentation in ALLOYDBPG_README.md and alloydb-postgres.md, and adding integration tests in alloydb_pg_integration_test.go. There are no review comments, and I have no feedback to provide.

@lavishgulati-google
lavishgulati-google force-pushed the feat/alloydb-get-index-recommendations branch from a3f1d18 to 3e6c52e Compare November 4, 2026 06:34
@lavishgulati-google lavishgulati-google changed the title feat(alloydb-postgres): add get_index_recommendations prebuilt tool feat(prebuilt/alloydb-postgres-advisor): add prebuilt config and get_index_recommendations tool Nov 4, 2026

This branch has not been deployed

No deployments
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.

Add get_index_recommendations prebuilt tool to alloydb-postgres

2 participants

0