Back to Genai Toolbox

cloud-sql-admin-execute-many

docs/en/integrations/cloud-sql-admin/tools/cloudsqladminexecutemany.md

1.3.01.7 KB
Original Source

About

The cloud-sql-admin-execute-many tool executes multiple SQL statements against a specific Cloud SQL instance identified by project, instanceId, and database parameters provided at runtime.

This tool is useful for executing arbitrary SQL queries across multiple database instances without needing to configure a separate tool for each instance.

Note: This tool is intended for developer assistant workflows with human-in-the-loop and shouldn't be used for production agents.

Compatible Sources

{{< compatible-sources >}}

Parameters

The following parameters are required at runtime when invoking the tool:

ParameterTypeDescription
projectstringThe GCP project ID.
instanceIdstringThe Cloud SQL instance ID.
databasestringThe database name.
sqlstringThe SQL statement to execute.

Example

yaml
kind: tool
name: execute_sql_many_tool
type: cloud-sql-admin-execute-many
source: my-cloud-sql-admin-source
description: Use this tool to execute sql statements on a specific instance.

Reference

fieldtyperequireddescription
typestringtrueMust be "cloud-sql-admin-execute-many".
sourcestringtrueName of the cloud-sql-admin source.
descriptionstringtrueDescription of the tool that is passed to the agent.