Asking MCP a simple query on LAW, and I got error in the API request - Fields doesn't exists
@regexrowboat is already working on this.
Since Sep 3, 2025.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.