MCP server for diagnosing Microsoft Purview Data Lifecycle Management (DLM) issues in Exchange Online
Server has 5 tools with complete descriptions and clear use-case guidance. All tools have input schemas with type definitions and descriptions. However, output schemas are not formally documented in the code, responses are JSON but structure is inferred from implementation. Tool naming follows verb_noun convention (run_powershell, get_execution_log, ask_learn, create_issue, submit_feedback). Error handling is present but lacks recovery guidance. Security is strong (read-only enforcement, no secrets in params). Composition is good, each tool has one responsibility. Average tool score: 68/100.
Look up Microsoft Purview documentation from Microsoft Learn. USE THIS TOOL WHEN: the user asks a how-to, setup, or conceptual question — e.g., 'how do I create a retention policy', 'what is eDiscovery', 'how do adaptive scopes work'. Do NOT use this for troubleshooting active issues — use run_powershell instead. Covers: retention policies, retention labels, archive mailboxes, inactive mailboxes, eDiscovery, audit log, communication compliance, information barriers, insider risk management, records management, and adaptive scopes.
File a GitHub issue from a diagnostic session. USE THIS TOOL WHEN: the user wants to report a bug, request a feature, or escalate a finding discovered during the diagnostic session. Attaches session context (commands run, pass/fail status, durations) but excludes raw outputs to avoid PII leakage. Requires GitHub authentication via Device Flow on first use.
Review the audit trail of all PowerShell commands run in this session. USE THIS TOOL WHEN: the user asks to review, audit, or summarize the investigation so far. Returns Markdown with timestamps, commands, outputs, errors, and durations. Do NOT use this for running new diagnostics — use run_powershell instead.
Diagnose Purview DLM issues by running read-only PowerShell commands against Exchange Online. USE THIS TOOL WHEN: the user reports a problem, error, or unexpected behavior — e.g., retention policy not applying, items not archiving, mailbox not becoming inactive, policy stuck in Error, Teams messages not deleting, SubstrateHolds growing. Examples: Get-RetentionCompliancePolicy, Get-Mailbox, Get-MailboxStatistics, Get-ComplianceTag. Only Get-*/Test-*/Export-* cmdlets are allowed; mutating commands are blocked. Returns JSON: { success, output, error, durationMs, logIndex }.
Output schemas not formally documented. Tools return JSON but structure is inferred from code comments rather than explicit schema definitions. LLMs cannot reliably parse responses without documented field types and constraints.
Error handling lacks recovery guidance. Errors are returned but do not tell the LLM what to do next (retry, ask user, or abort). E.g., 'PowerShell execution failed' without suggesting fallback tools or user actions.
run_powershell accepts free-form command strings with no input validation visible in source. Relies on server-side allowlist (Get-*/Test-*/Export-*) but LLM has no way to know which cmdlets are safe. Should document allowed cmdlet patterns in parameter description.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | B | 70 | 2026-07-28+ | v2 |
Submit structured feedback about a diagnostic session. USE THIS TOOL WHEN: a diagnostic investigation has completed and the user has indicated whether it was helpful. Emits a TsgFeedback telemetry event (no PII). Returns a confirmation message.
create_issue requires GitHub authentication via Device Flow but no parameter documents how to handle auth failures or retry. LLM cannot know if auth is required upfront or how to recover from auth errors.
get_execution_log returns Markdown but no parameter to filter by date range, command type, or success/failure status. Large sessions could produce unbounded output, wasting tokens and risking context window exhaustion.