Files
genai-toolbox/docs/en/resources/tools/cloudsql/cloudsqlgetinstances.md
prernakakkar-google 56b6574fc2 feat(source/cloud-sql-admin): Add User agent and attach sqldmin in cloud-sql-admin source. (#1441)
## Description

---
1. This change introduces a userAgentRoundTripper that correctly
prepends our custom user agent to the existing User-Agent header
2. Moves sqladmin client to source.
3. Updated cloudsql tools for above support.
4. Add test cases to validate User agent.

## 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:

- [x] Make sure you reviewed

[CONTRIBUTING.md](https://github.com/googleapis/genai-toolbox/blob/main/CONTRIBUTING.md)
- [x] Make sure to open an issue as a

[bug/issue](https://github.com/googleapis/genai-toolbox/issues/new/choose)
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)
- [x] Appropriate docs were updated (if necessary)
- [ ] Make sure to add `!` if this involve a breaking change

🛠️ Fixes #<issue_number_goes_here>
2025-09-15 16:31:38 +00:00

970 B

title, type, weight, description
title type weight description
cloud-sql-get-instance docs 10 Get a Cloud SQL instance resource.

The cloud-sql-get-instance tool retrieves a Cloud SQL instance resource using the Cloud SQL Admin API.

{{< notice info >}} This tool uses a source of kind cloud-sql-admin. {{< /notice >}}

Example

tools:
  get-sql-instance:
    kind: cloud-sql-get-instance
    source: my-cloud-sql-admin-source
    description: "Gets a particular cloud sql instance."

Reference

field type required description
kind string true Must be "cloud-sql-get-instance".
source string true The name of the cloud-sql-admin source to use.
description string false A description of the tool.