microsoft / microsoft/mcp

Asking MCP a simple query on LAW, and I got error in the API request - Fields doesn't exists

Open
#157 1 comment 0 reactions 1 assignee View on GitHub

@regexrowboat is already working on this.

Since Sep 3, 2025.

bug dogfood bug server-Azure.Mcp tools-Monitor
Dominant language
C#
Stars
3.7k
Forks
624
Avg merge
2d 20h
Merged PRs (30d)
220

Description

Hi,
I tried to use Azure MCP to summerize Alerts I got on Log Analytics Workspace,
It creates the wrong Json to ask (It retries 10 times, and give up)
The last API call is:

{
"auth-method": "credential",
"hours": "240",
"query": "AzureDiagnostics | where Resource contains "yada-yada-prod" and Category == "Alert" and TimeGenerated > ago(10d) | project TimeGenerated, Resource, ResourceGroup, AlertName_s, Severity_s, MonitorCondition_s, Description_s",
"resource-group": "Yada-Yada-Yada-law",
"subscription": "Yada-Yada-Sub",
"table-name": "AzureDiagnostics",
"workspace": "Yada-Yada-Yada-law"
}

Not sure why it creates the query like that, when it suppose to create the query,

The problematic properties are

AlertName_s, Severity_s, MonitorCondition_s, Description_s

how can I make him understand in order to create a valid request

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.