Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,6 @@
"functionapp",
"functionapps",
"germanynorth",
"gethealth",
"grpcio",
"gsaascend",
"gsamas",
Expand Down
4 changes: 2 additions & 2 deletions eng/tools/ToolDescriptionEvaluator/consolidated-tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
"mcp_azure-mcp-ser_azmcp_grafana_list",
"mcp_azure-mcp-ser_azmcp_datadog_monitoredresources_list",
"mcp_azure-mcp-ser_azmcp_monitor_workspace_list",
"mcp_azure-mcp-ser_azmcp_monitor_healthmodels_entity_gethealth",
"mcp_azure-mcp-ser_azmcp_monitor_healthmodels_entity_get",
"mcp_azure-mcp-ser_azmcp_monitor_metrics_definitions",
"mcp_azure-mcp-ser_azmcp_monitor_metrics_query",
"mcp_azure-mcp-ser_azmcp_monitor_resource_log_query",
Expand All @@ -208,7 +208,7 @@
]
},
{
"name": "deploy_resources_and_applications_to_azure",
"name": "deploy_resources_and_applications_to_azure",
"description": "Deploy resources and applications to Azure. Retrieve application logs, access Bicep and Terraform rules, get CI/CD pipeline guidance, and generate deployment plans.",
"parameters": {
"intent": {
Expand Down
4 changes: 2 additions & 2 deletions eng/tools/ToolDescriptionEvaluator/prompts.json
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@
"azmcp_monitor_activitylog_list": [
"List the activity logs of the last month for <resource_name>"
],
"azmcp_monitor_healthmodels_entity_gethealth": [
"azmcp_monitor_healthmodels_entity_get": [
"Show me the health status of entity <entity_id> using the health model <health_model_name>"
],
"azmcp_monitor_metrics_definitions": [
Expand Down Expand Up @@ -790,4 +790,4 @@
"I want to design a cloud app for ordering groceries",
"How can I design a cloud service in Azure that will store and present videos for users?"
]
}
}
8 changes: 4 additions & 4 deletions eng/tools/ToolDescriptionEvaluator/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -6141,9 +6141,9 @@
]
},
{
"name": "gethealth",
"name": "get",
"description": "Retrieve the health status of an entity for a given Azure Monitor Health Model. Use this tool ONLY when the user mentions a specific health model name and asks for health status, health events. This provides application-level health monitoring with custom health models, not basic Azure resource availability.\r\nFor basic Azure resource availability status, use Resource Health tool instead `azmcp_resourcehealth_availability-status_get`. \r\nFor querying logs from a Log Analystics workspace, use `azmcp_monitor_workspace_log_query`. \r\nFor querying logs of a specific Azure resource, use `azmcp_monitor_resource_log_query`. \r\nRequired arguments:\r\n - --entity: The entity to get health for\r\n - --health-model: The health model name",
"command": "azmcp monitor healthmodels entity gethealth",
"command": "azmcp monitor healthmodels entity get",
"option": [
{
"name": "--tenant",
Expand Down Expand Up @@ -8440,7 +8440,7 @@
},
{
"name": "get",
"description": "Get the current availability status or health status of a specific Azure resource to diagnose health issues. Works with storage_account_name, virtual machine, resource group, subscription, and other Azure types. It provides detailed information about resource availability state, potential issues, and timestamps.\r\nIf health model is provided, don't use this command, instead use monitor_healthmodels_entity_gethealth tool.",
"description": "Get the current availability status or health status of a specific Azure resource to diagnose health issues. Works with storage_account_name, virtual machine, resource group, subscription, and other Azure types. It provides detailed information about resource availability state, potential issues, and timestamps.\r\nIf health model is provided, don't use this command, instead use monitor_healthmodels_entity_get tool.",
"command": "azmcp resourcehealth availability-status get",
"option": [
{
Expand Down Expand Up @@ -11447,4 +11447,4 @@
],
"consolidated_azure_tools": null,
"duration": 47
}
}
1 change: 1 addition & 0 deletions servers/Azure.Mcp.Server/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The Azure MCP Server updates automatically by default whenever a new release com
### Bugs Fixed
- fix `azmcp_sql_db_rename`'s new database name binding bug [[#615](https://github.com/microsoft/mcp/issues/615)]
- Fixed retained-buffer leaks across services (Kusto, EventGrid, AppLens, Speech, Cosmos, Foundry, NetworkResourceProvider) and tool loaders (BaseToolLoader, ServerToolLoader, NamespaceToolLoader, SingleProxyToolLoader) by disposing JsonDocument/HttpResponseMessage instances and cloning returned JsonElements. ([#817](https://github.com/microsoft/mcp/pull/817))
- Change `azmcp_monitor_healthmodels_entity_gethealth` tool name to `azmcp_monitor_healthmodels_entity_get` [[#808](https://github.com/microsoft/mcp/pull/808)]

### Other Changes

Expand Down
6 changes: 3 additions & 3 deletions servers/Azure.Mcp.Server/docs/azmcp-commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ azmcp server start \

#### Specific Tool Filtering

Exposes only specific tools by name, providing the finest level of granularity. The `--namespace` and `--tool` options cannot be used together. Use multiple `--tool` parameters to include multiple tools. Using `--tool` automatically switches to `all` mode.
Exposes only specific tools by name, providing the finest level of granularity. The `--namespace` and `--tool` options cannot be used together. Use multiple `--tool` parameters to include multiple tools. Using `--tool` automatically switches to `all` mode.

```bash
# Start MCP Server with default mode and only subscription and resource group tools
Expand Down Expand Up @@ -1357,7 +1357,7 @@ azmcp monitor workspace log query --subscription <subscription> \
```bash
# Get the health of an entity
# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired
azmcp monitor healthmodels entity gethealth --subscription <subscription> \
azmcp monitor healthmodels entity get --subscription <subscription> \
--resource-group <resource-group> \
--health-model <health-model-name> \
--entity <entity-id>
Expand Down Expand Up @@ -1488,7 +1488,7 @@ azmcp monitor webtests update --subscription <subscription> \
# List Azure Managed Lustre Filesystems available in a subscription or resource group
# ❌ Destructive | ✅ Idempotent | ❌ OpenWorld | ✅ ReadOnly | ❌ Secret | ❌ LocalRequired
azmcp managedlustre filesystem list --subscription <subscription> \
--resource-group <resource-group>
--resource-group <resource-group>

# Create an Azure Managed Lustre filesystem
# ❌ Destructive | ❌ Idempotent | ❌ OpenWorld | ❌ ReadOnly | ❌ Secret | ❌ LocalRequired
Expand Down
2 changes: 1 addition & 1 deletion servers/Azure.Mcp.Server/docs/e2eTestPrompts.md
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ This file contains prompts used for end-to-end testing to ensure each tool is in
| Tool Name | Test Prompt |
|:----------|:----------|
| azmcp_monitor_activitylog_list | List the activity logs of the last month for <resource_name> |
| azmcp_monitor_healthmodels_entity_gethealth | Show me the health status of entity <entity_id> using the health model <health_model_name> |
| azmcp_monitor_healthmodels_entity_get | Show me the health status of entity <entity_id> using the health model <health_model_name> |
| azmcp_monitor_metrics_definitions | Get metric definitions for <resource_type> <resource_name> from the namespace |
| azmcp_monitor_metrics_definitions | Show me all available metrics and their definitions for storage account <account_name> |
| azmcp_monitor_metrics_definitions | What metric definitions are available for the Application Insights resource <resource_name> |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ namespace Azure.Mcp.Tools.Monitor.Commands.HealthModels.Entity;
public sealed class EntityGetHealthCommand(ILogger<EntityGetHealthCommand> logger) : BaseMonitorHealthModelsCommand<BaseMonitorHealthModelsOptions>
{
private const string CommandTitle = "Get the health of an entity in a health model";
private const string CommandName = "gethealth";
private const string CommandName = "get";
public override string Name => CommandName;
public override string Description =>
$"""
Retrieve the health status of an entity for a given Azure Monitor Health Model. Use this tool ONLY when the user mentions a specific health model name and asks for health status, health events. This provides application-level health monitoring with custom health models, not basic Azure resource availability.
For basic Azure resource availability status, use Resource Health tool instead `azmcp_resourcehealth_availability-status_get`.
For querying logs from a Log Analystics workspace, use `azmcp_monitor_workspace_log_query`.
For querying logs of a specific Azure resource, use `azmcp_monitor_resource_log_query`.
For basic Azure resource availability status, use Resource Health tool instead `azmcp_resourcehealth_availability-status_get`.
For querying logs from a Log Analystics workspace, use `azmcp_monitor_workspace_log_query`.
For querying logs of a specific Azure resource, use `azmcp_monitor_resource_log_query`.
Required arguments:
- {MonitorOptionDefinitions.Health.Entity.Name}: The entity to get health for
- {MonitorOptionDefinitions.Health.HealthModel.Name}: The health model name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed class AvailabilityStatusGetCommand(ILogger<AvailabilityStatusGetCo
public override string Description =>
$"""
Get the current availability status or health status of a specific Azure resource to diagnose health issues. Works with storage_account_name, virtual machine, resource group, subscription, and other Azure types. It provides detailed information about resource availability state, potential issues, and timestamps.
If health model is provided, don't use this command, instead use monitor_healthmodels_entity_gethealth tool.
If health model is provided, don't use this command, instead use monitor_healthmodels_entity_get tool.
""";

public override string Title => CommandTitle;
Expand Down