MCP server for querying and analyzing Azure resources using Azure Resource Graph with Kusto Query Language (KQL) support
Single tool 'query-resources' has a strong description (194 chars, well above 10-char minimum) explaining WHAT, WHEN, and WHY. Input schema is present with Zod validation (subscriptionId: string with default, query: optional string). However, output schema is completely undocumented, the tool returns raw JSON.stringify(resources) with no field documentation, violating pattern:tool and pattern:response-shaper. Parameters lack format/constraint details (e.g., what constitutes a valid KQL query?). No error guidance beyond generic 'Error querying resources' message. No pagination support despite Azure Resource Graph potentially returning large result sets. Tool name 'query-resources' is acceptable but generic; 'search-azure-resources' or 'query-azure-resources' would be clearer. No tool annotations (readOnlyHint, etc.) despite being READ_ONLY.
Retrieves resources and their details from Azure Resource Graph. Use this tool to search, filter, and analyze Azure resources across subscriptions. It supports Kusto Query Language (KQL) for complex queries to find resources by type, location, tags, or properties. Useful for infrastructure auditing, resource inventory, compliance checking, and understanding your Azure environment's current state.
Output schema completely undocumented. Tool returns raw JSON.stringify(resources) with no field definitions, type hints, or structure guidance. LLMs cannot plan downstream operations or extract relevant data.
No pagination support. Azure Resource Graph can return hundreds or thousands of resources. Tool lacks limit, offset, or cursor parameters and does not cap results, risking context window exhaustion.
Error handling provides no recovery guidance. Generic 'Error querying resources: <message>' does not tell LLM whether to retry, ask user, or abandon. No error classification (retryable vs. fatal).
Parameter 'query' lacks format/constraint documentation. No guidance on valid KQL syntax, length limits, or common patterns. LLMs will hallucinate invalid queries.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | D | 51 | 2026-07-28+ | v2 |
Tool is READ_ONLY but lacks tool annotations. No readOnlyHint in schema, forcing LLM to infer safety from description alone.