analyze_query_indexes
Extracts missing-index hints from estimated execution plans for up to 10 SQL queries, helping identify potential index improvements.
Instructions
Extract SQL Server missing-index hints from estimated plans for up to 10 queries. A per-query missing_index_count of zero means no Showplan hint was emitted for that plan. The filtered recommendations can also be empty when an existing index already covers an emitted hint; neither condition proves that no index could improve the query.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| queries | Yes | List of SQL SELECT queries to analyze (max 10). | |
| database_name | No | Optional database name. Defaults to AZURE_SQL_DEFAULT_DATABASE. | |
| parameter_types | No | Optional exact SQL types keyed by parameter name and shared across the supplied queries. | |
| auto_bind_params | No | When true, automatically binds @param placeholders in queries using column statistics before analyzing. | |
| parameter_values | No | Explicit parameter values for the supplied queries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||