Back to Genai Toolbox

mysql-get-query-plan

docs/en/integrations/mysql/tools/mysql-get-query-plan.md

1.1.01.4 KB
Original Source

About

A mysql-get-query-plan tool gets the execution plan for a SQL statement against a MySQL database.

mysql-get-query-plan takes one input parameter sql_statement and gets the execution plan for the SQL statement against the source.

Compatible Sources

{{< compatible-sources others="integrations/cloud-sql-mysql">}}

Example

yaml
kind: tool
name: get_query_plan_tool
type: mysql-get-query-plan
source: my-mysql-instance
description: Use this tool to get the execution plan for a sql statement.

Reference

fieldtyperequireddescription
typestringtrueMust be "mysql-get-query-plan".
sourcestringtrueName of the source the SQL should execute on.
descriptionstringtrueDescription of the tool that is passed to the LLM.