Skip to content

feat(tools/cloudsqlpg): Add remaining vector assist tools for Cloud SQL Postgres#3203

Open
pavankrishna13 wants to merge 3 commits into
googleapis:mainfrom
pavankrishna13:vector-assist-remaining-tools
Open

feat(tools/cloudsqlpg): Add remaining vector assist tools for Cloud SQL Postgres#3203
pavankrishna13 wants to merge 3 commits into
googleapis:mainfrom
pavankrishna13:vector-assist-remaining-tools

Conversation

@pavankrishna13
Copy link
Copy Markdown
Contributor

@pavankrishna13 pavankrishna13 commented May 9, 2026

Description

Adds 4 new mcp tools for Cloud SQL Postgres source related to the vector assist postgres extension.

Tool Set : vectorassist
Description : Use these skills to set up, manage, and optimize production-ready vector workloads by simply expressing your intent and performance requirements. This toolset covers the complete lifecycle, allowing you to create, view, modify, delete, and troubleshoot vector specifications.

Tools

Tool Name Description
improve_query_recall Improves query recall for vector search workloads.
list_specs Lists all vector specifications for a given table and column.
get_spec Retrieves a vector specification using its unique ID.
delete_spec Deletes a vector specification using its unique ID.

Manual Testing

Workflows covered by these tools

1. Improve Query Recall

Prompt : My search results aren't interesting and not relevant. Improve the vector search results for 'cymbal_products' table on vector column 'product_description_embeddings' having an index 'cymbal_products_product_description_embeddings_idx'

Expected tools to be used in the CUJ : improve-query-recall -> execute-sql

Screenshot 2026-05-05 at 11 16 44 PM Screenshot 2026-05-05 at 11 17 32 PM Screenshot 2026-05-05 at 11 18 34 PM

2. List Specs

Prompt : List all the vector specs for the table ‘cymbal_products’ and column ‘product_description’

Expected tools to be used in the CUJ : list-specs

Screenshot 2026-05-05 at 11 07 39 PM Screenshot 2026-05-05 at 11 08 08 PM

3. Get Spec

Prompt : Get the complete the details about the vector spec 'spec_cymbal_products_1'

Expected tools to be used in the CUJ : get-spec

Screenshot 2026-05-05 at 11 10 15 PM Screenshot 2026-05-05 at 11 10 47 PM

4. Delete Spec

Prompt : Delete the vector specification 'spec_cymbal_products_1'

Expected tools to be used in the CUJ : delete-spec

Screenshot 2026-05-05 at 11 12 45 PM Screenshot 2026-05-05 at 11 13 28 PM

PR Checklist

Thank you for opening a Pull Request! Before submitting your PR, there are a
few things you can do to make sure it goes smoothly:

  • Make sure you reviewed
    CONTRIBUTING.md
  • Make sure to open an issue as a
    bug/issue
    before writing your code! That way we can discuss the change, evaluate
    designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)
  • Make sure to add ! if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>

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 four new tools for the Cloud SQL for PostgreSQL vector assist suite: list_specs, get_spec, delete_spec, and improve_query_recall. The changes include the implementation of these tools in Go, corresponding unit and integration tests, and comprehensive documentation. Feedback was provided regarding adherence to the repository style guide for documentation titles and tool naming conventions. Additionally, several instances of unused debug code and leftover queries in the improve_query_recall tool were identified for removal to maintain code quality.

Comment thread docs/en/integrations/cloud-sql-pg/tools/vector-assist-get-spec.md
Comment thread docs/en/integrations/cloud-sql-pg/tools/vector-assist-improve-query-recall.md Outdated
Comment thread docs/en/integrations/cloud-sql-pg/tools/vector-assist-list-specs.md
Comment thread tests/cloudsqlpg/cloud_sql_pg_vectorassist_test.go Outdated
@pavankrishna13 pavankrishna13 marked this pull request as ready for review May 11, 2026 16:20
@pavankrishna13 pavankrishna13 requested review from a team as code owners May 11, 2026 16:20
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.

2 participants