get_top_queries
List top Azure SQL queries from Query Store by duration, CPU, or executions for performance tuning.
Instructions
List top queries from Query Store.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_top_queries"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of rows to return. | |
| sort_by | No | Sort by total_duration, avg_duration, cpu, executions, logical_io, physical_io, memory, or resource_blend. | total_duration |
| database_name | No | Optional database name. Defaults to AZURE_SQL_DEFAULT_DATABASE. | |
| window_minutes | No | How far back to look in Query Store, in minutes. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||