azure_metrics
Query Application Insights metrics such as request or exception counts. Specify timespan, interval, aggregation, and resource ID to filter results.
Instructions
Query Application Insights metrics
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"metric_name": "<metric_name>"
},
"name": "azure_metrics"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| metric_name | Yes | Metric name (e.g., requests/count, exceptions/count) | |
| timespan | No | ISO 8601 duration | PT1H |
| interval | No | Aggregation interval | PT5M |
| aggregation | No | Aggregation type | avg |
| resource_id | No | Azure resource ID (uses AZURE_APP_INSIGHTS_RESOURCE_ID env if not set) |