MCP server for natural-language Azure compliance & infra-health queries
Four well-named, verb-prefixed tools with comprehensive descriptions (194 - 380 chars, well above baseline 194 avg). All parameters have types and descriptions. Input schemas are complete with enums and constraints. Output schemas documented in docstrings. Honest about data provenance and limitations (e.g., 'not_evaluable' vs guessing). Strong error guidance in descriptions. No security issues detected (read-only, no secrets). Main gaps: no tool annotations (readOnlyHint/destructiveHint/idempotentHint), no structured error response schema, no pagination metadata in query_resources output.
Evaluate named security/governance controls and report where each verdict came from. Honest about provenance: every finding carries a `source` (`arg` | `azure_policy` | `defender`), and controls whose signal is not in the available data report `not_evaluable` rather than guessing. Most controls read the Azure Resource Graph `resources` row directly (no policy assignment required); `guest_config_extension` reads guest-config compliance from the ARG `policyresources` table and is `not_evaluable` when no policy is assigned. `disk_encryption` is partial — it confirms encryption-at-host from ARG but cannot see disk-level/ADE encryption, so a missing host-encryption signal is `not_evaluable`, not `fail`.
Find role assignments whose principal no longer exists in the directory. Two-step and honest about it: assignments come from the ARG `authorizationresources` table, but ARG stores only the principal's GUID — whether that principal still exists is resolved separately against Entra ID via Microsoft Graph. `orphaned` is a *positive* finding (the directory definitively reported the principal gone). If existence cannot be resolved (no Graph directory-read permission, directory unreachable), the finding is `not_evaluable` with evidence naming the exact reason — never `orphaned` on a guess, since a false orphan invites deleting a live principal's access. Every finding carries `source="graph"` (the verdict-deciding signal).
Report per-VM patch/update posture from Azure Resource Graph patch assessments. Honest about provenance: every finding carries `source="arg"` — verdicts come from the ARG `patchassessmentresources` table (Azure Update Manager assessment data), never inferred from resource properties alone. A VM whose posture cannot be trusted is `not_evaluable` — a deallocated/stopped VM (Azure cannot assess a stopped VM) or a VM with no assessment data — with `pendingUpdateCount` null (unknown, not zero), never a fake "current".
No tool annotations (readOnlyHint, destructiveHint, idempotentHint) in FastMCP registration. All four tools are read-only and idempotent, but this is not declared in the schema.
query_resources lacks pagination metadata in output schema. Docstring mentions 'limit' parameter but does not document whether results are truncated, total count, or next_cursor. Large result sets could blow context window.
Error handling is documented in descriptions but no structured error response schema is defined. LLMs cannot parse error details programmatically (e.g., 'not_evaluable' reason, Graph permission failure).
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 64 | 2025-06-18+ | v2 |
Look up resources with structured, read-only filters. All filters are combined with AND. Returns an ARG-shaped projection.
query_resources 'limit' parameter has no minimum/maximum bounds in schema. Unbounded integers could allow LLMs to request 1M rows, causing timeout or memory exhaustion.
Output field naming inconsistency: check_compliance returns 'source' (arg|azure_policy|defender), get_patch_status returns 'source=arg', find_orphaned_rbac returns 'source=graph'. Standardize to a single enum across all tools.